Drag[en]gine Game Engine
1.21
|
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 decDVector & | GetAt (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 | |
deNavigatorPath & | operator= (const deNavigatorPath &path) |
Set points. More... | |
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.
deNavigatorPath::deNavigatorPath | ( | ) |
Create navigator path.
deNavigatorPath::deNavigatorPath | ( | const deNavigatorPath & | path | ) |
Create copy of navigator path.
deNavigatorPath::~deNavigatorPath | ( | ) |
Clean up navigator path.
void deNavigatorPath::Add | ( | const decDVector & | point | ) |
Add path point to end of path.
void deNavigatorPath::AddPath | ( | const deNavigatorPath & | path | ) |
Add path points to end of path.
const decDVector& deNavigatorPath::GetAt | ( | int | index | ) | const |
Path point at index.
deeOutOfBoundary | index is less than 0 or greater than or equal to GetPointCount(). |
|
inline |
Number of points.
deNavigatorPath& deNavigatorPath::operator= | ( | const deNavigatorPath & | path | ) |
Set points.
void deNavigatorPath::RemoveAll | ( | ) |
Remove all path points.
void deNavigatorPath::RemoveFrom | ( | int | index | ) |
Remove path point at index.
deeOutOfBoundary | index is less than 0 or greater than or equal to GetPointCount(). |
void deNavigatorPath::SetAt | ( | int | index, |
const decDVector & | position | ||
) |
Set path point at index.
deeOutOfBoundary | index is less than 0 or greater than or equal to GetPointCount(). |