From 278e6e52a5f6f38794acffe91d300cb77c17c17e Mon Sep 17 00:00:00 2001 From: magenoxx Date: Fri, 5 Nov 2010 14:10:09 +0000 Subject: [PATCH] cardNumber in CardView (copied from Mage/Card) --- Mage.Common/src/mage/view/CardView.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mage.Common/src/mage/view/CardView.java b/Mage.Common/src/mage/view/CardView.java index 467ef8fe13d..aa7f0097486 100644 --- a/Mage.Common/src/mage/view/CardView.java +++ b/Mage.Common/src/mage/view/CardView.java @@ -64,6 +64,7 @@ public class CardView implements Serializable { protected String art; protected Rarity rarity; protected String expansionSetCode; + protected int cardNumber; public List targets; @@ -95,6 +96,7 @@ public class CardView implements Serializable { this.rarity = card.getRarity(); this.expansionSetCode = card.getExpansionSetCode(); } + this.cardNumber = card.getCardNumber(); if (card instanceof Spell) { Spell spell = (Spell)card; @@ -204,6 +206,10 @@ public class CardView implements Serializable { return id; } + public int getCardNumber() { + return cardNumber; + } + /** * Returns UUIDs for targets. * Can be null if there is no target selected.