18 #ifndef HEADER_SUPERTUX_OBJECT_SPRITE_PARTICLE_HPP 19 #define HEADER_SUPERTUX_OBJECT_SPRITE_PARTICLE_HPP 21 #include "math/anchor_point.hpp" 22 #include "sprite/sprite_ptr.hpp" 23 #include "supertux/game_object.hpp" 24 #include "video/color.hpp" 25 #include "video/drawing_context.hpp" 33 const Vector& position, AnchorPoint anchor,
34 const Vector& velocity,
const Vector& acceleration,
35 int drawing_layer = LAYER_OBJECTS-1,
bool notimeout =
false,
Color color = Color::WHITE);
36 SpriteParticle(
const std::string& sprite_name,
const std::string& action,
37 const Vector& position, AnchorPoint anchor,
38 const Vector& velocity,
const Vector& acceleration,
39 int drawing_layer = LAYER_OBJECTS-1,
bool notimeout =
false,
Color color = Color::WHITE);
44 virtual void update(
float dt_sec)
override;
56 SpritePtr lightsprite;
Definition: sprite_particle.hpp:29
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: sprite_particle.hpp:40
virtual bool is_saveable() const override
Indicates if the object will be saved.
Definition: sprite_particle.hpp:46
virtual void update(float dt_sec) override
This function is called once per frame and allows the object to update it's state.
Definition: sprite_particle.cpp:78
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
virtual GameObjectClasses get_class_types() const
List notable classes in inheritance hierarchy of class.
Definition: game_object.cpp:113
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 draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: sprite_particle.cpp:100
This module contains methods controlling the player.
Definition: player.hpp:47
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42