X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fparticlesystem.hpp;h=b3f49a5adb173e99a298a752c55e3e0b58e7f639;hb=a113d3bd1feddd510e3b2852b0d42522735eee40;hp=dd356f82cc6e3a3c1b30b363fa4147e17b12ed89;hpb=ff4c6994b952e26b854461d739eb3bcbfc30719f;p=supertux.git diff --git a/src/object/particlesystem.hpp b/src/object/particlesystem.hpp index dd356f82c..b3f49a5ad 100644 --- a/src/object/particlesystem.hpp +++ b/src/object/particlesystem.hpp @@ -54,7 +54,7 @@ class ParticleSystem : public GameObject public: ParticleSystem(float max_particle_size = 60); virtual ~ParticleSystem(); - + virtual void draw(DrawingContext& context); protected: @@ -70,7 +70,7 @@ protected: Vector pos; Surface* texture; }; - + std::vector particles; float virtual_width, virtual_height; }; @@ -88,7 +88,7 @@ public: std::string type() const { return "SnowParticleSystem"; } - + private: class SnowParticle : public Particle { @@ -98,7 +98,7 @@ private: float anchorx; float drift_speed; }; - + Surface* snowimages[3]; }; @@ -115,14 +115,14 @@ public: std::string type() const { return "GhostParticleSystem"; } - + private: class GhostParticle : public Particle { public: float speed; }; - + Surface* ghosts[2]; }; @@ -138,17 +138,16 @@ public: virtual void update(float elapsed_time); std::string type() const - { return "CloudParticleSystem"; } - + { return "CloudParticleSystem"; } + private: class CloudParticle : public Particle { public: float speed; }; - + Surface* cloudimage; }; #endif -