Class: Battle::Actions::Mega

Inherits:
Base show all
Defined in:
docs/5_Battle_05_Actions.rb

Overview

Class describing the Mega Evolution action

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#valid?

Constructor Details

#initialize(scene, user) ⇒ Mega

Create a new mega evolution action

Parameters:



99
100
# File 'docs/5_Battle_05_Actions.rb', line 99

def initialize(scene, user)
end

Instance Attribute Details

#userPFM::PokemonBattler (readonly)

Get the user of this action

Returns:



95
96
97
# File 'docs/5_Battle_05_Actions.rb', line 95

def user
  @user
end

Instance Method Details

#<=>(other) ⇒ Integer

Compare this action with another

Parameters:

  • other (Base)

    other action

Returns:

  • (Integer)


104
105
# File 'docs/5_Battle_05_Actions.rb', line 104

def <=>(other)
end

#execute

Execute the action



107
108
# File 'docs/5_Battle_05_Actions.rb', line 107

def execute
end