public interface IMutation
IAlleleRegistry manages these.
| Modifier and Type | Method and Description |
|---|---|
IAlleleSpecies |
getAllele0() |
IAlleleSpecies |
getAllele1() |
float |
getBaseChance() |
IAllele |
getPartner(IAllele allele) |
ISpeciesRoot |
getRoot() |
java.util.Collection<java.lang.String> |
getSpecialConditions() |
IAllele[] |
getTemplate() |
boolean |
isPartner(IAllele allele) |
boolean |
isSecret() |
ISpeciesRoot getRoot()
ISpeciesRoot this mutation is associated with.IAlleleSpecies getAllele0()
IAlleleSpecies getAllele1()
IAllele[] getTemplate()
IAllele representing the full default genome of the mutated side.
Make sure to return a proper array for the species class. Returning an allele of the wrong type will cause cast errors on runtime.
float getBaseChance()
java.util.Collection<java.lang.String> getSpecialConditions()
boolean isPartner(IAllele allele)
IAllele getPartner(IAllele allele)
boolean isSecret()