#include <waypoint.h>
Collaboration diagram for TWaypoint:
Public Methods | |
TWaypoint () | |
TWaypoint (const TWaypoint &wp) | |
TWaypoint (TStellarObject *stellarObject, double speed=0) | |
TWaypoint (const TPoint &pos, double speed=0) | |
const TPoint & | getPos () const |
TStellarObject * | getStellarObject () const |
double | getWantedSpeed () const |
bool | isStellarObject () const |
bool | load (TDataPackageList *in, const string &identifier, bool unique=true) |
TWaypoint & | operator= (const TWaypoint &wp) |
bool | operator== (const TWaypoint &src) const |
void | reset () |
bool | save (TDataPackageList *out, const string &identifier, bool unique=true) const |
void | setPos (const TPoint &pos) |
void | setStellarObject (TStellarObject *stellarObject) |
void | setWantedSpeed (double speed) |
Private Attributes | |
TLink< TStellarObject > | fLinkStObj |
TPoint | fPos |
double | fWantedSpeed |
|
Initializes the data with 0. |
|
Copy constructor. |
|
Calls setStellarObject to initialize the waypoint. |
|
Calls setPos and setWantedSpeed to initialize the waypoint.
|
|
|
|
|
|
|
|
|
|
Loads a TWaypoint object from a list of data packages. Note that a successful load will delete the datapackage from the data package list as well as the datapackage itself.
|
|
Assignment operator is simply doing an element by element copy.
|
|
Compares waypoints.
|
|
Sets fPos and fLinkStObj to null. |
|
Creates the data packages of a TWaypoint object and adds them to the data package list.
|
|
Initializes the waypoint with an ordinary point in space.
|
|
Initializes the waypoint with an stellar object.
|
|
Sets the wanted speed to approach a destination.
|
|
The position is determined by a stellar object if and only if fLinkStObj is not set to null. |
|
The position of the object. This value is only valid if fLinkStObj is set to null. |
|
The wanted speed to approach the destination. |