Class: BCDice::GameSystem::TheOneRing2nd::OptionData
- Inherits:
-
Object
- Object
- BCDice::GameSystem::TheOneRing2nd::OptionData
- Defined in:
- lib/bcdice/game_system/TheOneRing2nd.rb
Overview
オプションデータクラス
Instance Attribute Summary collapse
-
#favoured_state ⇒ Object
readonly
Returns the value of attribute favoured_state.
-
#miserable ⇒ Object
readonly
Returns the value of attribute miserable.
-
#weary ⇒ Object
readonly
Returns the value of attribute weary.
Instance Method Summary collapse
-
#initialize(favoured_state_value: FavouredState::NORMAL, weary_condition: false, miserable_condition: false) ⇒ OptionData
constructor
A new instance of OptionData.
Constructor Details
#initialize(favoured_state_value: FavouredState::NORMAL, weary_condition: false, miserable_condition: false) ⇒ OptionData
Returns a new instance of OptionData.
87 88 89 90 91 |
# File 'lib/bcdice/game_system/TheOneRing2nd.rb', line 87 def initialize(favoured_state_value: FavouredState::NORMAL, weary_condition: false, miserable_condition: false) @favoured_state = favoured_state_value @weary = weary_condition @miserable = miserable_condition end |
Instance Attribute Details
#favoured_state ⇒ Object (readonly)
Returns the value of attribute favoured_state.
85 86 87 |
# File 'lib/bcdice/game_system/TheOneRing2nd.rb', line 85 def favoured_state @favoured_state end |
#miserable ⇒ Object (readonly)
Returns the value of attribute miserable.
85 86 87 |
# File 'lib/bcdice/game_system/TheOneRing2nd.rb', line 85 def miserable @miserable end |
#weary ⇒ Object (readonly)
Returns the value of attribute weary.
85 86 87 |
# File 'lib/bcdice/game_system/TheOneRing2nd.rb', line 85 def weary @weary end |