19 #ifndef HEADER_SUPERTUX_OBJECT_UNSTABLE_TILE_HPP 20 #define HEADER_SUPERTUX_OBJECT_UNSTABLE_TILE_HPP 22 #include "object/moving_sprite.hpp" 23 #include "supertux/physic.hpp" 32 virtual void update(
float dt_sec)
override;
33 virtual std::string get_class()
const override {
return "unstable_tile"; }
34 virtual std::string get_display_name()
const override {
return _(
"Unstable tile"); }
46 void startCrumbling();
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: unstable_tile.cpp:119
Physics engine.
Definition: physic.hpp:27
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
Definition: reader_mapping.hpp:31
Abstract base class for MovingObjects that are represented by a Sprite.
Definition: moving_sprite.hpp:29
A block that disintegrates when stood on.
Definition: unstable_tile.hpp:26
This class collects data about a collision.
Definition: collision_hit.hpp:44
virtual HitResponse collision(GameObject &other, const CollisionHit &hit) override
this function is called when the object collided with any other object
Definition: unstable_tile.cpp:38