Class: Battle::Move::SecretPower::SPC
- 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
-
#mock
readonly
Returns the value of attribute mock.
-
#params
readonly
Returns the value of attribute params.
-
#type
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(mock, type, *params) ⇒ SPC
constructor
Create a new Secret Power possibility.
- #to_s
Constructor Details
#initialize(mock, type, *params) ⇒ SPC
Create a new Secret Power possibility
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 |