Settings.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Settings.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. VCMI_LIB_NAMESPACE_BEGIN
  12. class JsonNode;
  13. class ResourcePath;
  14. VCMI_LIB_NAMESPACE_END
  15. namespace NKAI
  16. {
  17. class Settings
  18. {
  19. private:
  20. int maxRoamingHeroes;
  21. int mainHeroTurnDistanceLimit;
  22. int scoutHeroTurnDistanceLimit;
  23. int maxpass;
  24. int pathfinderBucketsCount;
  25. int pathfinderBucketSize;
  26. float maxGoldPressure;
  27. bool allowObjectGraph;
  28. bool useTroopsFromGarrisons;
  29. bool openMap;
  30. bool useFuzzy;
  31. public:
  32. explicit Settings(int difficultyLevel);
  33. int getMaxPass() const { return maxpass; }
  34. float getMaxGoldPressure() const { return maxGoldPressure; }
  35. int getMaxRoamingHeroes() const { return maxRoamingHeroes; }
  36. int getMainHeroTurnDistanceLimit() const { return mainHeroTurnDistanceLimit; }
  37. int getScoutHeroTurnDistanceLimit() const { return scoutHeroTurnDistanceLimit; }
  38. int getPathfinderBucketsCount() const { return pathfinderBucketsCount; }
  39. int getPathfinderBucketSize() const { return pathfinderBucketSize; }
  40. bool isObjectGraphAllowed() const { return allowObjectGraph; }
  41. bool isGarrisonTroopsUsageAllowed() const { return useTroopsFromGarrisons; }
  42. bool isOpenMap() const { return openMap; }
  43. bool isUseFuzzy() const { return useFuzzy; }
  44. };
  45. }