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);
~City()
Cleans up the city.
Definition: City.cpp:39
City(const std::string &name, double lon, double lat)
Creates a new city at a certain position.
Definition: City.cpp:32
double getLongitude() const
Gets the city's longitude.
Definition: City.cpp:76
std::string getName() const
Gets the city's name.
Definition: City.cpp:58
Represents a city of the world.
Definition: City.h:32
void load(const YAML::Node &node)
Loads the city from YAML.
Definition: City.cpp:47
double getLatitude() const
Gets the city's latitude.
Definition: City.cpp:67