Example #1
0
 // HABITAT INITIALIZATION COUNTERS
 private void HabitatInitialization()
 {
     // Create the habitat type counters by running twenty years of habitats and seeing the results
     int[, ][] habitatTypeCounters = CreateInitHabCounters();
     // Initialize the HabitatLayer
     habitats = new HabitatLayer(habitatTypeCounters, oceanPer.worldArray);
 }
Example #2
0
    public void HabitatLayerTest()
    {
        // Test all the SingleLayer Values can be initialized
        World        testWorld = new World(50, 50, false);
        HabitatLayer tester    = testWorld.habitats;

        Assert.AreEqual("Habitat", tester.layerName);
        Assert.AreEqual("Yearly", tester.getType());
        // Assert.AreEqual(50 * 50, tester.worldArray.Length);
        Assert.AreEqual(50, HabitatLayer.WORLDX);
        Assert.AreEqual(50, HabitatLayer.WORLDZ);
    }