AI_AStar::Node Class Reference

#include <AI_AStar.h>

List of all members.


Detailed Description

Node of A* graph.

Public Member Functions

 Node ()
 Constructor.
void removeLink (Link *ptr_link)
 Remove link from node.
void addLink (Link *ptr_link)
 Add link to node.
void reset (void)
 Reset node's data.
void set (int i_index)
 Set node.
void setUserData (void *ptr_data)
 Set user data.
void * getUserData (void) const
 Get user data.
int getIndex (void) const
 Get node ID index (it is not index into graph).
LinkArraygetLinks (void)
 Get links.
LinkisLinkedTo (Node *ptr_other)
 Return pointer to link by which this node is linked to other node. Otherwise return NULL.

Protected Attributes

int m_i_index
 Index of this node (used by sessions to mark visited nodes).
LinkArray m_arr_links
 Array with links to other nodes.
void * m_ptr_user_data
 Pointer to user data.

Constructor & Destructor Documentation

AI_AStar::Node::Node (  )  [inline]

Constructor.


Member Function Documentation

void AI_AStar::Node::removeLink ( Link ptr_link  )  [inline]

Remove link from node.

void AI_AStar::Node::addLink ( Link ptr_link  )  [inline]

Add link to node.

void AI_AStar::Node::reset ( void   )  [inline]

Reset node's data.

void AI_AStar::Node::set ( int  i_index  )  [inline]

Set node.

void AI_AStar::Node::setUserData ( void *  ptr_data  )  [inline]

Set user data.

void * AI_AStar::Node::getUserData ( void   )  const [inline]

Get user data.

int AI_AStar::Node::getIndex ( void   )  const [inline]

Get node ID index (it is not index into graph).

AI_AStar::LinkArray & AI_AStar::Node::getLinks ( void   )  [inline]

Get links.

AI_AStar::Link * AI_AStar::Node::isLinkedTo ( Node ptr_other  )  [inline]

Return pointer to link by which this node is linked to other node. Otherwise return NULL.


Member Data Documentation

int AI_AStar::Node::m_i_index [protected]

Index of this node (used by sessions to mark visited nodes).

Array with links to other nodes.

Pointer to user data.


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