Planeshift
WaypointAlias Class Reference

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. More...
 
int GetID () const
 Get the DB id for this alias. More...
 
const char * GetName () const
 Get the Name of this alias. More...
 
float GetRotationAngle () const
 Get the Rotation Angle of this alias. More...
 
bool SetRotationAngle (iDataConnection *db, float rotationAngle)
 Set a new rotation angle for this waypoint. More...
 
void SetRotationAngle (float rotationAngle)
 Set a new rotation angle for this waypoint. More...
 
 WaypointAlias (Waypoint *wp, int id, const csString &alias, float rotationAngle)
 Constructor. More...
 

Public Attributes

csString alias
 An alias for an waypoint. More...
 
int id
 The ID of this waypoint alias in DB. More...
 
float rotationAngle
 The direction the NPC should face when placed on this waypoint. More...
 
Waypointwp
 The waypoint this alias is a part of. More...
 

Detailed Description

Class to hold information regarding aliases for waypoints.

Definition at line 38 of file waypoint.h.

Constructor & Destructor Documentation

WaypointAlias::WaypointAlias ( Waypoint wp,
int  id,
const csString &  alias,
float  rotationAngle 
)

Constructor.

Member Function Documentation

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.

bool WaypointAlias::SetRotationAngle ( iDataConnection *  db,
float  rotationAngle 
)

Set a new rotation angle for this waypoint.

void WaypointAlias::SetRotationAngle ( float  rotationAngle)
inline

Set a new rotation angle for this waypoint.

Definition at line 67 of file waypoint.h.

Member Data Documentation

csString WaypointAlias::alias

An alias for an waypoint.

Definition at line 71 of file waypoint.h.

int WaypointAlias::id

The ID of this waypoint alias in DB.

Definition at line 70 of file waypoint.h.

float WaypointAlias::rotationAngle

The direction the NPC should face when placed on this waypoint.

Definition at line 72 of file waypoint.h.

Waypoint* WaypointAlias::wp

The waypoint this alias is a part of.

Definition at line 69 of file waypoint.h.


The documentation for this class was generated from the following file: