CGameHandler.h 487 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "../global.h"
  3. #include <set>
  4. class CVCMIServer;
  5. class CGameState;
  6. class CConnection;
  7. struct StartInfo;
  8. class CGameHandler
  9. {
  10. CGameState *gs;
  11. CVCMIServer *s;
  12. std::map<int,CConnection*> connections;
  13. std::set<CConnection*> conns;
  14. public:
  15. CGameHandler(void);
  16. ~CGameHandler(void);
  17. void init(StartInfo *si, int Seed);
  18. void handleConnection(std::set<int> players, CConnection &c);
  19. void run();
  20. void newTurn();
  21. friend class CVCMIServer;
  22. };