Public Member Functions | Friends

sp::tool::PathEdge Class Reference
[Pathfinding]

#include <spToolPathFinder.hpp>

Inheritance diagram for sp::tool::PathEdge:
sp::BaseObject

List of all members.

Public Member Functions

 PathEdge ()
 PathEdge (PathNode *From, PathNode *To, bool Adjusted=false)
 ~PathEdge ()
PathNode * getFrom () const
 Returns pointer to the source PathNode object.
PathNode * getTo () const
 Returns pointer to the target PathNode object.
bool getAdjusted () const
 Returns true if this edge is adjusted (i.e. points in a direction like a vector).
f32 getDistance () const
 Returns the distance between the two nodes.

Friends

class PathNode
class PathGraph

Detailed Description

Edge class for a graph (connects two path nodes).


Constructor & Destructor Documentation

sp::tool::PathEdge::PathEdge (  ) 
sp::tool::PathEdge::PathEdge ( PathNode *  From,
PathNode *  To,
bool  Adjusted = false 
)
sp::tool::PathEdge::~PathEdge (  ) 

Member Function Documentation

bool sp::tool::PathEdge::getAdjusted (  )  const [inline]

Returns true if this edge is adjusted (i.e. points in a direction like a vector).

f32 sp::tool::PathEdge::getDistance (  )  const [inline]

Returns the distance between the two nodes.

PathNode* sp::tool::PathEdge::getFrom (  )  const [inline]

Returns pointer to the source PathNode object.

PathNode* sp::tool::PathEdge::getTo (  )  const [inline]

Returns pointer to the target PathNode object.


Friends And Related Function Documentation

friend class PathGraph [friend]
friend class PathNode [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines