17 #ifndef HEADER_SUPERTUX_BADGUY_GRANITO_BIG_HPP 18 #define HEADER_SUPERTUX_BADGUY_GRANITO_BIG_HPP 20 #include "badguy/granito.hpp" 32 static void register_class(ssq::VM& vm);
41 static std::string class_name() {
return "granito_big"; }
42 virtual std::string get_class_name()
const override {
return class_name(); }
43 virtual std::string get_exposed_class_name()
const override {
return "GranitoBig"; }
44 static std::string display_name() {
return _(
"Big Granito"); }
49 virtual GameObjectTypes
get_types()
const override;
52 Granito* get_carrying()
const {
return m_carrying; }
59 virtual void eject()
override;
68 virtual void wave()
override {}
69 virtual void jump()
override {}
70 virtual void sit()
override {}
71 virtual GranitoBig* get_carrier()
const override {
return nullptr; }
77 bool try_wave()
override;
78 bool try_jump()
override;
virtual void sit() override
Makes the Granito sit.
Definition: granito_big.hpp:70
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: granito_big.hpp:46
virtual void eject() override
This function tells the Granito being carried to unglue itself from the Big Granito, by jumping and walking off.
Definition: granito_big.cpp:88
A ""GranitoBig"" that was given a name can be controlled by scripts.
Definition: granito_big.hpp:29
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: granito.hpp:54
virtual GameObjectTypes get_types() const override
Get all types of the object, if available.
Definition: granito_big.cpp:70
Definition: object_settings.hpp:39
virtual void active_update(float dt_sec) override
called each frame when the badguy is activated.
Definition: granito_big.cpp:41
virtual void wave() override
Makes the Granito wave.
Definition: granito_big.hpp:68
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: granito_big.hpp:45
Interactable friendly NPC.
Definition: granito.hpp:34
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 void jump() override
Makes the Granito jump.
Definition: granito_big.hpp:69
Definition: reader_mapping.hpp:32
virtual HitResponse collision_player(Player &player, const CollisionHit &hit) override
Called when the badguy collided with a player.
Definition: granito_big.cpp:34
This module contains methods controlling the player.
Definition: player.hpp:47
std::string get_carrying_name() const
Gets the name of the Granito being carried by the Big Granito.
Definition: granito_big.cpp:99
This class collects data about a collision.
Definition: collision_hit.hpp:44