1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00
vcmi/VCMI_BattleAiHost/Client.h
2011-12-11 12:16:12 +00:00

28 lines
653 B
C++

#pragma once
#include "../global.h"
#include "../lib/CBattleCallback.h"
class CGameState;
class CConnection;
struct CPack;
class CBattleGameInterface;
struct BattleAction;
class CStack;
class CClient/* : public IGameCallback*/ : public IConnectionHandler
{
public:
bool terminate;
BattleAction *curbaction;
CGameState *gs;
CBattleGameInterface *ai;
ui8 color;
CClient();
void run();
void handlePack( CPack * pack ); //applies the given pack and deletes it
void requestMoveFromAI(const CStack *s);
void requestMoveFromAIWorker(const CStack *s);
void commenceTacticPhaseForInt(CBattleGameInterface *battleInt);
};