Definition: PathFind.h:31
Object * getObject() const
Return object seeking path.
void setObject(Object *new_p_o)
Set object seeking path.
Object * getTargetObject()
Get target object.
Path getPath() const
Return path.
int getNumPlies() const
Return number of plies.
std::vector< coord_struct > m_open_set
Set of nodes not yet visited.
Definition: PathFind.h:39
std::vector< coord_struct > m_closed_set
Set of nodes visited.
Definition: PathFind.h:40
SearchResult cycleOnce()
Go through one search cycle.
Object * m_p_o
Object finding path.
Definition: PathFind.h:34
Object * m_p_target_o
Object target (optional).
Definition: PathFind.h:35
coord_struct m_end
End target position.
Definition: PathFind.h:37
void setTargetObject(Object *p_target_o)
Set target object.
coord_struct m_start
Start position.
Definition: PathFind.h:36
bool m_is_path
True if path is complete.
Definition: PathFind.h:42
PathFind(Object *p_o, Vector start, Vector end)
Constructor needs Object doing pathfinding, start and end positions.
struct node_struct ** m_node
All nodes in 2d graph/grid.
Definition: PathFind.h:38
int m_num_plies
Number of plies cycled.
Definition: PathFind.h:41
An animation for a sprite.
Definition: Animation.h:15
Definition: PathFind.h:20
Definition: PathFind.h:25