OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a specific race "family", or a "main race" if you wish. More...
#include <AlienRace.h>
Public Member Functions | |
AlienRace (const std::string &id) | |
Creates a blank alien race ruleset. More... | |
~AlienRace () | |
Cleans up the alien race ruleset. | |
void | load (const YAML::Node &node) |
Loads alien race data from YAML. More... | |
std::string | getId () const |
Gets the alien race's id. More... | |
std::string | getMember (int id) const |
Gets a certain member of this alien race family. More... | |
bool | canRetaliate () const |
Gets if the race can retaliate. More... | |
Represents a specific race "family", or a "main race" if you wish.
Here is defined which ranks it contains and also which accompanying terror units.
OpenXcom::AlienRace::AlienRace | ( | const std::string & | id | ) |
Creates a blank alien race ruleset.
Creates a blank alien race.
id | String defining the id. |
bool OpenXcom::AlienRace::canRetaliate | ( | ) | const |
Gets if the race can retaliate.
Returns if the race can participate in retaliation missions.
std::string OpenXcom::AlienRace::getId | ( | ) | const |
Gets the alien race's id.
Returns the language string that names this alien race.
Each race has a unique name.
std::string OpenXcom::AlienRace::getMember | ( | int | id | ) | const |
Gets a certain member of this alien race family.
id | The member's id. |
void OpenXcom::AlienRace::load | ( | const YAML::Node & | node | ) |
Loads alien race data from YAML.
Loads the alien race from a YAML file.
node | YAML node. |