Ejemplo n.º 1
0
 public static IAllele[] getJungleTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeJungle;
   alleles[EnumTreeChromosome.FRUITS.ordinal()] = Allele.fruitCocoa;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightLarger;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationFast;
   return alleles;
 }
Ejemplo n.º 2
0
 public static IAllele[] getWalnutTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeWalnut;
   alleles[EnumTreeChromosome.FRUITS.ordinal()] = Allele.fruitWalnut;
   alleles[EnumTreeChromosome.YIELD.ordinal()] = Allele.yieldAverage;
   alleles[EnumTreeChromosome.SAPPINESS.ordinal()] = Allele.sappinessAverage;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightAverage;
   return alleles;
 }
Ejemplo n.º 3
0
  /* TEMPLATES */
  public static IAllele[] getDefaultTemplate() {
    IAllele[] alleles = new IAllele[EnumTreeChromosome.values().length];

    alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeOak;
    alleles[EnumTreeChromosome.FRUITS.ordinal()] = Allele.fruitNone;
    alleles[EnumTreeChromosome.GROWTH.ordinal()] = Allele.growthLightlevel;
    alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightSmall;
    alleles[EnumTreeChromosome.FERTILITY.ordinal()] = Allele.saplingsDefault;
    alleles[EnumTreeChromosome.YIELD.ordinal()] = Allele.yieldLowest;
    alleles[EnumTreeChromosome.PLANT.ordinal()] = Allele.plantTypeNone;
    alleles[EnumTreeChromosome.SAPPINESS.ordinal()] = Allele.sappinessLowest;
    alleles[EnumTreeChromosome.TERRITORY.ordinal()] = Allele.territoryDefault;
    alleles[EnumTreeChromosome.EFFECT.ordinal()] = Allele.leavesNone;
    alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationAverage;

    return alleles;
  }
Ejemplo n.º 4
0
 public static IAllele[] getOakTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.FRUITS.ordinal()] = Allele.fruitApple;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationFaster;
   return alleles;
 }