19 #ifndef HEADER_SUPERTUX_BADGUY_GOLDBOMB_HPP 20 #define HEADER_SUPERTUX_BADGUY_GOLDBOMB_HPP 22 #include "badguy/mrbomb.hpp" 34 static std::string class_name() {
return "goldbomb"; }
35 virtual std::string get_class_name()
const override {
return class_name(); }
36 static std::string display_name() {
return _(
"Gold Bomb"); }
41 virtual void explode()
override;
44 void flee(Direction dir);
50 enum State : uint8_t {
51 GB_STATE_REALIZING = MB_STATE_COUNT,
57 Timer m_realize_timer;
Definition: goldbomb.hpp:26
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: goldbomb.cpp:65
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: walking_badguy.hpp:55
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: goldbomb.hpp:37
virtual void collision_solid(const CollisionHit &hit) override
Called when the badguy collided with solid ground.
Definition: goldbomb.cpp:51
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: goldbomb.hpp:38
Definition: mrbomb.hpp:25
A sound source represents the source of audio output.
Definition: sound_source.hpp:25
virtual bool is_snipable() const override
Can enemy be sniped by sliding or swimboosting Tux? Returns false if enemy is spiky or too large...
Definition: goldbomb.hpp:39
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
Simple timer designed to be used in the update functions of objects.
Definition: timer.hpp:24
Definition: reader_mapping.hpp:32
This class collects data about a collision.
Definition: collision_hit.hpp:44