Handles game modes.
| 60 | * Handles game modes. |
| 61 | */ |
| 62 | public final class GameMode implements Comparable<Object> |
| 63 | { |
| 64 | private static PropertyContext prefsContext = |
| 65 | PCGenSettings.getInstance().createChildContext("gameMode"); //$NON-NLS-1$ |
| 66 | |
| 67 | private PropertyContext gamemodePrefsContext = prefsContext.createChildContext("gameMode"); //$NON-NLS-1$ |
| 68 | private List<String> allowedModes; |
| 69 | private List<String> bonusFeatLevels = new ArrayList<>(); |
| 70 | private List<String> bonusStackList = new ArrayList<>(); |
| 71 | private List<String> bonusStatLevels = new ArrayList<>(); |
| 72 | private List<String> defaultDataSetList = new ArrayList<>(); |
| 73 | private Map<String, XPTable> xpTableInfo = new HashMap<>(); |
| 74 | private List<String> skillMultiplierLevels = new ArrayList<>(); |
| 75 | @Deprecated |
| 76 | private HashMapToList<String, ACControl> ACTypeAddMap = new HashMapToList<>(); |
| 77 | @Deprecated |
| 78 | private HashMapToList<String, ACControl> ACTypeRemoveMap = new HashMapToList<>(); |
| 79 | private Map<Type, String> plusCalcs; |
| 80 | private Map<String, String> spellRangeMap = new HashMap<>(); |
| 81 | private String acName = ""; |
| 82 | private String currencyUnitAbbrev = ""; |
| 83 | private String damageResistance = ""; |
| 84 | private String defaultSpellBook = "Known Spells"; |
| 85 | private String defaultUnitSet = Constants.STANDARD_UNITSET_NAME; |
| 86 | private UnitSet selectedUnitSet = null; |
| 87 | private String displayName; |
| 88 | private final String folderName; |
| 89 | private String levelUpMessage = ""; |
| 90 | private String name; |
| 91 | private String spellBaseDC = "0"; |
| 92 | private String spellBaseConcentration = ""; |
| 93 | private List<Type> weaponCategories = new ArrayList<>(); |
| 94 | private Map<Type, String> weaponTypes = new HashMap<>(); |
| 95 | private String weaponReachFormula = ""; |
| 96 | private Map<Integer, Integer> xpAwardsMap = new HashMap<>(); |
| 97 | private Map<Integer, String> crStepsMap = new HashMap<>(); |
| 98 | private String crThreshold = null; |
| 99 | private String rankModFormula = ""; |
| 100 | private String addWithMetamagic = ""; |
| 101 | private boolean bonusStatAllowsStack = false; |
| 102 | private int babAttCyc = 5; //6 |
| 103 | private int babMaxAtt = Integer.MAX_VALUE; //4 |
| 104 | private int babMinVal = 1; |
| 105 | private int maxNonEpicLevel = Integer.MAX_VALUE; |
| 106 | private int displayOrder = Integer.MAX_VALUE; |
| 107 | |
| 108 | private int skillCosts_Class = 1; |
| 109 | private int skillCost_CrossClass = 2; |
| 110 | private int skillCost_Exclusive = 0; |
| 111 | |
| 112 | private String pointPoolName = ""; |
| 113 | |
| 114 | private int nonProfPenalty = -4; |
| 115 | |
| 116 | private double squareSize = 5; |
| 117 | |
| 118 | /** no default distance for short range */ |
| 119 | private int shortRangeDistance; |
nothing calls this directly
no test coverage detected