CEmptyAI.h 1.0 KB

123456789101112131415161718192021222324
  1. #include "../../AI_Base.h"
  2. #include "../../CCallback.h"
  3. struct HeroMoveDetails;
  4. class CEmptyAI : public CGlobalAI
  5. {
  6. ICallback * cb;
  7. public:
  8. void init(ICallback * CB);
  9. void yourTurn();
  10. void heroKilled(const CGHeroInstance *);
  11. void heroCreated(const CGHeroInstance *);
  12. void heroMoved(const HeroMoveDetails &);
  13. void heroPrimarySkillChanged(const CGHeroInstance * hero, int which, int val) {};
  14. void showSelDialog(std::string text, std::vector<CSelectableComponent*> & components, int askID){};
  15. void tileRevealed(int3 pos){};
  16. void tileHidden(int3 pos){};
  17. void showBlockingDialog(const std::string &text, const std::vector<Component> &components, ui32 askID, int soundID, bool selection, bool cancel){};
  18. void showGarrisonDialog(const CArmedInstance *up, const CGHeroInstance *down, bool removableUnits, boost::function<void()> &onEnd) {};
  19. void heroGotLevel(const CGHeroInstance *hero, int pskill, std::vector<ui16> &skills, boost::function<void(ui32)> &callback);
  20. };
  21. #define NAME "EmptyAI 0.1"