#pragma once #include "../global.h" #include class CVCMIServer; class CGameState; class CConnection; struct StartInfo; class CGameHandler { CGameState *gs; CVCMIServer *s; std::map connections; std::set conns; public: CGameHandler(void); ~CGameHandler(void); void init(StartInfo *si, int Seed); void handleConnection(std::set players, CConnection &c); void run(); void newTurn(); friend class CVCMIServer; };