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" 36 static void register_class(ssq::VM& vm);
47 virtual void update(
float dt_sec)
override;
49 virtual void move_to(
const Vector& pos)
override;
51 static std::string class_name() {
return "platform"; }
52 virtual std::string get_class_name()
const override {
return class_name(); }
53 virtual std::string get_exposed_class_name()
const override {
return "Platform"; }
54 static std::string display_name() {
return _(
"Platform"); }
60 virtual void on_flip(
float height)
override;
63 void check_state()
override;
65 const Vector& get_speed()
const {
return m_speed; }
66 const Vector& get_movement()
const {
return m_movement; }
82 bool m_player_contact;
86 bool m_last_player_contact;
Definition: object_settings.hpp:39
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: moving_sprite.hpp:60
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
A base class for all objects that contain, or make use of a path.
Definition: path_object.hpp:36
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
Abstract base class for ""MovingObject""s, that are represented by a sprite.
Definition: moving_sprite.hpp:33
This class collects data about a collision.
Definition: collision_hit.hpp:44