CEmptyAI.h 1.0 KB

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