Holds information about a specific trajectory.
More...
#include <UfoTrajectory.h>
Holds information about a specific trajectory.
Ufo trajectories are a sequence of mission zones, altitudes and speed percentages.
std::string OpenXcom::UfoTrajectory::getAltitude |
( |
size_t |
wp | ) |
const |
Gets the altitude at a waypoint.
- Parameters
-
- Returns
- The altitude.
const std::string& OpenXcom::UfoTrajectory::getID |
( |
| ) |
const |
|
inline |
Gets the trajectory's ID.
- Returns
- The trajectory's ID.
float OpenXcom::UfoTrajectory::getSpeedPercentage |
( |
size_t |
wp | ) |
const |
|
inline |
Gets the speed percentage at a waypoint.
- Parameters
-
- Returns
- The speed as a percentage.
size_t OpenXcom::UfoTrajectory::getWaypointCount |
( |
| ) |
const |
|
inline |
Gets the number of waypoints in this trajectory.
- Returns
- The number of waypoints.
size_t OpenXcom::UfoTrajectory::getZone |
( |
size_t |
wp | ) |
const |
|
inline |
Gets the zone index at a waypoint.
- Parameters
-
- Returns
- The zone index.
size_t OpenXcom::UfoTrajectory::groundTimer |
( |
| ) |
const |
|
inline |
Gets the number of seconds UFOs should spend on the ground.
- Returns
- The number of seconds.
void OpenXcom::UfoTrajectory::load |
( |
const YAML::Node & |
node | ) |
|
Loads trajectory data from YAML.
Overwrites trajectory data with the data stored in node.
Only the fields contained in the node will be overwritten.
- Parameters
-
node | The node containing the new values. |
The documentation for this class was generated from the following files: