17 #ifndef HEADER_SUPERTUX_BADGUY_FLAME_HPP 18 #define HEADER_SUPERTUX_BADGUY_FLAME_HPP 20 #include "badguy/badguy.hpp" 35 virtual void freeze()
override;
36 virtual bool is_freezable()
const override;
40 virtual std::string get_class()
const override {
return "flame"; }
41 virtual std::string get_display_name()
const override {
return _(
"Flame"); }
51 std::unique_ptr<SoundSource> sound_source;
Base class for moving sprites that can hurt the Player.
Definition: badguy.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: flame.cpp:101
virtual void activate() override
called when the badguy has been activated.
Definition: flame.cpp:81
virtual void play_looping_sounds() override
continues all looping sounds
Definition: flame.cpp:139
Definition: object_settings.hpp:35
virtual void freeze() override
Called when hit by an ice bullet, and is_freezable() returns true.
Definition: flame.cpp:106
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: flame.cpp:67
virtual bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: flame.cpp:127
A sound source represents the source of audio output.
Definition: sound_source.hpp:25
virtual void stop_looping_sounds() override
stops all looping sounds
Definition: flame.cpp:132
Definition: reader_mapping.hpp:31
virtual void deactivate() override
called when the badguy has been deactivated
Definition: flame.cpp:94