Пример #1
0
        public void LifeTime_Tick(Object sender, EventArgs e)
        {
            LifeForm lf = new LifeForm(Coloni, Par);

            this.NewColoni(Coloni, CurrentOrder, Par, Stat); //create start coloni if coloni.count == 0
            CurrentOrder.UpdateOrder(Coloni);                //<<

            lf.Growing(Coloni);                              //growing for everybody
            lf.Search(Coloni, CurrentOrder);                 //search target to move
            lf.Move(Coloni);
            CurrentOrder.UpdateOrder(Coloni);                //<<

            lf.Sex(Coloni);
            lf.Death(Coloni, Stat);
            DrawObject.DrawLf(Coloni, Par);
            lf.RemoveBody(Coloni);
            CurrentOrder.UpdateOrder(Coloni); //<<
            lf.Born(Coloni, Stat);
        }