17 #ifndef HEADER_SUPERTUX_OBJECT_TRAMPOLINE_HPP 18 #define HEADER_SUPERTUX_OBJECT_TRAMPOLINE_HPP 20 #include "object/rock.hpp" 30 virtual void update(
float dt_sec)
override;
33 virtual bool is_portable()
const override;
34 virtual std::string get_class()
const override {
return "trampoline"; }
35 virtual std::string get_display_name()
const override {
return _(
"Trampoline"); }
virtual HitResponse collision(GameObject &other, const CollisionHit &hit) override
this function is called when the object collided with any other object
Definition: trampoline.cpp:77
Simple two dimensional vector.
Definition: vector.hpp:24
Definition: object_settings.hpp:35
Jumping on a trampoline makes tux jump higher.
Definition: trampoline.hpp:23
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
Base class for all dynamic/moving game objects.
Definition: moving_object.hpp:31
virtual void grab(MovingObject &, const Vector &pos, Direction) override
called each frame when the object has been grabbed.
Definition: trampoline.cpp:120
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: trampoline.cpp:67
Definition: reader_mapping.hpp:31
This class collects data about a collision.
Definition: collision_hit.hpp:44