2011-12-14 00:23:17 +03:00
|
|
|
#pragma once
|
|
|
|
|
2011-12-31 13:03:29 +03:00
|
|
|
#include "../../lib/AI_Base.h"
|
2008-04-13 14:05:39 +03:00
|
|
|
#include "../../CCallback.h"
|
2009-04-22 21:48:56 +03:00
|
|
|
|
2010-12-24 17:37:48 +02:00
|
|
|
struct HeroMoveDetails;
|
|
|
|
|
2007-10-21 19:45:13 +03:00
|
|
|
class CEmptyAI : public CGlobalAI
|
2007-10-17 01:41:45 +03:00
|
|
|
{
|
2011-05-04 05:32:35 +03:00
|
|
|
CCallback *cb;
|
|
|
|
|
2007-10-17 01:41:45 +03:00
|
|
|
public:
|
2012-05-30 21:37:21 +03:00
|
|
|
void init(CCallback * CB) override;
|
|
|
|
void yourTurn() override;
|
2012-06-01 18:59:26 +03:00
|
|
|
void heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback) override;
|
|
|
|
void commanderGotLevel (const CCommanderInstance * commander, std::vector<ui32> skills, boost::function<void(ui32)> &callback) override;
|
|
|
|
void showBlockingDialog(const std::string &text, const std::vector<Component> &components, ui32 askID, const int soundID, bool selection, bool cancel) override;
|
|
|
|
void showGarrisonDialog(const CArmedInstance *up, const CGHeroInstance *down, bool removableUnits, boost::function<void()> &onEnd) override;
|
2007-10-17 01:41:45 +03:00
|
|
|
};
|
|
|
|
|
2009-09-10 17:06:28 +03:00
|
|
|
#define NAME "EmptyAI 0.1"
|