Improved the handling of image files for handling also different images of non basic lands (e.g. Fallen Empires).

This commit is contained in:
LevelX2 2012-11-25 20:09:13 +01:00
parent efe5611c76
commit f72e1a1038
11 changed files with 51 additions and 33 deletions

View file

@ -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;
}
}