18 #ifndef HEADER_SUPERTUX_OBJECT_PATH_OBJECT_HPP 19 #define HEADER_SUPERTUX_OBJECT_PATH_OBJECT_HPP 23 #include "object/path.hpp" 24 #include "object/path_gameobject.hpp" 25 #include "object/path_walker.hpp" 26 #include "util/uid.hpp" 39 static void register_members(ssq::Class& cls);
47 void init_path(
const ReaderMapping& mapping,
bool running_default);
48 void init_path_pos(
const Vector& pos,
bool running =
false);
51 Path* get_path()
const;
52 PathWalker* get_walker()
const {
return m_walker.get(); }
56 std::string get_path_ref()
const;
57 void editor_set_path_by_ref(
const std::string& new_ref);
64 void goto_node(
int node_idx);
70 void set_node(
int node_idx);
83 void save_state()
const;
84 void check_state()
const;
93 std::unique_ptr<PathWalker> m_walker;
A walker that travels along a path.
Definition: path_walker.hpp:31
Helper class that allows to displace a handle on an object.
Definition: path_walker.hpp:35
Definition: path_object.hpp:28
A base class for all objects that contain, or make use of a path.
Definition: path_object.hpp:36
Definition: reader_mapping.hpp:32
Definition: path_gameobject.hpp:32