Settings.h 1.2 KB

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