|
IMS2
Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
|
The simplest possible kind of pathing node. More...
Public Member Functions | |
| SimplePathNode (int _id) | |
| void | ConnectTo (SimplePathNode *_leads_to) |
| Connect this node to another node. More... | |
| bool | IsConnectedTo (SimplePathNode *targetnode) |
| Checks whether a node is reachable from this node in one step. More... | |
| vector< SimplePathNode * > & | GetConnected () |
| int | GetId () |
Private Attributes | |
| int | id |
| Stores the id of this node. | |
| vector< SimplePathNode * > | leads_to |
| Stores pointers to all neighbors. | |
The simplest possible kind of pathing node.
It has only neighbors, no position, and connections to neighbors are uni-directional.
| SimplePathNode::SimplePathNode | ( | int | _id | ) |
| _id | An id for this pathing node. |
| void SimplePathNode::ConnectTo | ( | SimplePathNode * | _leads_to | ) |
Connect this node to another node.
| _leads_to | The node that should be reachable from this node |
|
inline |
|
inline |
| bool SimplePathNode::IsConnectedTo | ( | SimplePathNode * | targetnode | ) |
Checks whether a node is reachable from this node in one step.
| targetnode | The node to check for reachability |