19 #ifndef OPENXCOM_UFOTRAJECTORY_H 20 #define OPENXCOM_UFOTRAJECTORY_H 24 #include <yaml-cpp/yaml.h> 57 const std::string &
getID()
const {
return _id; }
60 void load(
const YAML::Node &node);
73 size_t getZone(
size_t wp)
const {
return _waypoints[wp].zone; }
76 std::string getAltitude(
size_t wp)
const;
93 std::vector<TrajectoryWaypoint> _waypoints;
size_t zone
The mission zone.
Definition: UfoTrajectory.h:35
size_t getWaypointCount() const
Gets the number of waypoints in this trajectory.
Definition: UfoTrajectory.h:66
size_t speed
The speed percentage ([0..100])
Definition: UfoTrajectory.h:39
size_t altitude
The altitude to reach.
Definition: UfoTrajectory.h:37
Information for points on a UFO trajectory.
Definition: UfoTrajectory.h:32
size_t getZone(size_t wp) const
Gets the zone index at a waypoint.
Definition: UfoTrajectory.h:73
Holds information about a specific trajectory.
Definition: UfoTrajectory.h:49
const std::string & getID() const
Gets the trajectory's ID.
Definition: UfoTrajectory.h:57
size_t groundTimer() const
Gets the number of seconds UFOs should spend on the ground.
Definition: UfoTrajectory.h:89
float getSpeedPercentage(size_t wp) const
Gets the speed percentage at a waypoint.
Definition: UfoTrajectory.h:83
COPYING:
Definition: BaseInfoState.cpp:40