Example #1
0
 public void Update()
 {
     LandformsManager.Update();
     foreach (List <Creature> space in Space)
     {
         space.Clear();
     }
 }
Example #2
0
        public void Initialize(Drawer drawer)
        {
            Drawer = drawer;

            nessuihunsyutukouGraphicHandle = DX.LoadGraph("Data/nessuihunsyutukou.png");

            //Spaceを初期化
            Space            = new List <Creature> [Program.Space_X, Program.Space_Y];
            LandNutrition    = new Nutrition[Program.Space_X, Program.Space_Y];
            LandformsManager = new LandformsManager();

            LandformsManager.Initialize(this);

            for (int i = 0; i < Program.Space_X; i++)
            {
                for (int j = 0; j < Program.Space_Y; j++)
                {
                    Space[i, j]         = new List <Creature>();
                    LandNutrition[i, j] = new Nutrition();
                    LandNutrition[i, j].Rand(Nutrition.MaxValue / 4, Nutrition.MaxValue / 2);
                }
            }
        }
Example #3
0
 public static void Register()
 {
     LandformsManager.RegisterAct(0, typeof(LandformEmpty));
     LandformsManager.RegisterAct(1, typeof(HydrothermalVent));
 }