Settings.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. float maxGoldPressure;
  25. bool allowObjectGraph;
  26. bool useTroopsFromGarrisons;
  27. bool openMap;
  28. public:
  29. Settings();
  30. int getMaxPass() const { return maxpass; }
  31. float getMaxGoldPressure() const { return maxGoldPressure; }
  32. int getMaxRoamingHeroes() const { return maxRoamingHeroes; }
  33. int getMainHeroTurnDistanceLimit() const { return mainHeroTurnDistanceLimit; }
  34. int getScoutHeroTurnDistanceLimit() const { return scoutHeroTurnDistanceLimit; }
  35. bool isObjectGraphAllowed() const { return allowObjectGraph; }
  36. bool isGarrisonTroopsUsageAllowed() const { return useTroopsFromGarrisons; }
  37. bool isOpenMap() const { return openMap; }
  38. };
  39. }