![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Represents a fixed waypoint on the world. More...
#include <Waypoint.h>
Public Member Functions | |
Waypoint () | |
Creates a waypoint. More... | |
~Waypoint () | |
Cleans up the waypoint. | |
std::string | getType () const |
Gets the waypoint's type. More... | |
int | getMarker () const |
Gets the waypoint's marker sprite. 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... | |
virtual std::string | getName (Language *lang) const |
Gets the target's name. 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 fixed waypoint on the world.
OpenXcom::Waypoint::Waypoint | ( | ) |
Creates a waypoint.
Initializes a waypoint.
|
virtual |
Gets the waypoint's marker sprite.
Returns the globe marker for the waypoint.
Implements OpenXcom::Target.
|
virtual |
Gets the waypoint's type.
Returns the waypoint's unique type used for savegame purposes.
Implements OpenXcom::Target.