23 #include <yaml-cpp/yaml.h> 33 enum InventoryType { INV_SLOT, INV_HAND, INV_GROUND };
48 std::vector<RuleSlot> _slots;
49 std::map<std::string, int> _costs;
52 static const int SLOT_W = 16;
53 static const int SLOT_H = 16;
54 static const int HAND_W = 2;
55 static const int HAND_H = 3;
61 void load(
const YAML::Node& node,
int listOrder);
63 std::string getId()
const;
69 InventoryType getType()
const;
71 std::vector<struct RuleSlot> *getSlots();
73 bool checkSlotInPosition(
int *x,
int *y)
const;
75 bool fitItemInSlot(
RuleItem *item,
int x,
int y)
const;
78 int getListOrder()
const;
Definition: RuleInventory.h:28
Represents a specific type of item.
Definition: RuleItem.h:40
Definition: BaseInfoState.cpp:40
Represents a specific section of the inventory, containing information like available slots and scree...
Definition: RuleInventory.h:42