Planeshift
|
Class to hold information regarding aliases for waypoints. More...
#include <waypoint.h>
Public Member Functions | |
bool | CreateUpdate (iDataConnection *db) |
Crate or update a waypoint alias. | |
int | GetID () const |
Get the DB id for this alias. | |
const char * | GetName () const |
Get the Name of this alias. | |
float | GetRotationAngle () const |
Get the Rotation Angle of this alias. | |
void | SetRotationAngle (float rotationAngle) |
Set a new rotation angle for this waypoint. | |
bool | SetRotationAngle (iDataConnection *db, float rotationAngle) |
Set a new rotation angle for this waypoint. | |
WaypointAlias (Waypoint *wp, int id, const csString &alias, float rotationAngle) | |
Constructor. | |
Public Attributes | |
csString | alias |
An alias for an waypoint. | |
int | id |
The ID of this waypoint alias in DB. | |
float | rotationAngle |
The direction the NPC should face when placed on this waypoint. | |
Waypoint * | wp |
The waypoint this alias is a part of. |
Class to hold information regarding aliases for waypoints.
Definition at line 38 of file waypoint.h.
Constructor.
bool WaypointAlias::CreateUpdate | ( | iDataConnection * | db | ) |
Crate or update a waypoint alias.
int WaypointAlias::GetID | ( | ) | const [inline] |
Get the DB id for this alias.
Definition at line 47 of file waypoint.h.
const char* WaypointAlias::GetName | ( | ) | const [inline] |
Get the Name of this alias.
Definition at line 51 of file waypoint.h.
float WaypointAlias::GetRotationAngle | ( | ) | const [inline] |
Get the Rotation Angle of this alias.
Definition at line 55 of file waypoint.h.
void WaypointAlias::SetRotationAngle | ( | float | rotationAngle | ) | [inline] |
Set a new rotation angle for this waypoint.
Definition at line 67 of file waypoint.h.
bool WaypointAlias::SetRotationAngle | ( | iDataConnection * | db, |
float | rotationAngle | ||
) |
Set a new rotation angle for this waypoint.
csString WaypointAlias::alias |
An alias for an waypoint.
Definition at line 71 of file waypoint.h.
The ID of this waypoint alias in DB.
Definition at line 70 of file waypoint.h.
The direction the NPC should face when placed on this waypoint.
Definition at line 72 of file waypoint.h.
The waypoint this alias is a part of.
Definition at line 69 of file waypoint.h.