![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a city of the world. More...
#include <City.h>
Public Member Functions | |
City (const std::string &name, double lon, double lat) | |
Creates a new city at a certain position. More... | |
~City () | |
Cleans up the city. | |
std::string | getName (Language *lang) const |
Gets the city's name. More... | |
int | getMarker () const |
Gets the city's marker. More... | |
![]() | |
virtual | ~Target () |
Cleans up the target. More... | |
virtual void | load (const YAML::Node &node) |
Loads the target from YAML. More... | |
virtual YAML::Node | save () const |
Saves the target to YAML. More... | |
YAML::Node | saveId () const |
Saves the target's ID to 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... | |
int | getId () const |
Gets the target's ID. More... | |
void | setId (int id) |
Sets the target's ID. More... | |
void | setName (const std::string &newName) |
Sets the target's name. More... | |
virtual std::string | getDefaultName (Language *lang) const |
Gets the target's default name. More... | |
virtual std::string | getMarkerName () const |
Gets the target's marker name. More... | |
std::vector< MovingTarget * > * | getFollowers () |
Gets the target's followers. More... | |
std::vector< Craft * > | getCraftFollowers () const |
Gets the target's craft followers. More... | |
double | getDistance (const Target *target) const |
Gets the distance to another target. More... | |
Additional Inherited Members | |
![]() | |
Target () | |
Creates a target. More... | |
Represents a city of the world.
Aliens target cities for certain missions.
OpenXcom::City::City | ( | const std::string & | name, |
double | lon, | ||
double | lat | ||
) |
Creates a new city at a certain position.
Initializes a city with certain data.
name | Name of the city. |
lon | Longitude of the city. |
lat | Latitude of the city. |
|
virtual |
Gets the city's marker.
Returns the globe marker for the UFO.
Implements OpenXcom::Target.
|
virtual |
Gets the city's name.
Returns the city's unique identifying name.
lang | Language to get strings from. |
Reimplemented from OpenXcom::Target.