![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Stores info about a soldier's death. More...
#include <SoldierDeath.h>
Public Member Functions | |
| SoldierDeath (GameTime time, BattleUnitKills *cause) | |
| Creates a death. More... | |
| ~SoldierDeath () | |
| Cleans up the death. More... | |
| void | load (const YAML::Node &node) |
| Loads the death from YAML. More... | |
| YAML::Node | save () const |
| Saves the death to YAML. More... | |
| const GameTime * | getTime () const |
| Gets the death time. More... | |
| const BattleUnitKills * | getCause () const |
| Gets the death cause. More... | |
Stores info about a soldier's death.
| OpenXcom::SoldierDeath::SoldierDeath | ( | GameTime | time, |
| BattleUnitKills * | cause | ||
| ) |
Creates a death.
Initializes a death event.
| OpenXcom::SoldierDeath::~SoldierDeath | ( | ) |
Cleans up the death.
Cleans up a death event.
| const BattleUnitKills * OpenXcom::SoldierDeath::getCause | ( | ) | const |
Gets the death cause.
Returns the time of death of this soldier.
| const GameTime * OpenXcom::SoldierDeath::getTime | ( | ) | const |
Gets the death time.
Returns the time of death of this soldier.
| void OpenXcom::SoldierDeath::load | ( | const YAML::Node & | node | ) |
Loads the death from YAML.
Loads the death from a YAML file.
| node | YAML node. |
| YAML::Node OpenXcom::SoldierDeath::save | ( | ) | const |
Saves the death to YAML.
Saves the death to a YAML file.
1.8.14