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

Inherits:
Object
  • Object
show all
Defined in:
scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 SecretPower.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



57
58
59
60
61
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 SecretPower.rb', line 57

def initialize(mock, type, *params)
  @mock = mock
  @type = type
  @params = params
end

Instance Attribute Details

#mock (readonly)

Returns the value of attribute mock.



51
52
53
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 SecretPower.rb', line 51

def mock
  @mock
end

#params (readonly)

Returns the value of attribute params.



51
52
53
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 SecretPower.rb', line 51

def params
  @params
end

#type (readonly)

Returns the value of attribute type.



51
52
53
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 SecretPower.rb', line 51

def type
  @type
end

Instance Method Details

#to_s



63
64
65
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 SecretPower.rb', line 63

def to_s
  "<SPC @mock=:#{@mock} @type=:#{@type} @params=#{@params}>"
end