17 #ifndef HEADER_SUPERTUX_BADGUY_SNAIL_HPP 18 #define HEADER_SUPERTUX_BADGUY_SNAIL_HPP 20 #include "badguy/walking_badguy.hpp" 38 virtual bool is_freezable()
const override;
41 static std::string class_name() {
return "snail"; }
42 virtual std::string get_class_name()
const override {
return class_name(); }
43 static std::string display_name() {
return _(
"Snail"); }
47 virtual GameObjectTypes
get_types()
const override;
48 std::string get_default_sprite_name()
const override;
50 virtual bool is_portable()
const override;
51 virtual void ungrab(
MovingObject& , Direction dir_)
override;
52 virtual void grab(
MovingObject&,
const Vector& pos, Direction dir_)
override;
61 void be_kicked(
bool upwards);
84 Timer kicked_delay_timer;
87 Timer m_guard_end_timer;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:38
virtual GameObjectTypes get_types() const override
Get all types of the object, if available.
Definition: snail.cpp:66
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: walking_badguy.hpp:55
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: snail.cpp:156
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:339
virtual bool can_break() const override
True if this badguy can break bricks or open bonusblocks in his current form.
Definition: snail.cpp:150
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: snail.hpp:45
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
virtual HitResponse collision_player(Player &player, const CollisionHit &hit) override
Called when the badguy collided with a player.
Definition: snail.cpp:314
virtual bool is_snipable() const override
Can enemy be sniped by sliding or swimboosting Tux? Returns false if enemy is spiky or too large...
Definition: snail.cpp:235
Badguy "Snail" - a snail-like creature that can be flipped and tossed around at an angle...
Definition: snail.hpp:24
Base class for all dynamic/moving game objects.
Definition: moving_object.hpp:35
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: snail.hpp:44
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
virtual void collision_solid(const CollisionHit &hit) override
Called when the badguy collided with solid ground.
Definition: snail.cpp:242
virtual HitResponse collision_badguy(BadGuy &badguy, const CollisionHit &hit) override
Called when the badguy collided with another badguy.
Definition: snail.cpp:287
Simple timer designed to be used in the update functions of objects.
Definition: timer.hpp:24
Definition: reader_mapping.hpp:32
virtual void grab(MovingObject &, const Vector &pos, Direction dir_) override
called each frame when the object has been grabbed.
Definition: snail.cpp:387
This module contains methods controlling the player.
Definition: player.hpp:47
virtual void initialize() override
called immediately before the first call to initialize
Definition: snail.cpp:59
This class collects data about a collision.
Definition: collision_hit.hpp:44