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.
 
 
 

45 line
820 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 Sprite class
  12. // ----------------
  13. //
  14. #if !defined __LOL_SPRITE_H__
  15. #define __LOL_SPRITE_H__
  16. #include "worldentity.h"
  17. #include "tileset.h"
  18. namespace lol
  19. {
  20. class SpriteData;
  21. class Sprite : public WorldEntity
  22. {
  23. public:
  24. Sprite(TileSet *tileset, int id);
  25. virtual ~Sprite();
  26. protected:
  27. virtual void TickGame(float deltams);
  28. virtual void TickDraw(float deltams);
  29. private:
  30. SpriteData *data;
  31. };
  32. } /* namespace lol */
  33. #endif // __LOL_SPRITE_H__