public void Activate(BattlefieldCardReference reference)
 {
     if (hasTapSymbol)
         if (reference.isUntapped)
             reference.isTapped = true;
         else
             return;
     toDo.Run();
 }
Пример #2
0
 protected internal void DeclareAttacker(BattlefieldCardReference reference, Player toAttack)
 {
     if (reference.controller != this)
         return;
     attacking.Add(new KeyValuePair<BattlefieldCardReference, Player>(reference, toAttack));
 }
Пример #3
0
 protected internal void WithdrawAttacker(BattlefieldCardReference reference)
 {
     for (int n = 0; n < attacking.Count; n++)
     {
         var item = attacking[n];
         if (item.Key == reference)
             attacking.RemoveAt(n);
     }
 }
Пример #4
0
 public bool IsAttacking(BattlefieldCardReference reference)
 {
     foreach(KeyValuePair<BattlefieldCardReference, Player> kv in attacking)
     {
         if (kv.Key == reference)
             return true;
     }
     return false;
 }