2007-10-17 01:41:45 +03:00
|
|
|
#include "../../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
|
|
|
{
|
2007-12-06 20:32:06 +02:00
|
|
|
ICallback * cb;
|
2007-10-17 01:41:45 +03:00
|
|
|
public:
|
2007-12-06 20:32:06 +02:00
|
|
|
void init(ICallback * CB);
|
2007-10-17 01:41:45 +03:00
|
|
|
void yourTurn();
|
2008-02-05 05:56:45 +02:00
|
|
|
void heroKilled(const CGHeroInstance *);
|
|
|
|
void heroCreated(const CGHeroInstance *);
|
2011-01-29 21:07:49 +02:00
|
|
|
void heroMoved(const TryMoveHero&);
|
2007-11-19 00:58:28 +02:00
|
|
|
void heroPrimarySkillChanged(const CGHeroInstance * hero, int which, int val) {};
|
2007-12-27 02:11:46 +02:00
|
|
|
void showSelDialog(std::string text, std::vector<CSelectableComponent*> & components, int askID){};
|
2007-12-06 20:55:58 +02:00
|
|
|
void tileRevealed(int3 pos){};
|
|
|
|
void tileHidden(int3 pos){};
|
2009-04-30 17:59:30 +03:00
|
|
|
void showBlockingDialog(const std::string &text, const std::vector<Component> &components, ui32 askID, int soundID, bool selection, bool cancel){};
|
2009-09-10 17:06:28 +03:00
|
|
|
void showGarrisonDialog(const CArmedInstance *up, const CGHeroInstance *down, bool removableUnits, boost::function<void()> &onEnd) {};
|
2008-08-13 03:44:31 +03:00
|
|
|
void heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback);
|
2007-10-17 01:41:45 +03:00
|
|
|
};
|
|
|
|
|
2009-09-10 17:06:28 +03:00
|
|
|
#define NAME "EmptyAI 0.1"
|