protected virtual void RemoveConflicts(StatusEffectType type) { for (int i = List.Count - 1; i >= 0; i--) { if (type.ConflictsWith(List[i].Type)) { Remove(i); } } }
public virtual void Remove(StatusEffectType type) { for (int i = List.Count - 1; i >= 0; i--) { if (List[i].Type == type) { Remove(i); } } }
public virtual StatusEffectInstance Find(StatusEffectType type) { for (int i = 0; i < List.Count; i++) { if (List[i].Type == type) { return(List[i]); } } return(null); }
public virtual bool Contains(StatusEffectType type) { for (int i = 0; i < List.Count; i++) { if (List[i].Type == type) { return(true); } } return(false); }
public virtual bool ConflictsWith(StatusEffectType type) { return(conflicts.Contains(type)); }