19 #ifndef OPENXCOM_EQUIPMENTLAYOUTITEM_H
20 #define OPENXCOM_EQUIPMENTLAYOUTITEM_H
23 #include <yaml-cpp/yaml.h>
35 std::string _itemType;
38 std::string _ammoItem;
44 EquipmentLayoutItem(std::string itemType, std::string slot,
int slotX,
int slotY, std::string ammoItem,
int fuseTimer);
60 void load(
const YAML::Node& node);
62 YAML::Node
save()
const;
EquipmentLayoutItem(const YAML::Node &node)
Creates a new soldier-equipment layout item and loads its contents from YAML.
Definition: EquipmentLayoutItem.cpp:28
Represents a soldier-equipment layout item which is used on the beginning of the Battlescape.
Definition: EquipmentLayoutItem.h:32
std::string getSlot() const
Gets the slot to be occupied.
Definition: EquipmentLayoutItem.cpp:66
int getSlotX() const
Gets the slotX to be occupied.
Definition: EquipmentLayoutItem.cpp:75
YAML::Node save() const
Saves the soldier-equipment layout item to YAML.
Definition: EquipmentLayoutItem.cpp:125
int getSlotY() const
Gets the slotY to be occupied.
Definition: EquipmentLayoutItem.cpp:84
std::string getAmmoItem() const
Gets the ammo item.
Definition: EquipmentLayoutItem.cpp:93
int getFuseTimer() const
Gets the turn until explosion.
Definition: EquipmentLayoutItem.cpp:102
~EquipmentLayoutItem()
Cleans up the soldier-equipment layout item.
Definition: EquipmentLayoutItem.cpp:49
std::string getItemType() const
Gets the item's type which has to be in a slot.
Definition: EquipmentLayoutItem.cpp:57
void load(const YAML::Node &node)
Loads the soldier-equipment layout item from YAML.
Definition: EquipmentLayoutItem.cpp:111