1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/server/CGameHandler.h
Michał W. Urbańczyk 0c139e72f5 More changes for netcode/serialization
Removed not needed stuff
2008-07-25 17:28:28 +00:00

24 lines
487 B
C++

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