mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
make some fields final
This commit is contained in:
parent
f4d9c98df7
commit
3653e09ce4
8 changed files with 10 additions and 10 deletions
|
@ -18,7 +18,7 @@ import mage.util.CardUtil;
|
||||||
*/
|
*/
|
||||||
public class ChooseACardNameEffect extends OneShotEffect {
|
public class ChooseACardNameEffect extends OneShotEffect {
|
||||||
|
|
||||||
public static String INFO_KEY = "NAMED_CARD";
|
public static final String INFO_KEY = "NAMED_CARD";
|
||||||
|
|
||||||
public enum TypeOfName {
|
public enum TypeOfName {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import mage.util.CardUtil;
|
||||||
*/
|
*/
|
||||||
public class ChooseBasicLandTypeEffect extends OneShotEffect {
|
public class ChooseBasicLandTypeEffect extends OneShotEffect {
|
||||||
|
|
||||||
public static String VALUE_KEY = "BasicLandType";
|
public static final String VALUE_KEY = "BasicLandType";
|
||||||
|
|
||||||
public ChooseBasicLandTypeEffect(Outcome outcome) {
|
public ChooseBasicLandTypeEffect(Outcome outcome) {
|
||||||
super(outcome);
|
super(outcome);
|
||||||
|
|
|
@ -21,7 +21,7 @@ import mage.util.CardUtil;
|
||||||
*/
|
*/
|
||||||
public class ChooseOpponentEffect extends OneShotEffect {
|
public class ChooseOpponentEffect extends OneShotEffect {
|
||||||
|
|
||||||
public static String VALUE_KEY = "_opponent";
|
public static final String VALUE_KEY = "_opponent";
|
||||||
|
|
||||||
public ChooseOpponentEffect(Outcome outcome) {
|
public ChooseOpponentEffect(Outcome outcome) {
|
||||||
super(outcome);
|
super(outcome);
|
||||||
|
|
|
@ -24,7 +24,7 @@ import mage.util.CardUtil;
|
||||||
|
|
||||||
public class FatesealEffect extends OneShotEffect {
|
public class FatesealEffect extends OneShotEffect {
|
||||||
|
|
||||||
protected static FilterCard filter1 = new FilterCard("card to put on the bottom of opponent's library");
|
protected static final FilterCard filter1 = new FilterCard("card to put on the bottom of opponent's library");
|
||||||
|
|
||||||
protected int fatesealNumber;
|
protected int fatesealNumber;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import mage.players.Player;
|
||||||
*/
|
*/
|
||||||
public class AscendAbility extends SimpleStaticAbility {
|
public class AscendAbility extends SimpleStaticAbility {
|
||||||
|
|
||||||
public static String ASCEND_RULE = "Ascend <i>(If you control ten or more permanents, you get the city's blessing for the rest of the game.)</i>";
|
public static final String ASCEND_RULE = "Ascend <i>(If you control ten or more permanents, you get the city's blessing for the rest of the game.)</i>";
|
||||||
|
|
||||||
public AscendAbility() {
|
public AscendAbility() {
|
||||||
super(Zone.BATTLEFIELD, new AscendContinuousEffect());
|
super(Zone.BATTLEFIELD, new AscendContinuousEffect());
|
||||||
|
|
|
@ -17,8 +17,8 @@ public class Constructed extends DeckValidator {
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(DeckValidator.class);
|
private static final Logger logger = Logger.getLogger(DeckValidator.class);
|
||||||
|
|
||||||
protected static List<String> anyNumberCardsAllowed = new ArrayList<>(Arrays.asList("Relentless Rats", "Shadowborn Apostle", "Rat Colony"));
|
protected static final List<String> anyNumberCardsAllowed = new ArrayList<>(Arrays.asList("Relentless Rats", "Shadowborn Apostle", "Rat Colony"));
|
||||||
protected static List<String> basicLandNames = new ArrayList<>(
|
protected static final List<String> basicLandNames = new ArrayList<>(
|
||||||
Arrays.asList("Forest", "Island", "Mountain", "Swamp", "Plains", "Wastes", "Snow-Covered Forest",
|
Arrays.asList("Forest", "Island", "Mountain", "Swamp", "Plains", "Wastes", "Snow-Covered Forest",
|
||||||
"Snow-Covered Island", "Snow-Covered Mountain", "Snow-Covered Swamp", "Snow-Covered Plains"));
|
"Snow-Covered Island", "Snow-Covered Mountain", "Snow-Covered Swamp", "Snow-Covered Plains"));
|
||||||
protected List<String> banned = new ArrayList<>();
|
protected List<String> banned = new ArrayList<>();
|
||||||
|
|
|
@ -12,7 +12,7 @@ import mage.cards.decks.DeckCardLists;
|
||||||
*/
|
*/
|
||||||
public final class DeckImporterUtil {
|
public final class DeckImporterUtil {
|
||||||
|
|
||||||
public static final String[] SIDEBOARD_MARKS = new String[]{"//sideboard", "sb: "};
|
private static final String[] SIDEBOARD_MARKS = new String[]{"//sideboard", "sb: "};
|
||||||
|
|
||||||
public static boolean haveSideboardSection(String file) {
|
public static boolean haveSideboardSection(String file) {
|
||||||
// search for sideboard section:
|
// search for sideboard section:
|
||||||
|
|
|
@ -16,9 +16,9 @@ import mage.cards.repository.CardRepository;
|
||||||
*/
|
*/
|
||||||
public class TxtDeckImporter extends DeckImporter {
|
public class TxtDeckImporter extends DeckImporter {
|
||||||
|
|
||||||
public static final String[] SET_VALUES = new String[]{"lands", "creatures", "planeswalkers", "other spells", "sideboard cards",
|
private static final String[] SET_VALUES = new String[]{"lands", "creatures", "planeswalkers", "other spells", "sideboard cards",
|
||||||
"Instant", "Land", "Enchantment", "Artifact", "Sorcery", "Planeswalker", "Creature"};
|
"Instant", "Land", "Enchantment", "Artifact", "Sorcery", "Planeswalker", "Creature"};
|
||||||
public static final Set<String> IGNORE_NAMES = new HashSet<>(Arrays.asList(SET_VALUES));
|
private static final Set<String> IGNORE_NAMES = new HashSet<>(Arrays.asList(SET_VALUES));
|
||||||
|
|
||||||
private boolean sideboard = false;
|
private boolean sideboard = false;
|
||||||
private boolean switchSideboardByEmptyLine = true; // all cards after first empty line will be sideboard (like mtgo format)
|
private boolean switchSideboardByEmptyLine = true; // all cards after first empty line will be sideboard (like mtgo format)
|
||||||
|
|
Loading…
Reference in a new issue