25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

47 lines
877 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 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://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The Emitter class
  12. // -----------------
  13. //
  14. #if !defined __LOL_EMITTER_H__
  15. #define __LOL_EMITTER_H__
  16. #include "entity.h"
  17. #include "tileset.h"
  18. namespace lol
  19. {
  20. class EmitterData;
  21. class Emitter : public Entity
  22. {
  23. public:
  24. Emitter(TileSet *tileset, vec3 gravity);
  25. virtual ~Emitter();
  26. void AddParticle(int id, vec3 pos, vec3 vel);
  27. protected:
  28. virtual void TickGame(float deltams);
  29. virtual void TickDraw(float deltams);
  30. private:
  31. EmitterData *data;
  32. };
  33. } /* namespace lol */
  34. #endif // __LOL_EMITTER_H__