Planeshift
psPathPoint Class Reference

Represents a point on a path between two waypoints. More...

#include <pspath.h>

Public Member Functions

bool Adjust (iDataConnection *db, csVector3 &pos, csString sector)
 Adjust the point position. More...
 
void Adjust (csVector3 &pos, csString sector)
 Adjust the point position. More...
 
void Adjust (csVector3 &pos, iSector *sector)
 Adjust the point position. More...
 
bool Create (iDataConnection *db, int pathID)
 Establish this path point in the db. More...
 
uint32_t GetEffectID (iEffectIDAllocator *allocator)
 Return the effect ID for this pathpoint or assign a new ID. More...
 
int GetID () const
 
int GetID ()
 Return the db id of the point. More...
 
csString GetName ()
 Return the name of this path point. More...
 
psPathGetPath () const
 Return the parent path for this path point. More...
 
int GetPathIndex () const
 Return the index of this point in the path. More...
 
const csVector3 & GetPosition () const
 
int GetPreviousPointId () const
 Get the previous point id. More...
 
float GetRadius ()
 
float GetRadius () const
 
iSector * GetSector (iEngine *engine)
 
iSector * GetSector (iEngine *engine) const
 
WaypointGetWaypoint ()
 
bool Load (iResultRow &row, iEngine *engine)
 Load the point from the db row. More...
 
 psPathPoint (psPath *parentPath)
 
bool Remove (iDataConnection *db)
 Remove this path point in the db. More...
 
void SetID (int id)
 
void SetPrevious (int previous)
 Set the previous point id. More...
 
void SetWaypoint (Waypoint *waypoint)
 
bool UpdatePrevPointId (iDataConnection *db, int prevPointId)
 Update this path point in the db. More...
 

Detailed Description

Represents a point on a path between two waypoints.

Definition at line 58 of file pspath.h.

Constructor & Destructor Documentation

psPathPoint::psPathPoint ( psPath parentPath)

Member Function Documentation

bool psPathPoint::Adjust ( iDataConnection *  db,
csVector3 &  pos,
csString  sector 
)

Adjust the point position.

void psPathPoint::Adjust ( csVector3 &  pos,
csString  sector 
)

Adjust the point position.

void psPathPoint::Adjust ( csVector3 &  pos,
iSector *  sector 
)

Adjust the point position.

bool psPathPoint::Create ( iDataConnection *  db,
int  pathID 
)

Establish this path point in the db.

uint32_t psPathPoint::GetEffectID ( iEffectIDAllocator allocator)

Return the effect ID for this pathpoint or assign a new ID.

Parameters
allocator
int psPathPoint::GetID ( ) const
inline

Definition at line 96 of file pspath.h.

int psPathPoint::GetID ( )

Return the db id of the point.

csString psPathPoint::GetName ( )

Return the name of this path point.

Will only have a name if this is a waypoint as well.

psPath* psPathPoint::GetPath ( ) const

Return the parent path for this path point.

int psPathPoint::GetPathIndex ( ) const

Return the index of this point in the path.

const csVector3& psPathPoint::GetPosition ( ) const
inline

Definition at line 99 of file pspath.h.

int psPathPoint::GetPreviousPointId ( ) const
inline

Get the previous point id.

Definition at line 94 of file pspath.h.

float psPathPoint::GetRadius ( )
float psPathPoint::GetRadius ( ) const
iSector* psPathPoint::GetSector ( iEngine *  engine)
iSector* psPathPoint::GetSector ( iEngine *  engine) const
Waypoint* psPathPoint::GetWaypoint ( )
bool psPathPoint::Load ( iResultRow &  row,
iEngine *  engine 
)

Load the point from the db row.

bool psPathPoint::Remove ( iDataConnection *  db)

Remove this path point in the db.

void psPathPoint::SetID ( int  id)
inline

Definition at line 97 of file pspath.h.

void psPathPoint::SetPrevious ( int  previous)
inline

Set the previous point id.

Definition at line 91 of file pspath.h.

void psPathPoint::SetWaypoint ( Waypoint waypoint)
bool psPathPoint::UpdatePrevPointId ( iDataConnection *  db,
int  prevPointId 
)

Update this path point in the db.


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