public bool RemoveFighter(FightActor fighter) { if (!Fighters.Contains(fighter)) { return(false); } var index = Fighters.IndexOf(fighter); Fighters.Remove(fighter); if (index > Index) { return(true); } if (index > 0) { Index--; } else { Index = Fighters.Count - 1; } return(true); }
public virtual void AddFighter(Mobile fighter) { if (!Fighters.Contains(fighter)) { Fighters.Add(fighter); } }
public bool Contains(IFighter fighter) { return(Fighters.Contains(fighter)); }