createMutation
public IBeeMutationBuilder createMutation(IAlleleBeeSpecies parentBee0,
IAlleleBeeSpecies parentBee1,
IAllele[] result,
int chance)
Creates a new bee mutation.
Automatically registered with BeeManager.beeRoot.registerMutation()
See IBeeMutationBuilder and IMutationBuilder for adding additional properties to the returned mutation.
- Specified by:
createMutation in interface IBeeMutationFactory
- Parameters:
parentBee0 - A parent bee for this mutation
parentBee1 - A parent bee for this mutation
result - The resulting alleles for this mutation
chance - The chance that breeding the two parent bees will result in this mutation
- Returns:
- a new bee mutation.