16 #ifndef HEADER_SUPERTUX_OBJECT_BIGSNOWBALL_HPP 17 #define HEADER_SUPERTUX_OBJECT_BIGSNOWBALL_HPP 19 #include "object/moving_sprite.hpp" 21 #include "supertux/physic.hpp" 29 BigSnowball(
const Vector& pos,
const Direction& dir,
bool bounce =
false);
33 virtual void update(
float dt_sec)
override;
37 static std::string class_name() {
return "bigsnowball"; }
38 virtual std::string get_class_name()
const override {
return class_name(); }
39 static std::string display_name() {
return _(
"Big Snowball"); }
44 void spawn_particles();
50 bool m_break_on_impact;
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: bigsnowball.cpp:90
Physics engine.
Definition: physic.hpp:27
Definition: object_settings.hpp:39
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: bigsnowball.hpp:41
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: moving_sprite.hpp:60
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
Definition: bigsnowball.hpp:25
virtual HitResponse collision(GameObject &other, const CollisionHit &hit) override
this function is called when the object collided with any other object
Definition: bigsnowball.cpp:129
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 std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: bigsnowball.hpp:40
Definition: reader_mapping.hpp:32
Abstract base class for ""MovingObject""s, that are represented by a sprite.
Definition: moving_sprite.hpp:33
virtual void collision_solid(const CollisionHit &hit) override
this function is called when the object collided with something solid
Definition: bigsnowball.cpp:178
This class collects data about a collision.
Definition: collision_hit.hpp:44