From 40d164ea3d8437cd5a06a06d5b89bd938d3dd906 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 29 Apr 2017 18:28:28 -0400 Subject: no more getSystem --- include/particle.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/particle.hpp') diff --git a/include/particle.hpp b/include/particle.hpp index 822ac41..31825fc 100644 --- a/include/particle.hpp +++ b/include/particle.hpp @@ -29,21 +29,21 @@ struct Particle { class ParticleSystem : public entityx::System { private: - std::vector parts; - unsigned int maximum; + static std::vector parts; + static unsigned int maximum; public: ParticleSystem(unsigned int max = 2048); - void add(const vec2& pos, const ParticleType& type, const int& timeleft = 3000, + static void add(const vec2& pos, const ParticleType& type, const int& timeleft = 3000, const unsigned char& color = 0); - void addMultiple(const int& count, const ParticleType& type, std::function f, + static void addMultiple(const int& count, const ParticleType& type, std::function f, const int& timeleft = 3000, const unsigned char& color = 0); - void render(void); + static void render(void); void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; - int getCount(void) const; + static int getCount(void); }; #endif // PARTICLE_HPP_ -- cgit v1.2.3