iCelGraph Struct Reference
Interface for the CEL Graph. More...
#include <tools/celgraph.h>
Inheritance diagram for iCelGraph:

Public Member Functions | |
virtual void | AddEdge (iCelNode *from, iCelNode *to, bool state)=0 |
Adds an edge to the graph. | |
virtual bool | AddEdgeByNames (const char *from, const char *to, bool state)=0 |
Adds an edge to the graph. | |
virtual void | AddNode (iCelNode *node)=0 |
Adds a node to the graph. | |
virtual iCelNode * | CreateNode (const char *name, csVector3 &pos)=0 |
Create a node for this graph. | |
virtual iCelNode * | GetClosest (csVector3 position)=0 |
Gets the closest node to position. | |
virtual size_t | GetNodeCount ()=0 |
Get Number of Nodes. | |
virtual iObject * | QueryObject ()=0 |
Query the underlying iObject. | |
virtual iCelNode * | RandomPath (iCelNode *from, int distance, iCelPath *path)=0 |
Gets the shortest path from node from to node to. | |
virtual bool | ShortestPath (iCelNode *from, iCelNode *goal, iCelPath *path)=0 |
Gets the shortest path from node from to node to. |
Detailed Description
Interface for the CEL Graph.
Definition at line 270 of file celgraph.h.
Member Function Documentation
Adds an edge to the graph.
virtual bool iCelGraph::AddEdgeByNames | ( | const char * | from, | |
const char * | to, | |||
bool | state | |||
) | [pure virtual] |
Adds an edge to the graph.
virtual void iCelGraph::AddNode | ( | iCelNode * | node | ) | [pure virtual] |
Adds a node to the graph.
Create a node for this graph.
The node will be added to the graph.
Gets the closest node to position.
virtual size_t iCelGraph::GetNodeCount | ( | ) | [pure virtual] |
Get Number of Nodes.
virtual iCelNode* iCelGraph::RandomPath | ( | iCelNode * | from, | |
int | distance, | |||
iCelPath * | path | |||
) | [pure virtual] |
Gets the shortest path from node from to node to.
virtual bool iCelGraph::ShortestPath | ( | iCelNode * | from, | |
iCelNode * | goal, | |||
iCelPath * | path | |||
) | [pure virtual] |
Gets the shortest path from node from to node to.
The documentation for this struct was generated from the following file:
- tools/celgraph.h
Generated for CEL: Crystal Entity Layer 1.4.1 by doxygen 1.7.1