Client.h 653 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "../global.h"
  3. #include "../lib/CBattleCallback.h"
  4. class CGameState;
  5. class CConnection;
  6. struct CPack;
  7. class CBattleGameInterface;
  8. struct BattleAction;
  9. class CStack;
  10. class CClient/* : public IGameCallback*/ : public IConnectionHandler
  11. {
  12. public:
  13. bool terminate;
  14. BattleAction *curbaction;
  15. CGameState *gs;
  16. CBattleGameInterface *ai;
  17. ui8 color;
  18. CClient();
  19. void run();
  20. void handlePack( CPack * pack ); //applies the given pack and deletes it
  21. void requestMoveFromAI(const CStack *s);
  22. void requestMoveFromAIWorker(const CStack *s);
  23. void commenceTacticPhaseForInt(CBattleGameInterface *battleInt);
  24. };