OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenXcom::SoldierDeath Class Reference

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 GameTimegetTime () const
 Gets the death time. More...
 
void setTime (GameTime time)
 Sets the death time. More...
 

Detailed Description

Stores info about a soldier's death.

Constructor & Destructor Documentation

OpenXcom::SoldierDeath::SoldierDeath ( )

Creates a death.

Initializes a death event.

Member Function Documentation

const GameTime * OpenXcom::SoldierDeath::getTime ( ) const

Gets the death time.

Returns the time of death of this soldier.

Returns
Pointer to the time.
void OpenXcom::SoldierDeath::load ( const YAML::Node &  node)

Loads the death from YAML.

Loads the death from a YAML file.

Parameters
nodeYAML node.
YAML::Node OpenXcom::SoldierDeath::save ( ) const

Saves the death to YAML.

Saves the death to a YAML file.

Returns
YAML node.
void OpenXcom::SoldierDeath::setTime ( GameTime  time)

Sets the death time.

Changes the time of death of this soldier.

Parameters
timeThe time of death.

The documentation for this class was generated from the following files: