Class: Battle::Logic::TransformHandler

Inherits:
ChangeHandlerBase show all
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

Instance Method Summary collapse

Methods inherited from ChangeHandlerBase

#initialize, #pass_change, #prevent_change, #process_reason, #reset_reason

Constructor Details

This class inherits a constructor from Battle::Logic::ChangeHandlerBase

Instance Method Details

#can_copy?(copied) ⇒ Boolean

Function that tells if the pokemon can copy another pokemon

Parameters:

Returns:

  • (Boolean)


1806
1807
# File 'docs/5_Battle_04_Logic.rb', line 1806

def can_copy?(copied)
end

#can_transform?(target) ⇒ Boolean

Function that tells if the Pokemon can transform or not

Parameters:

Returns:

  • (Boolean)


1801
1802
# File 'docs/5_Battle_04_Logic.rb', line 1801

def can_transform?(target)
end

#initialize_transform_attempt(target)

Function responsive of transforming a Pokemon when initialized

Parameters:



1796
1797
# File 'docs/5_Battle_04_Logic.rb', line 1796

def initialize_transform_attempt(target)
end