CGameState.h 613 B

12345678910111213141516171819202122232425262728
  1. #ifndef CGAMESTATE_H
  2. #define CGAMESTATE_H
  3. class CHeroInstance;
  4. class CTownInstance;
  5. class CCallback;
  6. struct PlayerState
  7. {
  8. public:
  9. int color;
  10. std::vector<std::vector<std::vector<bool> > >fogOfWarMap;
  11. std::vector<int> resources;
  12. std::vector<CHeroInstance *> heroes;
  13. std::vector<CTownInstance *> towns;
  14. };
  15. class CGameState
  16. {
  17. int currentPlayer;
  18. std::map<int,PlayerState> players; //color <-> playerstate
  19. public:
  20. friend CCallback;
  21. friend int _tmain(int argc, _TCHAR* argv[]);
  22. CCallback * cb; //for communication between PlayerInterface/AI and GameState
  23. };
  24. #endif //CGAMESTATE_H