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
|
|
|
{
|
2013-06-22 17:47:20 +03:00
|
|
|
shared_ptr<CCallback> cb;
|
2011-05-04 05:32:35 +03:00
|
|
|
|
2007-10-17 01:41:45 +03:00
|
|
|
public:
|
2013-06-22 17:47:20 +03:00
|
|
|
void init(shared_ptr<CCallback> CB) override;
|
2012-05-30 21:37:21 +03:00
|
|
|
void yourTurn() override;
|
2013-05-27 17:20:46 +03:00
|
|
|
void heroGotLevel(const CGHeroInstance *hero, PrimarySkill::PrimarySkill pskill, std::vector<SecondarySkill> &skills, QueryID queryID) override;
|
|
|
|
void commanderGotLevel (const CCommanderInstance * commander, std::vector<ui32> skills, QueryID queryID) override;
|
|
|
|
void showBlockingDialog(const std::string &text, const std::vector<Component> &components, QueryID askID, const int soundID, bool selection, bool cancel) override;
|
|
|
|
void showGarrisonDialog(const CArmedInstance *up, const CGHeroInstance *down, bool removableUnits, QueryID queryID) override;
|
2007-10-17 01:41:45 +03:00
|
|
|
};
|
|
|
|
|
2009-09-10 17:06:28 +03:00
|
|
|
#define NAME "EmptyAI 0.1"
|