Exemple #1
0
 public moveChangeTrigger(moveChangeTrigger m)
 {
     minionDied = m.minionDied;
     minionDiedList = new List<int>(m.minionDiedList);
     cardPlayedList = new List<int>(m.cardPlayedList);
     handcardAdded = m.handcardAdded;
     manaChanged = m.manaChanged;
     tauntChanged = m.tauntChanged;
     ownNewTarget = m.ownNewTarget;
     enemyNewTarget = m.enemyNewTarget;
     hasOwnTargetMove = m.hasOwnTargetMove;
 }
Exemple #2
0
        public Playfield(Playfield p)
        {

            //implementation      
            this.rngIndex = p.rngIndex;
            this.moveList = new List<Action>(p.moveList);
            moveMap = new Dictionary<Tuple<int, int>, int>();
            moveTrigger = new moveChangeTrigger(p.moveTrigger);

            this.isOwnTurn = p.isOwnTurn;
            this.homeDeck = new List<CardDB.Card>(p.homeDeck);
            this.awayDeck = new List<CardDB.Card>(p.awayDeck);

            this.graveYard = new List<GraveYardItem>(p.graveYard);
            //end of implementation

            this.nextEntity = p.nextEntity;

            this.playerFirst = new Player(p.playerFirst);
            this.playerSecond = new Player(p.playerSecond);

            this.needGraveyard = p.needGraveyard;
            if (needGraveyard) this.diedMinions = new List<GraveYardItem>(p.diedMinions);

            //####buffs#############################
        }