17 #ifndef HEADER_SUPERTUX_TRIGGER_SWITCH_HPP 18 #define HEADER_SUPERTUX_TRIGGER_SWITCH_HPP 20 #include "trigger/trigger_base.hpp" 28 static std::string class_name() {
return "switch"; }
29 virtual std::string get_class_name()
const override {
return class_name(); }
30 static std::string display_name() {
return _(
"Switch"); }
36 virtual void update(
float dt_sec)
override;
39 virtual void after_editor_set()
override;
40 virtual void on_flip(
float height)
override;
52 std::string m_off_script;
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: switch.cpp:75
EventType
Definition: trigger_base.hpp:34
virtual void event(Player &player, EventType type) override
Receive trigger events.
Definition: switch.cpp:115
Definition: switch.hpp:22
Definition: object_settings.hpp:39
virtual void on_flip(float height) override
When level is flipped vertically.
Definition: switch.cpp:148
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: switch.hpp:31
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
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: switch.hpp:32
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: trigger_base.hpp:117
Definition: trigger_base.hpp:112
Definition: reader_mapping.hpp:32
This module contains methods controlling the player.
Definition: player.hpp:47