35 void setPath(std::vector<Vector> new_path);
Vector nextNode() const
Return next node in path.
int m_index
Index of next target node.
Definition: Path.h:21
int getIndex() const
Return index of path.
int setIndex(int new_index)
Set index of path.
std::vector< Vector > m_path
Nodes in path.
Definition: Path.h:20
Vector previousNode() const
Return previous node in path.
Vector getEnd() const
Return last node of path.
bool endOfPath() const
Return true when at end of path.
std::vector< Vector > getPath() const
Return path.
void setPath(std::vector< Vector > new_path)
Set path.
int draw(Color color) const
Draw remaining path in indicated color.
Path operator++(int)
Increment path target node.
An animation for a sprite.
Definition: Animation.h:15
Color
Colors Dragonfly recognizes.
Definition: Color.h:11