Class: Battle::Move::SecretPower::SPC

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

Overview

Secret Power Card to pick

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mock, type, *params) ⇒ SPC

Create a new Secret Power possibility

Parameters:

  • mock (Symbol, Integer) —

    ID or db_symbol of the animation move

  • type (Symbol) —

    name of the function to call

  • params (Array<Object>) —

    params to pass to the function



6063
6064
# File 'docs/5_Battle_10_Move.rb', line 6063

def initialize(mock, type, *params)
end

Instance Attribute Details

#mock (readonly)

Returns the value of attribute mock.



6058
6059
6060
# File 'docs/5_Battle_10_Move.rb', line 6058

def mock
  @mock
end

#params (readonly)

Returns the value of attribute params.



6058
6059
6060
# File 'docs/5_Battle_10_Move.rb', line 6058

def params
  @params
end

#type (readonly)

Returns the value of attribute type.



6058
6059
6060
# File 'docs/5_Battle_10_Move.rb', line 6058

def type
  @type
end

Instance Method Details

#to_s ⇒ String

Function to pretty print the SPC

Returns:



6067
6068
# File 'docs/5_Battle_10_Move.rb', line 6067

def to_s
end