17 #ifndef HEADER_SUPERTUX_BADGUY_GRANITO_GIANT_HPP 18 #define HEADER_SUPERTUX_BADGUY_GRANITO_GIANT_HPP 20 #include "badguy/badguy.hpp" 30 static std::string class_name() {
return "granito_giant"; }
31 virtual std::string get_class_name()
const override {
return class_name(); }
32 static std::string display_name() {
return _(
"Giant Granito"); }
39 virtual bool is_freezable()
const override {
return false; }
43 GameObjectTypes
get_types()
const override;
44 virtual std::string get_default_sprite_name()
const override;
45 virtual void after_editor_set()
override;
48 enum Type { AWAKE, SLEEP, CORRUPTED_A, CORRUPTED_B, CORRUPTED_C };
virtual void initialize() override
called immediately before the first call to initialize
Definition: granito_giant.cpp:34
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
GameObjectTypes get_types() const override
Get all types of the object, if available.
Definition: granito_giant.cpp:68
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: granito_giant.cpp:62
virtual bool is_flammable() const override
Returns whether to call ignite() when a badguy gets hit by a fire bullet.
Definition: granito_giant.hpp:38
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: granito_giant.hpp:33
Definition: granito_giant.hpp:22
virtual HitResponse collision_player(Player &player, const CollisionHit &hit) override
Called when the badguy collided with a player.
Definition: granito_giant.cpp:28
virtual bool is_hurtable() const override
Return true if this badguy can be hurt by tiles with the attribute "hurts".
Definition: granito_giant.hpp:40
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 bool is_snipable() const override
Can enemy be sniped by sliding or swimboosting Tux? Returns false if enemy is spiky or too large...
Definition: granito_giant.hpp:41
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: granito_giant.hpp:34
Definition: reader_mapping.hpp:32
This module contains methods controlling the player.
Definition: player.hpp:47
This class collects data about a collision.
Definition: collision_hit.hpp:44