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

28 lines
653 B
C
Raw Normal View History

#pragma once
2011-09-29 14:24:15 +03:00
#include "../global.h"
#include "../lib/CBattleCallback.h"
class CGameState;
class CConnection;
2011-09-29 14:24:15 +03:00
struct CPack;
class CBattleGameInterface;
struct BattleAction;
class CStack;
class CClient/* : public IGameCallback*/ : public IConnectionHandler
{
public:
2011-09-29 14:24:15 +03:00
bool terminate;
BattleAction *curbaction;
CGameState *gs;
2011-09-29 14:24:15 +03:00
CBattleGameInterface *ai;
ui8 color;
2011-09-29 14:24:15 +03:00
CClient();
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);
void commenceTacticPhaseForInt(CBattleGameInterface *battleInt);
};