17 #ifndef HEADER_SUPERTUX_OBJECT_PARTICLESYSTEM_HPP 18 #define HEADER_SUPERTUX_OBJECT_PARTICLESYSTEM_HPP 22 #include "math/vector.hpp" 23 #include "supertux/game_object.hpp" 24 #include "video/surface_ptr.hpp" 52 static void register_class(ssq::VM& vm);
61 static std::string class_name() {
return "particle-system"; }
62 virtual std::string get_class_name()
const override {
return class_name(); }
63 virtual std::string get_exposed_class_name()
const override {
return "ParticleSystem"; }
64 static std::string display_name() {
return _(
"Particle system"); }
83 int get_layer()
const {
return z_pos; }
113 float max_particle_size;
115 std::vector<std::unique_ptr<Particle> > particles;
117 float virtual_height;
virtual void draw(DrawingContext &context) override
The GameObject should draw itself onto the provided DrawingContext if this function is called...
Definition: particlesystem.cpp:80
bool enabled
Determines whether the system is enabled.
Definition: particlesystem.hpp:123
virtual std::string get_display_name() const override
Returns the display name of the object, translated to the user's locale.
Definition: particlesystem.hpp:65
Definition: particlesystem.hpp:86
Definition: object_settings.hpp:39
This is the base class for particle systems.
Definition: particlesystem.hpp:49
This class is responsible for: Updating and drawing the object.
Definition: game_object.hpp:83
bool get_enabled() const
Definition: particlesystem.cpp:142
void set_enabled(bool enable)
Definition: particlesystem.cpp:136
virtual GameObjectClasses get_class_types() const
List notable classes in inheritance hierarchy of class.
Definition: game_object.cpp:113
virtual GameObjectClasses get_class_types() const override
List notable classes in inheritance hierarchy of class.
Definition: particlesystem.hpp:66
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
Definition: reader_mapping.hpp:32
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42