OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents an alien base on the world. More...
#include <AlienBase.h>
Public Member Functions | |
AlienBase () | |
Creates an alien base. More... | |
~AlienBase () | |
Cleans up the alien base. | |
void | load (const YAML::Node &node) |
Loads the alien base from YAML. More... | |
YAML::Node | save () const |
Saves the alien base to YAML. More... | |
YAML::Node | saveId () const |
Saves the alien base's ID to YAML. More... | |
int | getId () const |
Gets the alien base's ID. More... | |
void | setId (int id) |
Sets the alien base's ID. More... | |
std::wstring | getName (Language *lang) const |
Gets the alien base's name. More... | |
std::string | getAlienRace () const |
Gets the alien base's amount of active hours.. More... | |
void | setAlienRace (const std::string &race) |
Sets the alien base's alien race. More... | |
void | setInBattlescape (bool inbattle) |
Sets the alien base's battlescape status. More... | |
bool | isInBattlescape () const |
Gets the alien base's battlescape status. More... | |
bool | isDiscovered () const |
Gets the alien base's discovered status. More... | |
void | setDiscovered (bool discovered) |
Sets the alien base's discovered status. More... | |
Public Member Functions inherited from OpenXcom::Target | |
virtual | ~Target () |
Cleans up the target. More... | |
void | load (const YAML::Node &node) |
Loads the moving target from YAML. More... | |
double | getLongitude () const |
Gets the target's longitude. More... | |
void | setLongitude (double lon) |
Sets the target's longitude. More... | |
double | getLatitude () const |
Gets the target's latitude. More... | |
void | setLatitude (double lat) |
Sets the target's latitude. More... | |
std::vector< Target * > * | getFollowers () |
Gets the target's followers. More... | |
double | getDistance (const Target *target) const |
Gets the distance to another target. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from OpenXcom::Target | |
Target () | |
Creates a target. More... | |
Represents an alien base on the world.
OpenXcom::AlienBase::AlienBase | ( | ) |
Creates an alien base.
Initializes an alien base.
std::string OpenXcom::AlienBase::getAlienRace | ( | ) | const |
Gets the alien base's amount of active hours..
Returns the alien race currently residing in the alien base.
int OpenXcom::AlienBase::getId | ( | ) | const |
Gets the alien base's ID.
Returns the alien base's unique ID.
|
virtual |
Gets the alien base's name.
Returns the alien base's unique identifying name.
lang | Language to get strings from. |
Implements OpenXcom::Target.
bool OpenXcom::AlienBase::isDiscovered | ( | ) | const |
Gets the alien base's discovered status.
Gets the alien base's geoscape status.
bool OpenXcom::AlienBase::isInBattlescape | ( | ) | const |
Gets the alien base's battlescape status.
void OpenXcom::AlienBase::load | ( | const YAML::Node & | node | ) |
Loads the alien base from YAML.
Loads the alien base from a YAML file.
node | YAML node. |
|
virtual |
Saves the alien base to YAML.
Saves the alien base to a YAML file.
Reimplemented from OpenXcom::Target.
|
virtual |
Saves the alien base's ID to YAML.
Saves the alien base's unique identifiers to a YAML file.
Reimplemented from OpenXcom::Target.
void OpenXcom::AlienBase::setAlienRace | ( | const std::string & | race | ) |
Sets the alien base's alien race.
Changes the alien race currently residing in the alien base.
race | Alien race. |
void OpenXcom::AlienBase::setDiscovered | ( | bool | discovered | ) |
Sets the alien base's discovered status.
Sets the alien base's geoscape status.
discovered | Has the base been discovered? |
void OpenXcom::AlienBase::setId | ( | int | id | ) |
Sets the alien base's ID.
Changes the alien base's unique ID.
id | Unique ID. |
void OpenXcom::AlienBase::setInBattlescape | ( | bool | inbattle | ) |
Sets the alien base's battlescape status.
inbattle | True if it's in battle, False otherwise. |