public void Attach(Warrior warrior) { if (warrior == null) { throw new InvalidOperationException("Warrior cannot be null!"); } this.attackers.Add(warrior); }
public bool Detach(Warrior warrior) { if (warrior == null) { throw new InvalidOperationException("Warrior cannot be null!"); } var removed = this.attackers.Remove(warrior); return removed; }
public void Detach(Warrior warrior) { this.Warriors.Remove(warrior); }
public void Attach(Warrior warrior) { this.Warriors.Add(warrior); }