Beispiel #1
0
 public Planet(int pop, biome land, technologyLevel developement, string name, string desc, string hist, string imageFile, string other = "") : base(name, desc, hist, imageFile)
 {
     population = pop;
     myLevel    = developement;
     myLand     = land;
     if (myLevel == technologyLevel.Other)
     {
         otherLevel = other;
     }
 }
Beispiel #2
0
 public static product[] retBiomeResources(biome biome, int startPosition)
 {
     product[] toRet = new product[3];
     //Debug.Log ("Biome being initialized: " + biome);
     //Debug.Log ("start position: " + startPosition);
     for (int counter = startPosition; counter < startPosition + 3; counter++)
     {
         //Debug.Log("counter = " + counter + "|||||| startPosition " + startPosition);
         toRet [counter - startPosition] = (product)counter;
     }
     return(toRet);
 }