Drag[en]gine Game Engine  1.21
deNavigatorPath Class Reference

Navigator path. More...

#include <deNavigatorPath.h>

Public Member Functions

Constructors and Destructors
 deNavigatorPath ()
 Create navigator path. More...
 
 deNavigatorPath (const deNavigatorPath &path)
 Create copy of navigator path. More...
 
 ~deNavigatorPath ()
 Clean up navigator path. More...
 
Management
int GetCount () const
 Number of points. More...
 
const decDVectorGetAt (int index) const
 Path point at index. More...
 
void SetAt (int index, const decDVector &position)
 Set path point at index. More...
 
void Add (const decDVector &point)
 Add path point to end of path. More...
 
void AddPath (const deNavigatorPath &path)
 Add path points to end of path. More...
 
void RemoveFrom (int index)
 Remove path point at index. More...
 
void RemoveAll ()
 Remove all path points. More...
 
Operators
deNavigatorPathoperator= (const deNavigatorPath &path)
 Set points. More...
 

Detailed Description

Navigator path.

Result of finding a path in a navigator. Stores path points towards and including the goal. The path can be used for collision checking or branching path.

Constructor & Destructor Documentation

◆ deNavigatorPath() [1/2]

deNavigatorPath::deNavigatorPath ( )

Create navigator path.

◆ deNavigatorPath() [2/2]

deNavigatorPath::deNavigatorPath ( const deNavigatorPath path)

Create copy of navigator path.

◆ ~deNavigatorPath()

deNavigatorPath::~deNavigatorPath ( )

Clean up navigator path.

Member Function Documentation

◆ Add()

void deNavigatorPath::Add ( const decDVector point)

Add path point to end of path.

◆ AddPath()

void deNavigatorPath::AddPath ( const deNavigatorPath path)

Add path points to end of path.

◆ GetAt()

const decDVector& deNavigatorPath::GetAt ( int  index) const

Path point at index.

Exceptions
deeOutOfBoundaryindex is less than 0 or greater than or equal to GetPointCount().

◆ GetCount()

int deNavigatorPath::GetCount ( ) const
inline

Number of points.

◆ operator=()

deNavigatorPath& deNavigatorPath::operator= ( const deNavigatorPath path)

Set points.

◆ RemoveAll()

void deNavigatorPath::RemoveAll ( )

Remove all path points.

◆ RemoveFrom()

void deNavigatorPath::RemoveFrom ( int  index)

Remove path point at index.

Exceptions
deeOutOfBoundaryindex is less than 0 or greater than or equal to GetPointCount().

◆ SetAt()

void deNavigatorPath::SetAt ( int  index,
const decDVector position 
)

Set path point at index.

Exceptions
deeOutOfBoundaryindex is less than 0 or greater than or equal to GetPointCount().

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