The form being evolved into
The level at which the Pokemon is evolving
Whether the evolution can be cancelled by the player
ProtectedcanWhether the evolution can be cancelled by the player
ProtectedevoPrivateevolutionProtectedevolutionProtectedevolutionPrivateevolutionProtectedevolutionProtectedevolutionContainer for all assets used by the scene. When the scene is cleared, the children within this are destroyed.
PrivateevolutionProtectedevolutionPrivatefusionProtectedlastReadonlyphaseThe string name of the phase, used to identify the phase type for is
ProtectedpokemonProtectedpokemonProtectedpokemonProtectedpokemonProtectedpokemonPrivatepreProtectedconfigureConfigure 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.
PrivatefadeUsed exclusively by handleFailedEvolution to fade out the evolution sprites and music
PrivatefadePrivategetPrivatehandleFade out the evolution assets, show the failed evolution UI messages, and enqueue the EndEvolutionPhase
The evolved Pokemon
PrivatehandleCheck 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.
PrivateonFadeout evolution music, play the cry, show the evolution completed text, and end the phase
PrivateplayPrivatepostPrivatepreparePrepares the evolution cycle by setting up the tint sprites and starting the cycle
PrivatesetupSet up the following evolution assets
PrivatesetupInitialize pokemonSprite, pokemonTintSprite, pokemonEvoSprite, and pokemonEvoTintSprite
and add them to the evolutionContainer
PrivateshowUsed exclusively by handleFailedEvolution to show the failed evolution UI messages
PrivateshowShow 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.
PrivateupdateUpdate the sprites depicting the evolved Pokemon
The evolved Pokemon
The Pokemon that is evolving