17 #ifndef HEADER_SUPERTUX_BADGUY_TREEWILLOWISP_HPP 18 #define HEADER_SUPERTUX_BADGUY_TREEWILLOWISP_HPP 20 #include "badguy/badguy.hpp" 35 virtual bool is_freezable()
const override {
return false; }
45 void start_sucking(
const Vector& suck_target);
47 void set_color(
const Color& color);
48 Color get_color()
const;
56 STATE_DEFAULT, STATE_VANISHING, STATE_SUCKED
70 std::unique_ptr<SoundSource> sound_source;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:31
virtual bool collides(GameObject &other, const CollisionHit &hit) const override
when 2 objects collided, we will first call the pre_collision_check functions of both objects that ca...
Definition: treewillowisp.cpp:88
Simple two dimensional vector.
Definition: vector.hpp:24
virtual void activate() override
called when the badguy has been activated.
Definition: treewillowisp.cpp:54
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: treewillowisp.hpp:36
Definition: treewillowisp.hpp:25
virtual void play_looping_sounds() override
continues all looping sounds
Definition: treewillowisp.cpp:164
Definition: ghosttree.hpp:25
virtual void stop_looping_sounds() override
stops all looping sounds
Definition: treewillowisp.cpp:157
virtual bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: treewillowisp.hpp:34
void vanish()
make TreeWillOWisp vanish
Definition: treewillowisp.cpp:65
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: treewillowisp.cpp:81
A sound source represents the source of audio output.
Definition: sound_source.hpp:25
virtual void draw(DrawingContext &context) override
Called when the badguy is drawn.
Definition: treewillowisp.cpp:100
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
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: treewillowisp.cpp:107