public bool IsHaveBabyFellow() { for (int i = 0; i < m_Fellows.Count; ++i) { Fellow fellow = m_Fellows[i]; if (fellow.IsValid() && fellow.IsBabyFellow()) { return(true); } } return(false); }
public static List <Fellow> FellowBabyFilter(FellowContainer container) { List <Fellow> resultList = new List <Fellow>(); for (int i = 0; i < container.ContainerSize; i++) { Fellow fellow = container.GetFellowByIndex(i); if (fellow != null && fellow.IsValid() && fellow.IsBabyFellow()) { resultList.Add(container.GetFellowByIndex(i)); } } return(resultList); }
public static List <Fellow> FellowCanBreedingFilter(FellowContainer container) { List <Fellow> resultList = new List <Fellow>(); for (int i = 0; i < container.ContainerSize; i++) { Fellow fellow = container.GetFellowByIndex(i); if (fellow != null && fellow.IsValid() && false == fellow.Called && fellow.IsBabyFellow() && fellow.ProcreateCount >= 1) { resultList.Add(container.GetFellowByIndex(i)); } } return(resultList); }