Class: Gamefic::Scene::MultipleScene
- Inherits:
-
MultipleChoice
- Object
- Base
- Custom
- MultipleChoice
- Gamefic::Scene::MultipleScene
- Defined in:
- lib/gamefic/scene/multiple_scene.rb
Instance Method Summary collapse
Methods inherited from MultipleChoice
Methods inherited from Custom
#initialize, #on_finish, #on_start, #prompt_for, #start
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gamefic::Scene::Custom
Instance Method Details
#data_class ⇒ Object
4 5 6 |
# File 'lib/gamefic/scene/multiple_scene.rb', line 4 def data_class SceneData::MultipleScene end |
#finish(actor, input) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/gamefic/scene/multiple_scene.rb', line 8 def finish actor, input data = super unless data.selection.nil? actor.cue data.scene_for(data.selection) end end |