20 #include <yaml-cpp/yaml.h> 26 struct BattleUnitKills;
37 SoldierDeath() : _time(0, 0, 0, 0, 0, 0, 0), _cause(0) {}
43 void load(
const YAML::Node& node);
45 YAML::Node
save()
const;
void load(const YAML::Node &node)
Loads the death from YAML.
Definition: SoldierDeath.cpp:44
Stores info about a soldier's death.
Definition: SoldierDeath.h:31
Container for battle unit kills statistics.
Definition: BattleUnitStatistics.h:32
const GameTime * getTime() const
Gets the death time.
Definition: SoldierDeath.cpp:73
const BattleUnitKills * getCause() const
Gets the death cause.
Definition: SoldierDeath.cpp:82
~SoldierDeath()
Cleans up the death.
Definition: SoldierDeath.cpp:35
Stores the current ingame time/date according to GMT.
Definition: GameTime.h:38
YAML::Node save() const
Saves the death to YAML.
Definition: SoldierDeath.cpp:58
Definition: BaseInfoState.cpp:40