17 #ifndef HEADER_SUPERTUX_BADGUY_TREEWILLOWISP_HPP 18 #define HEADER_SUPERTUX_BADGUY_TREEWILLOWISP_HPP 20 #include "badguy/badguy.hpp" 36 virtual bool is_freezable()
const override {
return false; }
46 void start_sucking(
const Vector& suck_target);
48 void set_color(
const Color& color);
49 Color get_color()
const;
57 STATE_DEFAULT, STATE_VANISHING, STATE_SUCKED
71 std::unique_ptr<SoundSource> sound_source;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:38
virtual bool collides(GameObject &other, const CollisionHit &hit) const override
when 2 objects collided, we will first call the collision functions of both objects that can decide o...
Definition: treewillowisp.cpp:94
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: badguy.hpp:71
virtual void activate() override
called when the badguy has been activated.
Definition: treewillowisp.cpp:55
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:37
Definition: treewillowisp.hpp:25
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: treewillowisp.hpp:30
virtual void play_looping_sounds() override
continues all looping sounds
Definition: treewillowisp.cpp:170
Definition: ghosttree.hpp:25
virtual void stop_looping_sounds() override
stops all looping sounds
Definition: treewillowisp.cpp:163
virtual bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: treewillowisp.hpp:35
void vanish()
make TreeWillOWisp vanish
Definition: treewillowisp.cpp:66
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: treewillowisp.cpp:87
A sound source represents the source of audio output.
Definition: sound_source.hpp:25
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 draw(DrawingContext &context) override
Called when the badguy is drawn.
Definition: treewillowisp.cpp:106
This module contains methods controlling the player.
Definition: player.hpp:47
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:113