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