The form being evolved into
The level at which the Pokemon is evolving
Whether the evolution can be cancelled by the player
Protected
canWhether the evolution can be cancelled by the player
Protected
evoPrivate
evolutionProtected
evolutionProtected
evolutionPrivate
evolutionProtected
evolutionProtected
evolutionContainer for all assets used by the scene. When the scene is cleared, the children within this are destroyed.
Private
evolutionProtected
evolutionPrivate
fusionProtected
lastReadonly
phaseThe string name of the phase, used to identify the phase type for is
Protected
pokemonProtected
pokemonProtected
pokemonProtected
pokemonProtected
pokemonPrivate
preProtected
configureConfigure the sprite, setting its pipeline data
The pokemon object that the sprite information is configured from
The sprite object to configure
Whether to also set the pipeline; should be false if the sprite is only being updated with new sprite assets
The sprite object that was passed in
Return a tween chain that cycles the evolution sprites
Show the evolution text and then commence the evolution animation
End the current phase and start a new one.
Private
fadeUsed exclusively by handleFailedEvolution
to fade out the evolution sprites and music
Private
fadePrivate
getPrivate
handleFade out the evolution assets, show the failed evolution UI messages, and enqueue the EndEvolutionPhase
The evolved Pokemon
Private
handleCheck if the phase is of the given type without requiring instanceof
.
The string name of the phase to check.
Whether this phase is of the provided type.
Private
onFadeout evolution music, play the cry, show the evolution completed text, and end the phase
Private
playPrivate
postPrivate
preparePrepares the evolution cycle by setting up the tint sprites and starting the cycle
Private
setupSet up the following evolution assets
Private
setupInitialize pokemonSprite
, pokemonTintSprite
, pokemonEvoSprite
, and pokemonEvoTintSprite
and add them to the evolutionContainer
Private
showUsed exclusively by handleFailedEvolution
to show the failed evolution UI messages
Private
showShow the confirmation prompt for pausing evolutions
The callback to call after either option is selected. This should end the evolution phase
Start the current phase.
Private
updateUpdate the sprites depicting the evolved Pokemon
The evolved Pokemon
The Pokemon that is evolving