forked from External/mage
Improved the handling of image files for handling also different images of non basic lands (e.g. Fallen Empires).
This commit is contained in:
parent
efe5611c76
commit
f72e1a1038
11 changed files with 51 additions and 33 deletions
|
|
@ -40,12 +40,14 @@ public class SimpleCardView implements Serializable {
|
|||
protected String expansionSetCode;
|
||||
protected int cardNumber;
|
||||
protected boolean faceDown;
|
||||
protected boolean useCardNumber; // for building the image name (different images for the same card)
|
||||
|
||||
public SimpleCardView(UUID id, String expansionSetCode, int cardNumber, boolean faceDown) {
|
||||
public SimpleCardView(UUID id, String expansionSetCode, int cardNumber, boolean faceDown, boolean useCardNumber) {
|
||||
this.id = id;
|
||||
this.expansionSetCode = expansionSetCode;
|
||||
this.cardNumber = cardNumber;
|
||||
this.faceDown = faceDown;
|
||||
this.useCardNumber = useCardNumber;
|
||||
}
|
||||
|
||||
public UUID getId() {
|
||||
|
|
@ -63,4 +65,8 @@ public class SimpleCardView implements Serializable {
|
|||
public boolean isFaceDown() {
|
||||
return faceDown;
|
||||
}
|
||||
|
||||
public boolean useCardNumber() {
|
||||
return useCardNumber;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue