17 #ifndef HEADER_SUPERTUX_OBJECT_PLATFORM_HPP 18 #define HEADER_SUPERTUX_OBJECT_PLATFORM_HPP 20 #include "object/moving_sprite.hpp" 21 #include "object/path_object.hpp" 22 #include "squirrel/exposed_object.hpp" 23 #include "scripting/platform.hpp" 40 virtual void update(
float dt_sec)
override;
42 virtual void move_to(
const Vector& pos)
override;
44 virtual std::string get_class()
const override {
return "platform"; }
45 virtual std::string get_display_name()
const override {
return _(
"Platform"); }
49 const Vector& get_speed()
const {
return m_speed; }
74 bool m_player_contact;
78 bool m_last_player_contact;
Simple two dimensional vector.
Definition: vector.hpp:24
This class binds a certain GameObject class to a scripting class.
Definition: exposed_object.hpp:45
Definition: object_settings.hpp:35
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
A class for all objects that contain / make use of a path.
Definition: path_object.hpp:28
Definition: reader_mapping.hpp:31
Abstract base class for MovingObjects that are represented by a Sprite.
Definition: moving_sprite.hpp:29
This class collects data about a collision.
Definition: collision_hit.hpp:44