Class: Battle::Logic::TransformHandler
- Inherits:
-
ChangeHandlerBase
- Object
- ChangeHandlerBase
- Battle::Logic::TransformHandler
- Includes:
- Hooks
- Defined in:
- docs/5_Battle_04_Logic.rb
Overview
Handler responsive of answering properly transform requests
Instance Attribute Summary
Attributes inherited from ChangeHandlerBase
#logic, #pre_checked_effects, #scene
Class Method Summary collapse
-
.register_on_initialize_transform(reason) {|handler, target| ... }
Function that registers a on_initialize_transform hook.
Instance Method Summary collapse
-
#can_copy?(copied) ⇒ Boolean
Function that tells if the pokemon can copy another pokemon.
-
#can_transform?(target) ⇒ Boolean
Function that tells if the Pokemon can transform or not.
-
#initialize_transform_attempt(target)
Function responsive of transforming a Pokemon when initialized.
Methods included from Hooks
#exec_hooks, #force_return, included, register, remove, remove_without_name
Methods inherited from ChangeHandlerBase
#initialize, #prevent_change, #process_prevention_reason, #reset_prevention_reason
Constructor Details
This class inherits a constructor from Battle::Logic::ChangeHandlerBase
Class Method Details
.register_on_initialize_transform(reason) {|handler, target| ... }
Function that registers a on_initialize_transform hook
2095 2096 |
# File 'docs/5_Battle_04_Logic.rb', line 2095 def register_on_initialize_transform(reason) end |
Instance Method Details
#can_copy?(copied) ⇒ Boolean
Function that tells if the pokemon can copy another pokemon
2087 2088 |
# File 'docs/5_Battle_04_Logic.rb', line 2087 def can_copy?(copied) end |
#can_transform?(target) ⇒ Boolean
Function that tells if the Pokemon can transform or not
2082 2083 |
# File 'docs/5_Battle_04_Logic.rb', line 2082 def can_transform?(target) end |
#initialize_transform_attempt(target)
Function responsive of transforming a Pokemon when initialized
2077 2078 |
# File 'docs/5_Battle_04_Logic.rb', line 2077 def initialize_transform_attempt(target) end |