(final String line)
| 2854 | } |
| 2855 | |
| 2856 | private void parseGameMode(final String line) throws PCGParseException |
| 2857 | { |
| 2858 | final String requestedMode = line.substring(IOConstants.TAG_GAMEMODE.length() + 1); |
| 2859 | |
| 2860 | final GameMode currentGameMode = SettingsHandler.getGameAsProperty().get(); |
| 2861 | final String currentMode = currentGameMode.getName(); |
| 2862 | |
| 2863 | if (!requestedMode.equals(currentMode)) |
| 2864 | { |
| 2865 | final String msg = LanguageBundle.getFormattedString("Exceptions.PCGenParser.WrongGameMode", //$NON-NLS-1$ |
| 2866 | requestedMode, currentMode); |
| 2867 | throw new PCGParseException("ParseGameMode", line, msg); //$NON-NLS-1$ |
| 2868 | } |
| 2869 | } |
| 2870 | |
| 2871 | private void parseGenderLine(final String line) |
| 2872 | { |
no test coverage detected