internal void AssignUnit(IFlocking unit) { mUnits.Add(unit); unit.AddGroup(this); if (Speed == 0) { Speed = unit.Speed; } else { if (unit.Speed >= Speed) { return; } Speed = unit.Speed; } }
public bool Kill(IFlocking unit) { return(mUnits.Remove(unit)); }
public bool RemoveUnit(IFlocking unit) { return(mUnits.Remove(unit)); }
public void AddSelected(IFlocking unit) { mSelected.Add(unit); }