Class: Battle::Logic::MegaEvolve

Inherits:
Object
  • Object
show all
Defined in:
docs/5_Battle_04_Logic.rb

Overview

Logic for mega evolution

Instance Method Summary collapse

Constructor Details

#initialize(scene) ⇒ MegaEvolve

Create the MegaEvolve checker

Parameters:



467
468
# File 'docs/5_Battle_04_Logic.rb', line 467

def initialize(scene)
end

Instance Method Details

#can_pokemon_mega_evolve?(pokemon) ⇒ Boolean

Test if a Pokemon can Mega Evolve

Parameters:

Returns:

  • (Boolean)


472
473
# File 'docs/5_Battle_04_Logic.rb', line 472

def can_pokemon_mega_evolve?(pokemon)
end

#mark_as_mega_evolved(pokemon)

Mark a Pokemon as mega evolved

Parameters:



476
477
# File 'docs/5_Battle_04_Logic.rb', line 476

def mark_as_mega_evolved(pokemon)
end

#mega_tool_name(pokemon) ⇒ String

Give the name of the mega tool used by the trainer

Parameters:

Returns:



481
482
# File 'docs/5_Battle_04_Logic.rb', line 481

def mega_tool_name(pokemon)
end