![]() |
FYP
1.0.0
Final Year Project -- Alexander Meuer
|

Public Member Functions | |
| Node (float x, float y, float radius) | |
| ~Node () | |
| Deletes itself and the next node. | |
| sf::Vector2f | getCentre () const |
| Returns the centre point of the node. | |
| sf::Vector2f | getPoint () const |
| Returns a random point contained within the node. | |
| std::shared_ptr< Node > | getNext () const |
| Returns the next node in the path. | |
| std::shared_ptr< Node > | append (std::shared_ptr< Node > newNode) |
Private Attributes | |
| sf::Vector2f | mPosition |
| float | mRadius |
| std::shared_ptr< Node > | mNext |
Recursively appends a node to the path. (i.e. If this node already has a next, it falls through to that node...)