Class: BCDice::GameSystem::TheOneRing2nd::OptionData

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdice/game_system/TheOneRing2nd.rb

Overview

オプションデータクラス

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stateObject (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

#miserableObject (readonly)

Returns the value of attribute miserable.



85
86
87
# File 'lib/bcdice/game_system/TheOneRing2nd.rb', line 85

def miserable
  @miserable
end

#wearyObject (readonly)

Returns the value of attribute weary.



85
86
87
# File 'lib/bcdice/game_system/TheOneRing2nd.rb', line 85

def weary
  @weary
end