A path can be followed by an item in a location.
More...
#include <path.h>
List of all members.
A path can be followed by an item in a location.
Path are made of a list of vertices. Two consecutive vertices delimit an edge. Each vertex has a weight. A higher weight means a higher movement speed.
Definition at line 46 of file path.h.
Definition at line 50 of file path.h.
Definition at line 49 of file path.cpp.
[virtual]
Definition at line 46 of file path.cpp.
[static]
Path factory.
Definition at line 35 of file path.cpp.
[pure virtual]
Get the edge count in the path.
Implemented in Stark::Resources::Path2D, and Stark::Resources::Path3D.
Get a unit vector pointing in the direction of an edge.
Only valid for 3D paths
Reimplemented in Stark::Resources::Path3D.
Definition at line 98 of file path.cpp.
[protected]
Definition at line 63 of file path.cpp.
Get the sort key to be used by the item following the path.
Definition at line 94 of file path.cpp.
[protected, pure virtual]
Get an edge's length.
Definition at line 70 of file path.cpp.
Get the scene position from a position in an edge.
Definition at line 78 of file path.cpp.
[override, protected, virtual]
Reimplemented from Stark::Resources::Object.
Reimplemented in Stark::Resources::Path2D, and Stark::Resources::Path3D.
Definition at line 59 of file path.cpp.
[override, virtual]
Deserialize the resource static data and initial state.
Definition at line 55 of file path.cpp.
Definition at line 89 of file path.h.
Definition at line 48 of file path.h.