16 #ifndef HEADER_SUPERTUX_BADGUY_GHOUL_HPP 17 #define HEADER_SUPERTUX_BADGUY_GHOUL_HPP 19 #include "badguy/badguy.hpp" 20 #include "object/path_object.hpp" 29 static std::string class_name() {
return "ghoul"; }
30 static std::string display_name() {
return _(
"Ghoul"); }
31 std::string get_class_name()
const override {
return class_name(); }
34 bool is_freezable()
const override;
44 void goto_node(
int node_idx);
45 void set_state(
const std::string& state);
49 void move_to(
const Vector& pos)
override;
57 STATE_STOPPED, STATE_IDLE, STATE_TRACKING, STATE_PATHMOVING, STATE_PATHMOVING_TRACK
bool collision_squished(GameObject &object) override
Called when the player hit the badguy from above.
Definition: ghoul.cpp:48
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
std::vector< Direction > get_allowed_directions() const override
Returns a vector of directions the badguy can be set to.
Definition: ghoul.cpp:211
void deactivate() override
called when the badguy has been deactivated
Definition: ghoul.cpp:86
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: ghoul.hpp:36
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: ghoul.hpp:32
bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: ghoul.cpp:65
void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: ghoul.cpp:98
A base class for all objects that contain, or make use of a path.
Definition: path_object.hpp:36
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
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: ghoul.hpp:33
void finish_construction() override
Called after all objects have been added to the Sector and the Sector is fully constructed.
Definition: ghoul.cpp:71
void activate() override
called when the badguy has been activated.
Definition: ghoul.cpp:79