ArmyFormation.h 851 B

123456789101112131415161718192021222324252627282930313233343536373839
  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/VCMI_Lib.h"
  14. #include "../../../lib/CTownHandler.h"
  15. #include "../../../lib/CBuildingHandler.h"
  16. namespace NKAI
  17. {
  18. struct HeroPtr;
  19. class AIGateway;
  20. class FuzzyHelper;
  21. class Nullkiller;
  22. class DLL_EXPORT ArmyFormation
  23. {
  24. private:
  25. std::shared_ptr<CCallback> cb; //this is enough, but we downcast from CCallback
  26. const Nullkiller * ai;
  27. public:
  28. ArmyFormation(std::shared_ptr<CCallback> CB, const Nullkiller * ai): cb(CB), ai(ai) {}
  29. void rearrangeArmyForSiege(const CGTownInstance * town, const CGHeroInstance * attacker);
  30. };
  31. }