GameCore.h 707 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Created by jovian on 18/07/17.
  3. //
  4. #ifndef TINYSHOOTER_GAMECORE_H
  5. #define TINYSHOOTER_GAMECORE_H
  6. // Read hardware commands
  7. #include "Control/InputAndJoy.h"
  8. // For game contents
  9. #include "Physics/TinyWorld.h"
  10. // For game display
  11. #include "Graphics/Renderer.h"
  12. // For creation of entities
  13. #include "Physics/Wall.h"
  14. #include "Physics/HumanSoldier.h"
  15. #include "Physics/AISoldier.h"
  16. class GameCore {
  17. public :
  18. GameCore();
  19. virtual ~GameCore();
  20. bool initialize(); // Create attributes, return false if failure occurred
  21. void startQuickGame(); // Start a default game
  22. protected:
  23. InputAndJoy *m_input;
  24. TinyWorld *m_world;
  25. Renderer *m_rend;
  26. };
  27. #endif //TINYSHOOTER_GAMECORE_H