18 #ifndef HEADER_SUPERTUX_BADGUY_YETI_HPP 19 #define HEADER_SUPERTUX_BADGUY_YETI_HPP 21 #include "badguy/badguy.hpp" 36 virtual std::string get_class()
const override {
return "yeti"; }
37 virtual std::string get_display_name()
const override {
return _(
"Yeti"); }
47 void drop_stalactite();
52 void take_hit(
Player& player);
54 void add_snow_explosions();
79 void recalculate_pos();
84 class SnowExplosionParticle:
public BadGuy 87 SnowExplosionParticle(
const Vector& pos,
const Vector& velocity);
92 Yeti& operator=(
const Yeti&) =
delete;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:31
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: yeti.cpp:145
Simple two dimensional vector.
Definition: vector.hpp:24
virtual void draw(DrawingContext &context) override
Called when the badguy is drawn.
Definition: yeti.cpp:116
virtual void initialize() override
called immediately before the first call to initialize
Definition: yeti.cpp:94
virtual void collision_solid(const CollisionHit &hit) override
Called when the badguy collided with solid ground.
Definition: yeti.cpp:315
virtual bool collision_squished(GameObject &object) override
Called when the player hit the badguy from above.
Definition: yeti.cpp:236
Definition: object_settings.hpp:35
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: yeti.cpp:280
Base class for all the things that make up Levels' Sectors.
Definition: game_object.hpp:46
virtual bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: yeti.cpp:358
Simple timer designed to be used in the update functions of objects.
Definition: timer.hpp:24
Definition: reader_mapping.hpp:31
Definition: player.hpp:39
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42
This class collects data about a collision.
Definition: collision_hit.hpp:44