NumericConstants.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * NumericConstants.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. namespace GameConstants
  13. {
  14. DLL_LINKAGE extern const std::string VCMI_VERSION;
  15. constexpr int PUZZLE_MAP_PIECES = 48;
  16. constexpr int MAX_HEROES_PER_PLAYER = 8;
  17. constexpr int AVAILABLE_HEROES_PER_PLAYER = 2;
  18. constexpr int ALL_PLAYERS = 255; //bitfield
  19. constexpr int CREATURES_PER_TOWN = 7; //without upgrades
  20. constexpr int SPELL_LEVELS = 5;
  21. constexpr int SPELL_SCHOOL_LEVELS = 4;
  22. constexpr int DEFAULT_SCHOOLS = 4;
  23. constexpr int CRE_LEVELS = 10; // number of creature experience levels
  24. constexpr int HERO_GOLD_COST = 2500;
  25. constexpr int SPELLBOOK_GOLD_COST = 500;
  26. constexpr int SKILL_GOLD_COST = 2000;
  27. constexpr int BATTLE_SHOOTING_PENALTY_DISTANCE = 10; //if the distance is > than this, then shooting stack has distance penalty
  28. constexpr int BATTLE_SHOOTING_RANGE_DISTANCE = std::numeric_limits<uint8_t>::max(); // used when shooting stack has no shooting range limit
  29. constexpr int ARMY_SIZE = 7;
  30. constexpr int SKILL_PER_HERO = 8;
  31. constexpr ui32 HERO_HIGH_LEVEL = 10; // affects primary skill upgrade order
  32. constexpr int SKILL_QUANTITY=28;
  33. constexpr int PRIMARY_SKILLS=4;
  34. constexpr int RESOURCE_QUANTITY=8;
  35. constexpr int HEROES_PER_TYPE=8; //amount of heroes of each type
  36. // amounts of OH3 objects. Can be changed by mods, should be used only during H3 loading phase
  37. constexpr int F_NUMBER = 9;
  38. constexpr int ARTIFACTS_QUANTITY=171;
  39. constexpr int HEROES_QUANTITY=156;
  40. constexpr int SPELLS_QUANTITY=70;
  41. constexpr int CREATURES_COUNT = 197;
  42. constexpr ui32 BASE_MOVEMENT_COST = 100; //default cost for non-diagonal movement
  43. }
  44. VCMI_LIB_NAMESPACE_END