createMutation
public ITreeMutationBuilder createMutation(IAlleleTreeSpecies parent0,
IAlleleTreeSpecies parent1,
IAllele[] result,
int chance)
Creates a new tree mutation.
Automatically registered with TreeManager.treeRoot.registerMutation()
See ITreeMutationBuilder and IMutationBuilder for adding additional properties to the returned mutation.
- Specified by:
createMutation in interface ITreeMutationFactory
- Parameters:
parent0 - A parent tree for this mutation
parent1 - A parent tree for this mutation
result - The resulting alleles for this mutation
chance - The chance that breeding the two parent trees will result in this mutation
- Returns:
- a new tree mutation.