17 #ifndef HEADER_SUPERTUX_BADGUY_FLAME_HPP 18 #define HEADER_SUPERTUX_BADGUY_FLAME_HPP 20 #include "badguy/badguy.hpp" 36 virtual void freeze()
override;
37 virtual void ignite()
override;
38 virtual bool is_freezable()
const override;
42 GameObjectTypes
get_types()
const override;
43 std::string get_default_sprite_name()
const override;
45 static std::string class_name() {
return "flame"; }
46 virtual std::string get_class_name()
const override {
return class_name(); }
47 static std::string display_name() {
return _(
"Flame"); }
54 virtual void on_flip(
float height)
override;
71 std::unique_ptr<SoundSource> sound_source;
72 SurfacePtr m_radius_indicator;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:38
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: badguy.hpp:71
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:170
virtual void activate() override
called when the badguy has been activated.
Definition: flame.cpp:150
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: flame.hpp:48
virtual void draw(DrawingContext &context) override
Called when the badguy is drawn.
Definition: flame.cpp:136
virtual void ignite() override
Kills the badguy by igniting it.
Definition: flame.cpp:193
virtual void play_looping_sounds() override
continues all looping sounds
Definition: flame.cpp:232
GameObjectTypes get_types() const override
Get all types of the object, if available.
Definition: flame.cpp:81
Definition: object_settings.hpp:39
virtual void freeze() override
Called when hit by an ice bullet, and is_freezable() returns true.
Definition: flame.cpp:175
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: flame.cpp:118
virtual std::vector< Direction > get_allowed_directions() const override
Returns a vector of directions the badguy can be set to.
Definition: flame.cpp:240
virtual void on_flip(float height) override
When level is flipped vertically.
Definition: flame.cpp:246
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: flame.hpp:49
virtual bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: flame.cpp:218
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:224
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
Definition: reader_mapping.hpp:32
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42
virtual void deactivate() override
called when the badguy has been deactivated
Definition: flame.cpp:163