Inventory.h 865 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef INVENTORY_H
  2. #define INVENTORY_H
  3. #include <Rocket/Core/String.h>
  4. #include <Rocket/Core/Context.h>
  5. #include <Rocket/Core/ElementDocument.h>
  6. /**
  7. @author Peter Curry
  8. */
  9. class Inventory
  10. {
  11. public:
  12. /// Constructs a new inventory and opens its window.
  13. /// @param[in] title The title of the new inventory.
  14. /// @param[in] position The position of the inventory window.
  15. /// @param[in] context The context to open the inventory window in.
  16. Inventory(const Rocket::Core::String& title, const Rocket::Core::Vector2f& position, Rocket::Core::Context* context);
  17. /// Destroys the inventory and closes its window.
  18. ~Inventory();
  19. /// Adds a brand-new item into this inventory.
  20. /// @param[in] name The name of this item.
  21. void AddItem(const Rocket::Core::String& name);
  22. private:
  23. Rocket::Core::ElementDocument* document;
  24. };
  25. #endif