Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="newcount"></param>
        public void AddSomePesticideObjects(int newcount)
        {
            int startcount = ChildControllers.Count;

            for (int i = startcount; i < newcount; ++i)
            {
                PesticideObjectController pest = new PesticideObjectController(Sim, null);
                ChildControllers.Add(pest);
            }
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="newcount"></param>
        public void AddSomePesticideObjects(int newcount)
        {
            int startcount = Pesticides.Count;

            for (int i = startcount; i < newcount; ++i)
            {
                PesticideObjectController pest = new PesticideObjectController(sim);
                Pesticides.Add(pest);
            }
        }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="pest"></param>
 /// <returns></returns>
 public int GetPesticideIndex(PesticideObjectController pest)
 {
     return(ChildControllers.IndexOf(pest));
 }