Example #1
0
        private string type; //General

        #endregion Fields

        #region Constructors

        //Pull values from xml.
        public Card()
        {
            name = xml.name;
            manaCost = xml.manaCost;
            illustration = xml.illustration;
            colorIndicator = xml.colorIndicator;
            type = xml.type;
            expansionSymbol = xml.expansionSymbol;
            rarity = xml.rarity;
            textbox = xml.textbox;
            loyalty = xml.loyalty;
            illustrateCredit = xml.illustrateCredit;
            legalText = xml.legalText;
            collectorNumber = xml.collectorNumber;
            isTapped = false;
            isUntapping = true;
            isDestroyed = false;
            isExiled = true;
            owner = xml.owner;   //Initial deck's player
            controller = xml.controller;   //Casting player
            numLoyaltyCounters = 0;
            isToken = false;
            isCopy = false;
            isMonocolor = false;
            isMulticolor = false;
            isColorless = false;
        }
Example #2
0
 public Card(Card copyCard)
 {
     name = copyCard.name;
     manaCost = copyCard.manaCost;
     illustration = copyCard.illustration;
     colorIndicator = copyCard.colorIndicator;
     type = copyCard.type;
     expansionSymbol = copyCard.expansionSymbol;
     rarity = copyCard.rarity;
     textbox = copyCard.textbox;
     basePower = copyCard.basePower;
     tempPower = 0;
     baseToughness = copyCard.baseToughness;
     tempToughness = 0;
     loyalty = copyCard.loyalty;
     illustrateCredit = copyCard.illustrateCredit;
     legalText = copyCard.legalText;
     collectorNumber = copyCard.collectorNumber;
     isTapped = copyCard.isTapped;
     isNewlyControlled = copyCard.isNewlyControlled;
     isAttacking = copyCard.isAttacking;
     isBlocking = copyCard.isBlocking;
     isBlocked = copyCard.isBlocked;
     damageMarked = copyCard.damageMarked;
     isUntapping = copyCard.isUntapping;
     isDestroyed = copyCard.isDestroyed;
     isExiled = copyCard.isExiled;
     owner = copyCard.owner;
     controller = copyCard.controller;   //Casting player
     numPlusPlusCounters = copyCard.numPlusPlusCounters;
     numMinusMinusCounters = copyCard.numMinusMinusCounters;
     numLoyaltyCounters = copyCard.numLoyaltyCounters;
     isToken = copyCard.isToken;
     isCopy = copyCard.isCopy;
     isMonocolor = copyCard.isMonocolor;
     isMulticolor = copyCard.isMulticolor;
     isColorless = copyCard.isColorless;
 }