#include <meshNode.h>

Public Types | |
| enum | Status { open, close, neutral } |
Public Member Functions | |
| Node (int grid_x, int grid_y, LVecBase3f pos, float w, float l, float h) | |
| ~Node () | |
| bool | contains (float x, float y) |
Public Attributes | |
| bool | _type |
| Status | _status |
| int | _score |
| int | _cost |
| int | _heuristic |
| Node * | _prv_node |
| int | _grid_x |
| int | _grid_y |
| LVecBase3f | _position |
| float | _width |
| float | _length |
| float | _height |
| Node * | _neighbours [8] |
| Node * | _next |
Class : Node Description : This class is used to assign the nodes on the mesh. It holds all the data necessary to compute A* algorithm. It also maintains a lot of vital information such as the neighbor nodes of each node and also its position on the mesh. Note: The Mesh Generator which is a stand alone tool makes use of this class to generate the nodes on the mesh.
Definition at line 18 of file meshNode.h.
| enum Node::Status |
Definition at line 30 of file meshNode.h.
| Node::Node | ( | int | grid_x, | |
| int | grid_y, | |||
| LVecBase3f | pos, | |||
| float | w, | |||
| float | l, | |||
| float | h | |||
| ) |
Definition at line 4 of file meshNode.cxx.
| Node::~Node | ( | ) |
Definition at line 24 of file meshNode.cxx.
| bool Node::contains | ( | float | x, | |
| float | y | |||
| ) |
Function : contains Description : This is a handy function which returns true if the passed position is within the node's dimensions.
Definition at line 35 of file meshNode.cxx.
| int Node::_cost |
Definition at line 40 of file meshNode.h.
| int Node::_grid_x |
Definition at line 47 of file meshNode.h.
| int Node::_grid_y |
Definition at line 47 of file meshNode.h.
| float Node::_height |
Definition at line 54 of file meshNode.h.
| int Node::_heuristic |
Definition at line 41 of file meshNode.h.
| float Node::_length |
Definition at line 54 of file meshNode.h.
Definition at line 55 of file meshNode.h.
Definition at line 59 of file meshNode.h.
| LVecBase3f Node::_position |
Definition at line 50 of file meshNode.h.
Definition at line 44 of file meshNode.h.
| int Node::_score |
Definition at line 39 of file meshNode.h.
Definition at line 35 of file meshNode.h.
| bool Node::_type |
Definition at line 24 of file meshNode.h.
| float Node::_width |
Definition at line 54 of file meshNode.h.
1.6.1