17 #ifndef HEADER_SUPERTUX_BADGUY_SKYDIVE_HPP 18 #define HEADER_SUPERTUX_BADGUY_SKYDIVE_HPP 20 #include "badguy/badguy.hpp" 21 #include "object/portable.hpp" 34 virtual void ungrab(
MovingObject&
object, Direction dir)
override;
35 virtual std::string get_class()
const override {
return "skydive"; }
36 virtual std::string get_display_name()
const override {
return _(
"Sky dive"); }
39 virtual HitResponse collision_player(
Player& player,
const CollisionHit& hit)
override;
40 virtual bool collision_squished (
GameObject& obj)
override;
42 virtual void active_update (
float dt_sec)
override;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:31
Simple two dimensional vector.
Definition: vector.hpp:24
virtual HitResponse collision_badguy(BadGuy &badguy, const CollisionHit &hit) override
Called when the badguy collided with another badguy.
Definition: skydive.cpp:44
virtual void collision_solid(const CollisionHit &hit) override
Called when the badguy collided with solid ground.
Definition: skydive.cpp:32
An object that inherits from this object is considered "portable" and can be carried around by the pl...
Definition: portable.hpp:29
virtual void collision_tile(uint32_t tile_attributes) override
Called when a collision with tile with special attributes occurred.
Definition: skydive.cpp:105
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
Definition: skydive.hpp:23
virtual void grab(MovingObject &object, const Vector &pos, Direction dir) override
called each frame when the object has been grabbed.
Definition: skydive.cpp:55
Definition: reader_mapping.hpp:31
Definition: player.hpp:39
This class collects data about a collision.
Definition: collision_hit.hpp:44