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; }
/* 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; }
public static IAllele[] getAcaciaTemplate() { IAllele[] alleles = getDefaultTemplate(); alleles[EnumTreeChromosome.SPECIES.ordinal()] = Allele.treeAcacia; alleles[EnumTreeChromosome.PLANT.ordinal()] = Allele.plantTypeDesert; return alleles; }