class Gamefic::Scene::MultipleChoice
A scene that presents a list of choices and processes the player’s input. If the input is not a valid choice, the scene gets recued.
Public Instance Methods
finish(actor, props)
click to toggle source
Calls superclass method
Gamefic::Scene::Default#finish
# File lib/gamefic/scene/multiple_choice.rb, line 16 def finish actor, props super return if props.index actor.tell format(props.invalid_message, input: props.input) actor.recue end
run_finish_blocks(actor, props)
click to toggle source
Calls superclass method
Gamefic::Scene::Default#run_finish_blocks
# File lib/gamefic/scene/multiple_choice.rb, line 24 def run_finish_blocks actor, props return unless props.index super end
start(actor, props)
click to toggle source
Calls superclass method
Gamefic::Scene::Default#start
# File lib/gamefic/scene/multiple_choice.rb, line 11 def start actor, props super props.output[:options] = props.options end