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. | |
void | load (const YAML::Node &node) |
Loads the city from YAML. More... | |
std::string | getName () const |
Gets the city's name. More... | |
double | getLatitude () const |
Gets the city's latitude. More... | |
double | getLongitude () const |
Gets the city's longitude. 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. |
double OpenXcom::City::getLatitude | ( | ) | const |
Gets the city's latitude.
Returns the latitude coordinate of the city.
double OpenXcom::City::getLongitude | ( | ) | const |
Gets the city's longitude.
Returns the longitude coordinate of the city.
std::string OpenXcom::City::getName | ( | ) | const |
Gets the city's name.
Returns the name of the city.
void OpenXcom::City::load | ( | const YAML::Node & | node | ) |
Loads the city from YAML.
Loads the region type from a YAML file.
node | YAML node. |