19 #ifndef OPENXCOM_RULEINVENTORY_H 20 #define OPENXCOM_RULEINVENTORY_H 25 #include <yaml-cpp/yaml.h> 35 enum InventoryType { INV_SLOT, INV_HAND, INV_GROUND };
50 std::vector<RuleSlot> _slots;
51 std::map<std::string, int> _costs;
54 static const int SLOT_W = 16;
55 static const int SLOT_H = 16;
56 static const int HAND_W = 2;
57 static const int HAND_H = 3;
63 void load(
const YAML::Node& node,
int listOrder);
65 std::string getId()
const;
71 InventoryType getType()
const;
73 std::vector<struct RuleSlot> *getSlots();
75 bool checkSlotInPosition(
int *x,
int *y)
const;
77 bool fitItemInSlot(
RuleItem *item,
int x,
int y)
const;
80 int getListOrder()
const;
Definition: RuleInventory.h:30
Represents a specific type of item.
Definition: RuleItem.h:41
COPYING:
Definition: BaseInfoState.cpp:40
Represents a specific section of the inventory, containing information like available slots and scree...
Definition: RuleInventory.h:44