17 #ifndef HEADER_SUPERTUX_BADGUY_SKYDIVE_HPP 18 #define HEADER_SUPERTUX_BADGUY_SKYDIVE_HPP 20 #include "badguy/badguy.hpp" 35 virtual void grab(
MovingObject&
object,
const Vector& pos, Direction dir)
override;
36 virtual void ungrab(
MovingObject&
object, Direction dir)
override;
38 virtual bool is_freezable()
const override;
40 virtual std::string get_overlay_size()
const override {
return "2x2"; }
41 static std::string class_name() {
return "skydive"; }
42 virtual std::string get_class_name()
const override {
return class_name(); }
43 static std::string display_name() {
return _(
"Skydive"); }
52 virtual HitResponse collision_player(
Player& player,
const CollisionHit& hit)
override;
53 virtual bool collision_squished (
GameObject& obj)
override;
56 virtual bool is_portable()
const override;
Base class for moving sprites that can hurt the Player.
Definition: badguy.hpp:38
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: skydive.hpp:44
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: badguy.hpp:71
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: skydive.hpp:45
virtual void initialize() override
called immediately before the first call to initialize
Definition: skydive.cpp:168
virtual HitResponse collision_badguy(BadGuy &badguy, const CollisionHit &hit) override
Called when the badguy collided with another badguy.
Definition: skydive.cpp:55
virtual void collision_solid(const CollisionHit &hit) override
Called when the badguy collided with solid ground.
Definition: skydive.cpp:36
virtual void collision_tile(uint32_t tile_attributes) override
Called when a collision with tile with special attributes occurred.
Definition: skydive.cpp:159
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
Base class for all dynamic/moving game objects.
Definition: moving_object.hpp:35
Definition: skydive.hpp:22
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: skydive.hpp:46
virtual void grab(MovingObject &object, const Vector &pos, Direction dir) override
called each frame when the object has been grabbed.
Definition: skydive.cpp:66
virtual std::vector< Direction > get_allowed_directions() const override
Returns a vector of directions the badguy can be set to.
Definition: skydive.cpp:208
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
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: skydive.cpp:180