2011-09-28 20:58:06 +03:00
|
|
|
#pragma once
|
2011-09-29 14:24:15 +03:00
|
|
|
#include "../global.h"
|
2011-09-30 00:29:54 +03:00
|
|
|
#include "../lib/CBattleCallback.h"
|
2011-09-28 20:58:06 +03:00
|
|
|
class CGameState;
|
|
|
|
class CConnection;
|
2011-09-29 14:24:15 +03:00
|
|
|
struct CPack;
|
|
|
|
class CBattleGameInterface;
|
|
|
|
struct BattleAction;
|
|
|
|
class CStack;
|
2011-09-28 20:58:06 +03:00
|
|
|
|
2011-09-30 00:29:54 +03:00
|
|
|
class CClient/* : public IGameCallback*/ : public IConnectionHandler
|
2011-09-28 20:58:06 +03:00
|
|
|
{
|
|
|
|
public:
|
2011-09-29 14:24:15 +03:00
|
|
|
bool terminate;
|
|
|
|
BattleAction *curbaction;
|
2011-09-28 20:58:06 +03:00
|
|
|
CGameState *gs;
|
2011-09-29 14:24:15 +03:00
|
|
|
CBattleGameInterface *ai;
|
2011-10-11 16:16:28 +03:00
|
|
|
ui8 color;
|
2011-09-28 20:58:06 +03:00
|
|
|
|
2011-09-29 14:24:15 +03:00
|
|
|
CClient();
|
2011-09-28 20:58:06 +03:00
|
|
|
|
2011-09-29 14:24:15 +03:00
|
|
|
void run();
|
|
|
|
void handlePack( CPack * pack ); //applies the given pack and deletes it
|
|
|
|
void requestMoveFromAI(const CStack *s);
|
|
|
|
void requestMoveFromAIWorker(const CStack *s);
|
2011-12-11 15:16:12 +03:00
|
|
|
|
|
|
|
void commenceTacticPhaseForInt(CBattleGameInterface *battleInt);
|
2011-09-28 20:58:06 +03:00
|
|
|
};
|