예제 #1
0
        private void MoveFood_Tick(object sender, EventArgs e)
        {
            world.FoodExist();
            if (world.something.Korm.Count() != 0)
            {
                world.FallFood();
                world.RemoveFood();
            }
            if (world.Temperature == 23 && world.sexflag)
            {
                world.NormConditions(g);
            }
            if (world.Temperature == 23 && !world.sexflag)
            {
                SexTime.Enabled  = true;
                GrowTime.Enabled = true;
            }
            world.AllFish.Move();

            Temp();
            BackgroundImage = draw.DrawAll(world);
        }