class Gamefic::Scene::MultipleScene
Public Instance Methods
finish()
click to toggle source
# File lib/gamefic/scene/multiple_scene.rb, line 14 def finish get_choice unless selection.nil? actor.prepare option_map[selection] end end
map(option, scene)
click to toggle source
@param option [String] @param scene [Class<Gamefic::Scene::Base>]
# File lib/gamefic/scene/multiple_scene.rb, line 9 def map option, scene options.push option option_map[option] = scene end
option_map()
click to toggle source
# File lib/gamefic/scene/multiple_scene.rb, line 3 def option_map @option_map ||= {} end
state()
click to toggle source
Calls superclass method
Gamefic::Scene::MultipleChoice#state
# File lib/gamefic/scene/multiple_scene.rb, line 21 def state entered = {} option_map.each_pair do |k, v| entered[k] = actor.entered?(v) end super.merge entered: entered end