CEmptyAI.h 1001 B

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