1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00
vcmi/VCMI_BattleAiHost/Client.h
Michał W. Urbańczyk c8115d41a8 Imposed time limits on AIs.
Simple action validation.
2011-10-11 13:16:28 +00:00

26 lines
584 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);
};