21 #include <yaml-cpp/yaml.h> 26 enum TransferType { TRANSFER_ITEM, TRANSFER_CRAFT, TRANSFER_SOLDIER, TRANSFER_SCIENTIST, TRANSFER_ENGINEER };
57 int _itemQty, _scientists, _engineers;
65 bool load(
const YAML::Node& node,
Base *base,
const Mod *mod,
SavedGame *save);
67 YAML::Node save()
const;
69 void setSoldier(
Soldier *soldier);
71 void setCraft(
Craft *craft);
75 std::string getItems()
const;
77 void setItems(
const std::string &
id,
int qty = 1);
79 void setScientists(
int scientists);
81 void setEngineers(
int engineers);
83 std::wstring getName(
Language *lang)
const;
87 int getQuantity()
const;
89 TransferType getType()
const;
91 void advance(
Base *base);
Represents a craft stored in a base.
Definition: Craft.h:45
The game data that gets written to disk when the game is saved.
Definition: SavedGame.h:99
Contains all the game-specific static data that never changes throughout the game, like rulesets and resources.
Definition: Mod.h:87
Represents an item transfer.
Definition: Transfer.h:50
Contains strings used throughout the game for localization.
Definition: Language.h:39
Represents a soldier hired by the player.
Definition: Soldier.h:48
Represents a player base on the globe.
Definition: Base.h:45
Definition: Transfer.h:28
Definition: BaseInfoState.cpp:40