19 #ifndef OPENXCOM_MOVINGTARGET_H
20 #define OPENXCOM_MOVINGTARGET_H
34 static const double GLOBE_RADIUS;
37 double _speedLon, _speedLat, _speedRadian;
48 void load(
const YAML::Node& node);
50 virtual YAML::Node
save()
const;
virtual void calculateSpeed()
Calculates a new speed vector to the destination.
Definition: MovingTarget.cpp:148
void setSpeed(int speed)
Sets the moving target's speed.
Definition: MovingTarget.cpp:134
bool reachedDestination() const
Has the moving target reached its destination?
Definition: MovingTarget.cpp:176
void load(const YAML::Node &node)
Loads the moving target from YAML.
Definition: MovingTarget.cpp:56
Target * getDestination() const
Gets the moving target's destination.
Definition: MovingTarget.cpp:87
int getSpeed() const
Gets the moving target's speed.
Definition: MovingTarget.cpp:123
virtual void setDestination(Target *dest)
Sets the moving target's destination.
Definition: MovingTarget.cpp:96
virtual YAML::Node save() const
Saves the moving target to YAML.
Definition: MovingTarget.cpp:69
virtual ~MovingTarget()
Cleans up the moving target.
Definition: MovingTarget.cpp:37
MovingTarget()
Creates a moving target.
Definition: MovingTarget.cpp:30
Base class for moving targets on the globe with a certain speed and destination.
Definition: MovingTarget.h:31
void move()
Move towards the destination.
Definition: MovingTarget.cpp:188
Base class for targets on the globe with a set of radian coordinates.
Definition: Target.h:35