19 #ifndef OPENXCOM_ALIENRACE_H
20 #define OPENXCOM_ALIENRACE_H
24 #include <yaml-cpp/yaml.h>
26 enum AlienRank{AR_HUMAN = -1, AR_COMMANDER, AR_LEADER, AR_ENGINEER, AR_MEDIC, AR_NAVIGATOR, AR_SOLDIER, AR_TERRORIST, AR_TERRORIST2};
39 std::vector<std::string> _members;
47 void load(
const YAML::Node& node);
49 std::string
getId()
const;
bool canRetaliate() const
Gets if the race can retaliate.
Definition: AlienRace.cpp:71
~AlienRace()
Cleans up the alien race ruleset.
Definition: AlienRace.cpp:32
std::string getMember(int id) const
Gets a certain member of this alien race family.
Definition: AlienRace.cpp:62
Represents a specific race "family", or a "main race" if you wish.
Definition: AlienRace.h:35
std::string getId() const
Gets the alien race's id.
Definition: AlienRace.cpp:52
AlienRace(const std::string &id)
Creates a blank alien race ruleset.
Definition: AlienRace.cpp:28
void load(const YAML::Node &node)
Loads alien race data from YAML.
Definition: AlienRace.cpp:40