mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Code cleanup
This commit is contained in:
@@ -119,19 +119,19 @@ public final class PaperCard implements Comparable<IPaperCard>, InventoryItemFro
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public PaperCard(final CardRules c, final String edition0, final CardRarity rare, final int index) {
|
public PaperCard(final CardRules rules0, final String edition0, final CardRarity rarity0, final int artIndex0) {
|
||||||
this(c, edition0, rare, index, false);
|
this(rules0, edition0, rarity0, artIndex0, false);
|
||||||
}
|
}
|
||||||
|
public PaperCard(final CardRules rules0, final String edition0, final CardRarity rarity0, final int artIndex0, final boolean foil0) {
|
||||||
public PaperCard(final CardRules c, final String edition0, final CardRarity rare, final int index, final boolean foil) {
|
if (rules0 == null || edition0 == null || rarity0 == null) {
|
||||||
if ( edition0 == null || c == null || rare == null )
|
|
||||||
throw new IllegalArgumentException("Cannot create card without rules, edition or rarity");
|
throw new IllegalArgumentException("Cannot create card without rules, edition or rarity");
|
||||||
this.rules = c;
|
}
|
||||||
this.name = c.getName();
|
rules = rules0;
|
||||||
this.edition = edition0;
|
name = rules0.getName();
|
||||||
this.artIndex = index;
|
edition = edition0;
|
||||||
this.foil = foil;
|
artIndex = artIndex0;
|
||||||
this.rarity = rare;
|
foil = foil0;
|
||||||
|
rarity = rarity0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Want this class to be a key for HashTable
|
// Want this class to be a key for HashTable
|
||||||
|
|||||||
Reference in New Issue
Block a user