#include <NavMesh.hpp>
Public Member Functions | |
Path (int triangleCount, unsigned char *paths=0) | |
Constructs and initialises a Path object. | |
~Path () | |
Destructor. | |
void | set (short from, short to, int neighbourIndex) |
Set the neighbour creatures should walk through to get to a given destination triangle. | |
int | path (short from, short to) const |
Returns the neighbour index of 1, 2 or 3. | |
int | dataSize () |
Returns the size of the char array that holds the navigation matrix. | |
unsigned char * | data () |
Return a pointer to the data holding the navigation matrix. | |
void | lineIntersect (const se_core::Point2 &p0, const se_core::Point2 &p1, const se_core::Point2 &p2, const se_core::Point2 &p3, se_core::Point2 &out) |
|
Constructs and initialises a Path object.
Definition at line 55 of file NavMesh.hpp. |
|
Destructor.
Definition at line 65 of file NavMesh.hpp. |
|
Return a pointer to the data holding the navigation matrix. You probably only need this when saving or copying its content. The data is encoded with 4 values inside each byte. Definition at line 122 of file NavMesh.hpp. |
|
Returns the size of the char array that holds the navigation matrix.
Definition at line 110 of file NavMesh.hpp. |
|
Definition at line 126 of file NavMesh.hpp. References se_core::Tuple2::x_, and se_core::Tuple2::y_. |
|
Returns the neighbour index of 1, 2 or 3.
Definition at line 97 of file NavMesh.hpp. |
|
Set the neighbour creatures should walk through to get to a given destination triangle. The neigbourIndex is an index into the from triangles neighbours_ array.
Definition at line 79 of file NavMesh.hpp. |
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:21 2007 by Doxygen version 1.3.9.1.