19 #ifndef OPENXCOM_TARGET_H
20 #define OPENXCOM_TARGET_H
24 #include <yaml-cpp/yaml.h>
39 std::vector<Target*> _followers;
46 void load(
const YAML::Node& node);
48 virtual YAML::Node
save()
const;
50 virtual YAML::Node
saveId()
const;
virtual std::wstring getName(Language *lang) const =0
Gets the target's name.
virtual YAML::Node saveId() const
Saves the target's ID to YAML.
Definition: Target.cpp:76
double getLatitude() const
Gets the target's latitude.
Definition: Target.cpp:112
virtual YAML::Node save() const
Saves the target to YAML.
Definition: Target.cpp:64
double getDistance(const Target *target) const
Gets the distance to another target.
Definition: Target.cpp:153
Contains strings used throughout the game for localization.
Definition: Language.h:42
void setLatitude(double lat)
Sets the target's latitude.
Definition: Target.cpp:121
std::vector< Target * > * getFollowers()
Gets the target's followers.
Definition: Target.cpp:142
void setLongitude(double lon)
Sets the target's longitude.
Definition: Target.cpp:97
void load(const YAML::Node &node)
Loads the moving target from YAML.
Definition: Target.cpp:54
Base class for targets on the globe with a set of radian coordinates.
Definition: Target.h:35
Target()
Creates a target.
Definition: Target.cpp:31
virtual ~Target()
Cleans up the target.
Definition: Target.cpp:38
double getLongitude() const
Gets the target's longitude.
Definition: Target.cpp:88