35 void setPath(std::vector<Vector> new_path);
63 int serialize(std::stringstream *p_ss)
const;
67 int deserialize(std::stringstream *p_ss);
71 bool operator!=(
const Path &p);
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.
bool operator==(const Path &p)
Compare two Paths.
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.
std::string toString() const
Return attributes as string.
An animation for a sprite.
Definition: Animation.h:15
Color
Colors Dragonfly recognizes.
Definition: Color.h:11