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
659 B

  1. //
  2. // Deus Hax (working title)
  3. // Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
  4. //
  5. //
  6. // The Game class
  7. // --------------
  8. //
  9. #if !defined __DH_GAME_H__
  10. #define __DH_GAME_H__
  11. #include "entity.h"
  12. #include "scene.h"
  13. class GameData;
  14. class Game : public Entity
  15. {
  16. public:
  17. Game(char const *mapname);
  18. ~Game();
  19. protected:
  20. /* Inherited from Entity */
  21. virtual Group GetGroup();
  22. virtual void TickGame(float deltams);
  23. virtual void TickDraw(float deltams);
  24. public:
  25. /* New methods */
  26. Scene *GetScene();
  27. void SetMouse(int x, int y);
  28. void Quit();
  29. int Finished();
  30. private:
  31. GameData *data;
  32. };
  33. #endif // __DH_GAME_H__