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.
 
 
 

51 line
894 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 World class
  12. // ---------------
  13. //
  14. #if !defined __LOL_WORLD_H__
  15. #define __LOL_WORLD_H__
  16. #include "entity.h"
  17. namespace lol
  18. {
  19. class WorldData;
  20. class World : public Entity
  21. {
  22. public:
  23. World();
  24. virtual ~World();
  25. protected:
  26. /* Inherited from Entity */
  27. virtual char const *GetName();
  28. virtual void TickGame(float deltams);
  29. virtual void TickDraw(float deltams);
  30. public:
  31. /* New methods */
  32. int GetWidth();
  33. int GetHeight();
  34. private:
  35. WorldData *data;
  36. };
  37. } /* namespace lol */
  38. #endif // __LOL_WORLD_H__