17 #ifndef HEADER_SUPERTUX_BADGUY_MOLE_HPP 18 #define HEADER_SUPERTUX_BADGUY_MOLE_HPP 20 #include "badguy/badguy.hpp" 34 virtual bool is_freezable()
const override;
36 virtual void ignite()
override;
38 virtual std::string get_class()
const override {
return "mole"; }
39 virtual std::string get_display_name()
const override {
return _(
"Mole"); }
52 void set_state(MoleState new_state);
62 Mole& operator=(
const Mole&) =
delete;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:31
virtual void active_update(float) override
called each frame when the badguy is activated.
Definition: mole.cpp:90
virtual void ignite() override
Called when hit by a fire bullet, and is_flammable() returns true.
Definition: mole.cpp:180
virtual HitResponse collision_badguy(BadGuy &, const CollisionHit &) override
Called when the badguy collided with another badguy.
Definition: mole.cpp:60
virtual bool collision_squished(GameObject &object) override
Called when the player hit the badguy from above.
Definition: mole.cpp:66
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
virtual void activate() override
called when the badguy has been activated.
Definition: mole.cpp:46
Simple timer designed to be used in the update functions of objects.
Definition: timer.hpp:24
Definition: reader_mapping.hpp:31
virtual void kill_fall() override
Set the badguy to kill/falling state, which makes him falling of the screen (his sprite is turned ups...
Definition: mole.cpp:52
This class collects data about a collision.
Definition: collision_hit.hpp:44