17 #ifndef HEADER_SUPERTUX_TRIGGER_CLIMBABLE_HPP 18 #define HEADER_SUPERTUX_TRIGGER_CLIMBABLE_HPP 20 #include "supertux/timer.hpp" 21 #include "trigger/trigger_base.hpp" 30 static Color text_color;
36 virtual std::string get_class()
const override {
return "climbable"; }
37 virtual std::string get_display_name()
const override {
return _(
"Climbable"); }
41 virtual void after_editor_set()
override;
44 virtual void update(
float dt_sec)
override;
virtual bool has_variable_size() const override
Does this object have variable size (secret area trigger, wind, etc.)
Definition: climbable.hpp:38
Timer activate_try_timer
try to correct mis-alignment while this timer runs
Definition: climbable.hpp:52
Simple two dimensional vector.
Definition: vector.hpp:24
EventType
Definition: trigger_base.hpp:35
bool may_climb(Player &player) const
returns true if the player is within bounds of the Climbable
Definition: climbable.cpp:146
Definition: object_settings.hpp:35
Player * climbed_by
set to player who's currently climbing us, null if nobody is
Definition: climbable.hpp:51
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: climbable.cpp:94
Definition: climbable.hpp:28
virtual void event(Player &player, EventType type) override
Receive trigger events.
Definition: climbable.cpp:121
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: climbable.cpp:105
This class is the base class for all objects you can interact with in some way.
Definition: trigger_base.hpp:31
Simple timer designed to be used in the update functions of objects.
Definition: timer.hpp:24
Definition: reader_mapping.hpp:31
Definition: player.hpp:39
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42