You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
805 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://www.wtfpl.net/ for more details.
  9. //
  10. #pragma once
  11. //
  12. // The Emitter class
  13. // -----------------
  14. //
  15. #include "engine/entity.h"
  16. #include "tileset.h"
  17. namespace lol
  18. {
  19. class EmitterData;
  20. class Emitter : public Entity
  21. {
  22. public:
  23. Emitter(TileSet *tileset, vec3 gravity);
  24. virtual ~Emitter();
  25. void AddParticle(int id, vec3 pos, vec3 vel);
  26. protected:
  27. virtual void TickGame(float seconds);
  28. virtual void TickDraw(float seconds, Scene &scene);
  29. private:
  30. EmitterData *data;
  31. };
  32. } /* namespace lol */