ArmyFormation.h 819 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. public:
  27. ArmyFormation(std::shared_ptr<CCallback> CB, const Nullkiller * ai): cb(CB) {}
  28. void rearrangeArmyForSiege(const CGTownInstance * town, const CGHeroInstance * attacker);
  29. };
  30. }