19 #ifndef OPENXCOM_CITY_H
20 #define OPENXCOM_CITY_H
23 #include <yaml-cpp/yaml.h>
39 City(
const std::string &name,
double lon,
double lat);
43 void load(
const YAML::Node& node);
Represents a city of the world.
Definition: City.h:33
City(const std::string &name, double lon, double lat)
Creates a new city at a certain position.
Definition: City.cpp:32
std::string getName() const
Gets the city's name.
Definition: City.cpp:58
~City()
Cleans up the city.
Definition: City.cpp:39
double getLongitude() const
Gets the city's longitude.
Definition: City.cpp:76
double getLatitude() const
Gets the city's latitude.
Definition: City.cpp:67
void load(const YAML::Node &node)
Loads the city from YAML.
Definition: City.cpp:47
COPYING:
Definition: BaseInfoState.cpp:41