コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }