![]() |
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... | |
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. |
| 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. |
1.8.14