OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents an alien terror site on the world. More...
#include <TerrorSite.h>
Public Member Functions | |
TerrorSite () | |
Creates a terror site. More... | |
~TerrorSite () | |
Cleans up the terror site. | |
void | load (const YAML::Node &node) |
Loads the terror site from YAML. More... | |
YAML::Node | save () const |
Saves the terror site to YAML. More... | |
YAML::Node | saveId () const |
Saves the terror site's ID to YAML. More... | |
int | getId () const |
Gets the terror site's ID. More... | |
void | setId (int id) |
Sets the terror site's ID. More... | |
std::wstring | getName (Language *lang) const |
Gets the terror site's name. More... | |
size_t | getSecondsRemaining () const |
Gets the seconds until this terror site expires. More... | |
void | setSecondsRemaining (size_t seconds) |
Sets the seconds until this terror site expires. More... | |
std::string | getAlienRace () const |
Gets the terror site's alien race. More... | |
void | setAlienRace (const std::string &race) |
Sets the terror site's alien race. More... | |
void | setInBattlescape (bool inbattle) |
Sets the TerrorSite's battlescape status. More... | |
bool | isInBattlescape () const |
Gets if the TerrorSite is in battlescape. 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 terror site on the world.
OpenXcom::TerrorSite::TerrorSite | ( | ) |
Creates a terror site.
Initializes a terror site.
std::string OpenXcom::TerrorSite::getAlienRace | ( | ) | const |
Gets the terror site's alien race.
Returns the alien race currently residing in the terror site.
int OpenXcom::TerrorSite::getId | ( | ) | const |
Gets the terror site's ID.
Returns the terror site's unique ID.
|
virtual |
Gets the terror site's name.
Returns the terror site's unique identifying name.
lang | Language to get strings from. |
Implements OpenXcom::Target.
size_t OpenXcom::TerrorSite::getSecondsRemaining | ( | ) | const |
Gets the seconds until this terror site expires.
Returns the number of seconds remaining before the terror site expires.
bool OpenXcom::TerrorSite::isInBattlescape | ( | ) | const |
void OpenXcom::TerrorSite::load | ( | const YAML::Node & | node | ) |
Loads the terror site from YAML.
Loads the terror site from a YAML file.
node | YAML node. |
|
virtual |
Saves the terror site to YAML.
Saves the terror site to a YAML file.
Reimplemented from OpenXcom::Target.
|
virtual |
Saves the terror site's ID to YAML.
Saves the terror site's unique identifiers to a YAML file.
Reimplemented from OpenXcom::Target.
void OpenXcom::TerrorSite::setAlienRace | ( | const std::string & | race | ) |
Sets the terror site's alien race.
Changes the alien race currently residing in the terror site.
race | Alien race. |
void OpenXcom::TerrorSite::setId | ( | int | id | ) |
Sets the terror site's ID.
Changes the terror site's unique ID.
id | Unique ID. |
void OpenXcom::TerrorSite::setInBattlescape | ( | bool | inbattle | ) |
Sets the TerrorSite's battlescape status.
Sets the terror site's battlescape status.
inbattle | . |
void OpenXcom::TerrorSite::setSecondsRemaining | ( | size_t | seconds | ) |
Sets the seconds until this terror site expires.
Changes the number of seconds before the terror site expires.
seconds | Amount of seconds. |