FYP  1.0.0
Final Year Project -- Alexander Meuer
Node Class Reference
Collaboration diagram for Node:
Collaboration graph

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< NodegetNext () const
 Returns the next node in the path.
 
std::shared_ptr< Nodeappend (std::shared_ptr< Node > newNode)
 

Private Attributes

sf::Vector2f mPosition
 
float mRadius
 
std::shared_ptr< NodemNext
 

Member Function Documentation

std::shared_ptr<Node> Node::append ( std::shared_ptr< Node newNode)

Recursively appends a node to the path. (i.e. If this node already has a next, it falls through to that node...)

Returns
The node that was appended.

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