public DetermineAttack(IGame game, IAttackingInPlay attacker, IDefendingInPlay defender)
     : base(game)
 {
     this.Attacker = attacker;
     this.Defender = defender;
     this.attack   = attacker.Card.PrintedAttack;
 }
Example #2
0
 public DetermineDefense(IGame game, IAttackingInPlay attacker, IDefendingInPlay defender)
     : base(game)
 {
     this.Attacker = attacker;
     this.Defender = defender;
     this.defense  = defender.Card.PrintedDefense;
 }
 public DetermineAttack(IGame game, IAttackingInPlay attacker, IDefendingInPlay defender)
     : base(game)
 {
     this.Attacker = attacker;
     this.Defender = defender;
     this.attack = attacker.Card.PrintedAttack;
 }
 public DetermineDefense(IGame game, IAttackingInPlay attacker, IDefendingInPlay defender)
     : base(game)
 {
     this.Attacker = attacker;
     this.Defender = defender;
     this.defense = defender.Card.PrintedDefense;
 }
Example #5
0
        public void RemoveAttacker(IAttackingInPlay attacker)
        {
            if (attacker == null)
            {
                throw new ArgumentNullException("attacker");
            }

            if (!attackers.Contains(attacker))
            {
                return;
            }

            attackers.Remove(attacker);
        }