19 #ifndef HEADER_SUPERTUX_OBJECT_PATH_HPP 20 #define HEADER_SUPERTUX_OBJECT_PATH_HPP 26 #include "math/vector.hpp" 41 WalkMode string_to_walk_mode(
const std::string& mode_string);
42 std::string walk_mode_to_string(WalkMode walk_mode);
70 int get_nearest_node_no(
const Vector& reference_point)
const;
73 int get_farthest_node_no(
const Vector& reference_point)
const;
76 void move_by(
const Vector& shift);
82 bool is_valid()
const;
84 const std::vector<Node>& get_nodes()
const {
return m_nodes; }
87 std::vector<Node> m_nodes;
93 Path& operator=(
const Path&) =
delete;
Definition: writer.hpp:27
Simple two dimensional vector.
Definition: vector.hpp:24
Definition: object_option.hpp:48
Helper class that stores an individual node of a Path.
Definition: path.hpp:48
Definition: reader_mapping.hpp:31
Vector position
the position of this node
Definition: path.hpp:51
float time
time (in seconds) to get from this node to next node
Definition: path.hpp:52