17 #ifndef HEADER_SUPERTUX_BADGUY_SNAIL_HPP 18 #define HEADER_SUPERTUX_BADGUY_SNAIL_HPP 20 #include "badguy/walking_badguy.hpp" 21 #include "object/portable.hpp" 40 virtual bool is_freezable()
const override;
41 virtual std::string get_class()
const override {
return "snail"; }
42 virtual std::string get_display_name()
const override {
return _(
"Snail"); }
44 virtual bool is_portable()
const override;
45 virtual void ungrab(
MovingObject& , Direction dir_)
override;
67 Timer kicked_delay_timer;
void be_normal()
switch to state STATE_NORMAL
Definition: snail.cpp:52
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:31
void be_kicked()
switch to state STATE_KICKED_DELAY
Definition: snail.cpp:77
Simple two dimensional vector.
Definition: vector.hpp:24
void be_flat()
switch to state STATE_FLAT
Definition: snail.cpp:61
An object that inherits from this object is considered "portable" and can be carried around by the pl...
Definition: portable.hpp:29
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: snail.cpp:95
Base class for Badguys that walk on the floor.
Definition: walking_badguy.hpp:25
virtual bool collision_squished(GameObject &object) override
Called when the player hit the badguy from above.
Definition: snail.cpp:233
virtual bool can_break() const override
True if this badguy can break bricks or open bonusblocks in his current form.
Definition: snail.cpp:90
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
virtual HitResponse collision_player(Player &player, const CollisionHit &hit) override
Called when the badguy collided with a player.
Definition: snail.cpp:212
Badguy "Snail" - a snail-like creature that can be flipped and tossed around at an angle...
Definition: snail.hpp:25
Base class for all dynamic/moving game objects.
Definition: moving_object.hpp:31
virtual void collision_solid(const CollisionHit &hit) override
Called when the badguy collided with solid ground.
Definition: snail.cpp:148
virtual HitResponse collision_badguy(BadGuy &badguy, const CollisionHit &hit) override
Called when the badguy collided with another badguy.
Definition: snail.cpp:190
Simple timer designed to be used in the update functions of objects.
Definition: timer.hpp:24
Definition: reader_mapping.hpp:31
virtual void grab(MovingObject &, const Vector &pos, Direction dir_) override
called each frame when the object has been grabbed.
Definition: snail.cpp:286
Definition: player.hpp:39
virtual void initialize() override
called immediately before the first call to initialize
Definition: snail.cpp:45
This class collects data about a collision.
Definition: collision_hit.hpp:44