createMutation
public IButterflyMutationBuilder createMutation(IAlleleButterflySpecies parentButterfly0,
IAlleleButterflySpecies parentButterfly1,
IAllele[] result,
int chance)
Creates a new butterfly mutation.
Automatically registered with ButterflyManager.butterflyRoot.registerMutation()
See IButterflyMutationBuilder and IMutationBuilder for adding additional properties to the returned mutation.
- Specified by:
createMutation in interface IButterflyMutationFactory
- Parameters:
parentButterfly0 - A parent butterfly for this mutation
parentButterfly1 - A parent butterfly for this mutation
result - The resulting alleles for this mutation
chance - The chance that breeding the two parent butterfly's will result in this mutation
- Returns:
- a new butterfly mutation.