ArmyFormation.h 864 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * ArmyFormation.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../AIUtility.h"
  12. #include "../../../lib/GameConstants.h"
  13. #include "../../../lib/GameLibrary.h"
  14. namespace NKAI
  15. {
  16. struct HeroPtr;
  17. class AIGateway;
  18. class FuzzyHelper;
  19. class Nullkiller;
  20. class DLL_EXPORT ArmyFormation
  21. {
  22. private:
  23. std::shared_ptr<CCallback> cb; //this is enough, but we downcast from CCallback
  24. public:
  25. ArmyFormation(std::shared_ptr<CCallback> CB, const Nullkiller * ai): cb(CB) {}
  26. void rearrangeArmyForSiege(const CGTownInstance * town, const CGHeroInstance * attacker);
  27. void rearrangeArmyForWhirlpool(const CGHeroInstance * hero);
  28. void addSingleCreatureStacks(const CGHeroInstance * hero);
  29. };
  30. }