CEmptyAI.h 1.2 KB

1234567891011121314151617181920212223242526272829
  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. void commanderGotLevel (const CCommanderInstance * commander, std::vector<std::pair<ui8, ui8> > secondarySkills,
  22. std::vector<Bonus *> specialSkills, boost::function<void(ui32)> &callback) {};
  23. };
  24. #define NAME "EmptyAI 0.1"