#include <KynapseManager.h>
Public Member Functions |
|
bool | hasPathData () const |
void | clearPathData () |
bool | isEnabled () const |
void | enable (bool newValue) |
void | setHeight (float newValue) |
void | setRadius (float newValue) |
void | addGeometry (Node *root) |
bool | createNavigationMesh () |
bool | loadNavigationMesh (const awString::IString §orPath) |
bool | canGo (const awLinear::Point &from, const awLinear::Point &to, awLinear::Point &nearest) |
Using the navigation mesh, determine if it's
possible to move from point "from" to point "to". |
|
awString::IString | getStatusMessage () const |
This status message is valid after calling
createNavigationMesh: |
|
awString::IString | getVersion () const |
void | setDrawRoot (Node *root) |
void | displayWalkzoneMesh (bool) |
void | displayGraphMesh (bool) |
bool | isDisplayWalkzoneMesh () const |
bool | isDisplayGraphMesh () const |
Static Public Member Functions |
|
static KynapseManager & | instance () |
static void | destruct () |
static bool | exists () |
Protected Member Functions |
|
void | createNavVisualMeshes () |
void | removeNavVisualMeshes () |
void | updateMeshesVisibility (bool) |
KynapseManager () | |
virtual | ~KynapseManager () |
KynapseManager | ( | ) | [protected] |
virtual ~KynapseManager | ( | ) | [protected, virtual] |
static KynapseManager& instance | ( | ) | [static] |
static void destruct | ( | ) | [static] |
static bool exists | ( | ) | [static] |
bool hasPathData | ( | ) | const |
void clearPathData | ( | ) |
bool isEnabled | ( | ) | const |
void enable | ( | bool | newValue | ) |
void setHeight | ( | float | newValue | ) |
void setRadius | ( | float | newValue | ) |
void addGeometry | ( | Node * | root | ) |
bool createNavigationMesh | ( | ) |
bool loadNavigationMesh | ( | const awString::IString & | sectorPath | ) |
bool canGo | ( | const awLinear::Point & | from, |
const awLinear::Point & | to, | ||
awLinear::Point & | nearest | ||
) |
Using the navigation mesh, determine if it's possible to move from point "from" to point "to".
Return in "nearest" the point closest to "to" that is considered reachable.
awString::IString getStatusMessage | ( | ) | const [inline] |
This status message is valid after calling createNavigationMesh:
{ return myStatusMessage; }
awString::IString getVersion | ( | ) | const |
void setDrawRoot | ( | Node * | root | ) |
void displayWalkzoneMesh | ( | bool | ) |
void displayGraphMesh | ( | bool | ) |
bool isDisplayWalkzoneMesh | ( | ) | const |
bool isDisplayGraphMesh | ( | ) | const |
void createNavVisualMeshes | ( | ) | [protected] |
void removeNavVisualMeshes | ( | ) | [protected] |
void updateMeshesVisibility | ( | bool | ) | [protected] |