17 #ifndef HEADER_SUPERTUX_EDITOR_NODE_MARKER_HPP 18 #define HEADER_SUPERTUX_EDITOR_NODE_MARKER_HPP 20 #include <editor/bezier_marker.hpp> 21 #include "editor/marker_object.hpp" 22 #include "object/path.hpp" 27 NodeMarker(std::vector<Path::Node>::iterator node_iterator,
size_t id_,
UID before,
UID after);
30 virtual void move_to(
const Vector& pos)
override;
32 virtual Vector get_point_vector()
const override;
33 virtual Vector get_offset()
const override;
39 void update_iterator();
40 void update_node_times();
47 void check_state()
override;
51 std::vector<Path::Node>::iterator prev_node();
52 std::vector<Path::Node>::const_iterator next_node()
const;
53 void update_node_time(std::vector<Path::Node>::iterator current, std::vector<Path::Node>::const_iterator next);
59 std::vector<Path::Node>::iterator m_node;
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: marker_object.hpp:31
virtual bool has_settings() const override
Indicates if get_settings() is implemented.
Definition: node_marker.hpp:34
virtual void editor_update() override
Called each frame in the editor, used to keep linked objects together (e.g.
Definition: node_marker.cpp:159
Definition: object_settings.hpp:39
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: node_marker.hpp:28
Definition: marker_object.hpp:26
void move_other_marker(UID marker, Vector position)
Moves the bezier marker that ISN'T marker to the given position.
Definition: node_marker.cpp:209
virtual void remove_me() override
schedules this object to be removed at the end of the frame
Definition: node_marker.cpp:53
virtual void editor_delete() override
The editor requested the deletion of the object.
Definition: node_marker.cpp:106
A helper structure to list all the type_indexes of the classes in the type hierarchy of a given class...
Definition: game_object.hpp:57
Definition: node_marker.hpp:24
void save_state() override
Save/check the current state of the object.
Definition: node_marker.cpp:221