|
supertux
|
A walker that travels along a path. More...
#include <path_walker.hpp>
Public Member Functions | |
| PathWalker (UID path_uid, bool running=true) | |
| void | update (float dt_sec) |
| advances the path walker on the path and returns its new position | |
| Vector | get_pos () const |
| current position of path walker | |
| void | goto_node (int node_no) |
| advance until at given node, then stop | |
| void | start_moving () |
| start advancing automatically | |
| void | stop_moving () |
| stop advancing automatically | |
| bool | is_running () const |
| returns true if PathWalker is currently moving | |
Public Attributes | |
| UID | m_path_uid |
| bool | m_running |
| set to false to immediately stop advancing | |
A walker that travels along a path.
1.8.12