コード例 #1
0
 public static IAllele[] getSpruceTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeSpruce;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightAverage;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationFaster;
   return alleles;
 }
コード例 #2
0
 public static IAllele[] getMahoganyTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeMahogany;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightLarge;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationSlow;
   return alleles;
 }
コード例 #3
0
 public static IAllele[] getSequoiaTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeSequioa;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightLargest;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationSlower;
   return alleles;
 }
コード例 #4
0
 public static IAllele[] getBalsaTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeBalsa;
   alleles[EnumTreeChromosome.FERTILITY.ordinal()] = Allele.saplingsTriple;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightLarge;
   return alleles;
 }
コード例 #5
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;
 }
コード例 #6
0
 public static IAllele[] getSipiriTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeSipiri;
   alleles[EnumTreeChromosome.GROWTH.ordinal()] = Allele.growthTropical;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightLarge;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationSlow;
   return alleles;
 }
コード例 #7
0
 public static IAllele[] getWillowTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeWillow;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightAverage;
   alleles[EnumTreeChromosome.FERTILITY.ordinal()] = Allele.saplingsLow;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationFaster;
   return alleles;
 }
コード例 #8
0
 public static IAllele[] getBaobabTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeBaobab;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightLarge;
   alleles[EnumTreeChromosome.PLANT.ordinal()] = Allele.plantTypeDesert;
   alleles[EnumTreeChromosome.MATURATION.ordinal()] = Allele.maturationSlow;
   return alleles;
 }
コード例 #9
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;
 }
コード例 #10
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;
  }
コード例 #11
0
 public static IAllele[] getPineTemplate() {
   IAllele[] alleles = getDefaultTemplate();
   alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treePine;
   alleles[EnumTreeChromosome.HEIGHT.ordinal()] = Allele.heightAverage;
   return alleles;
 }