![]() |
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 () | |
| Creates a death. More... | |
| ~SoldierDeath () | |
| Cleans up the death. | |
| 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... | |
| void | setTime (GameTime time) |
| Sets the death time. More... | |
Stores info about a soldier's death.
| OpenXcom::SoldierDeath::SoldierDeath | ( | ) |
Creates a death.
Initializes a death event.
| 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.
| void OpenXcom::SoldierDeath::setTime | ( | GameTime | time | ) |
Sets the death time.
Changes the time of death of this soldier.
| time | The time of death. |
1.8.6