2024-08-31 13:00:36 +02:00
|
|
|
/*
|
|
|
|
* IIGameSettings.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class JsonNode;
|
|
|
|
|
|
|
|
enum class EGameSettings
|
|
|
|
{
|
2024-09-11 11:54:54 +02:00
|
|
|
BANKS_SHOW_GUARDS_COMPOSITION,
|
2024-08-31 13:00:36 +02:00
|
|
|
BONUSES_GLOBAL,
|
|
|
|
BONUSES_PER_HERO,
|
2024-09-22 16:58:15 +02:00
|
|
|
COMBAT_AREA_SHOT_CAN_TARGET_EMPTY_HEX,
|
2024-08-31 13:00:36 +02:00
|
|
|
COMBAT_ATTACK_POINT_DAMAGE_FACTOR,
|
|
|
|
COMBAT_ATTACK_POINT_DAMAGE_FACTOR_CAP,
|
|
|
|
COMBAT_BAD_LUCK_DICE,
|
|
|
|
COMBAT_BAD_MORALE_DICE,
|
|
|
|
COMBAT_DEFENSE_POINT_DAMAGE_FACTOR,
|
|
|
|
COMBAT_DEFENSE_POINT_DAMAGE_FACTOR_CAP,
|
|
|
|
COMBAT_GOOD_LUCK_DICE,
|
|
|
|
COMBAT_GOOD_MORALE_DICE,
|
2024-08-31 23:04:32 +02:00
|
|
|
COMBAT_LAYOUTS,
|
2024-09-11 11:54:54 +02:00
|
|
|
COMBAT_ONE_HEX_TRIGGERS_OBSTACLES,
|
2024-08-31 13:00:36 +02:00
|
|
|
CREATURES_ALLOW_ALL_FOR_DOUBLE_MONTH,
|
|
|
|
CREATURES_ALLOW_RANDOM_SPECIAL_WEEKS,
|
|
|
|
CREATURES_DAILY_STACK_EXPERIENCE,
|
|
|
|
CREATURES_WEEKLY_GROWTH_CAP,
|
|
|
|
CREATURES_WEEKLY_GROWTH_PERCENT,
|
2024-09-11 11:54:54 +02:00
|
|
|
DIMENSION_DOOR_EXPOSES_TERRAIN_TYPE,
|
|
|
|
DIMENSION_DOOR_FAILURE_SPENDS_POINTS,
|
|
|
|
DIMENSION_DOOR_ONLY_TO_UNCOVERED_TILES,
|
|
|
|
DIMENSION_DOOR_TOURNAMENT_RULES_LIMIT,
|
|
|
|
DIMENSION_DOOR_TRIGGERS_GUARDS,
|
2024-08-31 13:00:36 +02:00
|
|
|
DWELLINGS_ACCUMULATE_WHEN_NEUTRAL,
|
|
|
|
DWELLINGS_ACCUMULATE_WHEN_OWNED,
|
|
|
|
DWELLINGS_MERGE_ON_RECRUIT,
|
2024-09-11 11:54:54 +02:00
|
|
|
HEROES_BACKPACK_CAP,
|
|
|
|
HEROES_MINIMAL_PRIMARY_SKILLS,
|
2024-08-31 13:00:36 +02:00
|
|
|
HEROES_PER_PLAYER_ON_MAP_CAP,
|
|
|
|
HEROES_PER_PLAYER_TOTAL_CAP,
|
|
|
|
HEROES_RETREAT_ON_WIN_WITHOUT_TROOPS,
|
|
|
|
HEROES_STARTING_STACKS_CHANCES,
|
|
|
|
HEROES_TAVERN_INVITE,
|
2024-09-11 11:54:54 +02:00
|
|
|
MAP_FORMAT_ARMAGEDDONS_BLADE,
|
|
|
|
MAP_FORMAT_CHRONICLES,
|
|
|
|
MAP_FORMAT_HORN_OF_THE_ABYSS,
|
|
|
|
MAP_FORMAT_IN_THE_WAKE_OF_GODS,
|
|
|
|
MAP_FORMAT_JSON_VCMI,
|
|
|
|
MAP_FORMAT_RESTORATION_OF_ERATHIA,
|
|
|
|
MAP_FORMAT_SHADOW_OF_DEATH,
|
2024-08-31 13:00:36 +02:00
|
|
|
MARKETS_BLACK_MARKET_RESTOCK_PERIOD,
|
|
|
|
MODULE_COMMANDERS,
|
|
|
|
MODULE_STACK_ARTIFACT,
|
|
|
|
MODULE_STACK_EXPERIENCE,
|
2024-09-11 11:54:54 +02:00
|
|
|
PATHFINDER_IGNORE_GUARDS,
|
|
|
|
PATHFINDER_ORIGINAL_FLY_RULES,
|
|
|
|
PATHFINDER_USE_BOAT,
|
|
|
|
PATHFINDER_USE_MONOLITH_ONE_WAY_RANDOM,
|
|
|
|
PATHFINDER_USE_MONOLITH_ONE_WAY_UNIQUE,
|
|
|
|
PATHFINDER_USE_MONOLITH_TWO_WAY,
|
|
|
|
PATHFINDER_USE_WHIRLPOOL,
|
2024-11-26 20:43:25 +02:00
|
|
|
RESOURCES_WEEKLY_BONUSES_AI,
|
2024-08-31 13:00:36 +02:00
|
|
|
TEXTS_ARTIFACT,
|
|
|
|
TEXTS_CREATURE,
|
|
|
|
TEXTS_FACTION,
|
|
|
|
TEXTS_HERO,
|
|
|
|
TEXTS_HERO_CLASS,
|
|
|
|
TEXTS_OBJECT,
|
|
|
|
TEXTS_RIVER,
|
|
|
|
TEXTS_ROAD,
|
|
|
|
TEXTS_SPELL,
|
|
|
|
TEXTS_TERRAIN,
|
|
|
|
TOWNS_BUILDINGS_PER_TURN_CAP,
|
|
|
|
TOWNS_STARTING_DWELLING_CHANCES,
|
2024-10-01 16:09:22 +02:00
|
|
|
INTERFACE_PLAYER_COLORED_BACKGROUND,
|
2024-09-27 20:16:41 +02:00
|
|
|
TOWNS_SPELL_RESEARCH,
|
2024-09-30 02:40:28 +02:00
|
|
|
TOWNS_SPELL_RESEARCH_COST,
|
|
|
|
TOWNS_SPELL_RESEARCH_PER_DAY,
|
2024-09-28 15:51:53 +02:00
|
|
|
TOWNS_SPELL_RESEARCH_COST_EXPONENT_PER_RESEARCH,
|
2024-08-31 13:00:36 +02:00
|
|
|
|
|
|
|
OPTIONS_COUNT,
|
|
|
|
OPTIONS_BEGIN = BONUSES_GLOBAL
|
|
|
|
};
|
|
|
|
|
|
|
|
class DLL_LINKAGE IGameSettings
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual JsonNode getFullConfig() const = 0;
|
|
|
|
virtual const JsonNode & getValue(EGameSettings option) const = 0;
|
|
|
|
virtual ~IGameSettings() = default;
|
|
|
|
|
|
|
|
bool getBoolean(EGameSettings option) const;
|
|
|
|
int64_t getInteger(EGameSettings option) const;
|
|
|
|
double getDouble(EGameSettings option) const;
|
|
|
|
std::vector<int> getVector(EGameSettings option) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
VCMI_LIB_NAMESPACE_END
|