예제 #1
0
 public int this[Blocker blocker]
 {
     get
     {
         var assigned = 0;
         _distribution.TryGetValue(blocker, out assigned);
         return assigned;
     }
 }
예제 #2
0
 //public bool AssignsDamageAsThoughItWasntBlocked { get { return _card.Has().AssignsDamageAsThoughItWasntBlocked; } }
 public void AddBlocker(Blocker blocker)
 {
     _blockers.Add(blocker);
     _isBlocked.Value = true;
 }
예제 #3
0
 public void RemoveBlocker(Blocker blocker)
 {
     _blockers.Remove(blocker);
 }
예제 #4
0
 //public int CalculateDefendingPlayerLifeloss()
 //{
 //    return QuickCombat.CalculateDefendingPlayerLifeloss(_card, _blockers.Select(x => x.Card));
 //}
 public bool HasBlocker(Blocker blocker)
 {
     return _blockers.Contains(blocker);
 }
예제 #5
0
 public void Assign(Blocker blocker, int amount)
 {
     var assigned = 0;
     _distribution.TryGetValue(blocker, out assigned);
     _distribution[blocker] = assigned + amount;
 }