17 #ifndef HEADER_SUPERTUX_OBJECT_PUSHBUTTON_HPP 18 #define HEADER_SUPERTUX_OBJECT_PUSHBUTTON_HPP 20 #include "object/sticky_object.hpp" 29 virtual void update(
float dt_sec)
override;
30 static std::string class_name() {
return "pushbutton"; }
31 virtual std::string get_class_name()
const override {
return class_name(); }
32 static std::string display_name() {
return _(
"Button"); }
37 virtual void after_editor_set()
override;
39 virtual void on_flip(
float height)
override;
42 enum PushButtonState {
48 PushButtonState m_state;
Definition: object_settings.hpp:39
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: sticky_object.hpp:34
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: reader_mapping.hpp:32
This is a class for MovingSprites that can stick to the sides, top and bottom of MovingObjects, such as platforms, fallblock, tilemap, etc.
Definition: sticky_object.hpp:27
This class collects data about a collision.
Definition: collision_hit.hpp:44