67 return (
unsigned int)(node -
m_nodes)+1;
84 return sizeof(*this) +
140 for (
int i = 0; i <
m_size; ++i)
154 return sizeof(*this) +
170 #endif // DETOURNODE_H
int m_nodeCount
Definition: DetourNode.h:104
bool empty() const
Definition: DetourNode.h:150
uint64_d dtPolyRef
Definition: DetourNavMesh.h:49
void clear()
Definition: DetourNode.h:114
const int m_capacity
Definition: DetourNode.h:165
Definition: DetourNode.h:34
~dtNodeQueue()
Definition: DetourNode.cpp:152
float pos[3]
Position of the node.
Definition: DetourNode.h:36
Definition: DetourNode.h:26
int getMemUsed() const
Definition: DetourNode.h:152
unsigned int getNodeIdx(const dtNode *node) const
Definition: DetourNode.h:64
const int m_maxNodes
Definition: DetourNode.h:102
Definition: DetourNode.h:107
dtNodeQueue(int n)
Definition: DetourNode.cpp:141
dtNode * pop()
Definition: DetourNode.h:124
int getCapacity() const
Definition: DetourNode.h:158
unsigned int findNodes(dtPolyRef id, dtNode **nodes, const int maxNodes)
Definition: DetourNode.cpp:74
const dtNode * getNodeAtIdx(unsigned int idx) const
Definition: DetourNode.h:76
unsigned int flags
Node flags. A combination of dtNodeFlags.
Definition: DetourNode.h:41
dtNode * findNode(dtPolyRef id, unsigned char state)
Definition: DetourNode.cpp:93
void operator=(dtNodeQueue &)
Definition: DetourNode.h:112
dtNodeIndex * m_first
Definition: DetourNode.h:100
dtPolyRef id
Polygon ref the node corresponds to.
Definition: DetourNode.h:42
int getHashSize() const
Definition: DetourNode.h:92
dtNodeFlags
Definition: DetourNode.h:24
dtNodePool(int maxNodes, int hashSize)
Definition: DetourNode.cpp:38
Definition: DetourNode.h:28
void operator=(const dtNodePool &)
Definition: DetourNode.h:55
~dtNodePool()
Definition: DetourNode.cpp:61
unsigned int pidx
Index to parent node.
Definition: DetourNode.h:39
int getMaxNodes() const
Definition: DetourNode.h:90
int getNodeCount() const
Definition: DetourNode.h:95
dtNodeIndex getNext(int i) const
Definition: DetourNode.h:94
dtNode * getNodeAtIdx(unsigned int idx)
Definition: DetourNode.h:70
static const dtNodeIndex DT_NULL_IDX
Definition: DetourNode.h:32
Definition: DetourNode.h:27
Definition: DetourNode.h:50
dtNode * getNode(dtPolyRef id, unsigned char state=0)
Definition: DetourNode.cpp:106
dtNodeIndex getFirst(int bucket) const
Definition: DetourNode.h:93
dtNode * top()
Definition: DetourNode.h:119
const int m_hashSize
Definition: DetourNode.h:103
static const int DT_MAX_STATES_PER_NODE
Definition: DetourNode.h:46
void trickleDown(int i, dtNode *node)
Definition: DetourNode.cpp:170
float cost
Cost from previous node to current node.
Definition: DetourNode.h:37
int m_size
Definition: DetourNode.h:166
dtNode * m_nodes
Definition: DetourNode.h:99
void modify(dtNode *node)
Definition: DetourNode.h:138
void bubbleUp(int i, dtNode *node)
Definition: DetourNode.cpp:157
dtNode ** m_heap
Definition: DetourNode.h:164
float total
Cost up to the node.
Definition: DetourNode.h:38
void clear()
Definition: DetourNode.cpp:68
unsigned short dtNodeIndex
Definition: DetourNode.h:31
int getMemUsed() const
Definition: DetourNode.h:82
dtNodeIndex * m_next
Definition: DetourNode.h:101
unsigned int state
extra state information. A polyRef can have multiple nodes with different extra info. see DT_MAX_STATES_PER_NODE
Definition: DetourNode.h:40
void push(dtNode *node)
Definition: DetourNode.h:132