Class: Gamefic::Scene::MultipleScene

Inherits:
MultipleChoice show all
Defined in:
lib/gamefic/scene/multiple_scene.rb

Instance Method Summary collapse

Methods inherited from MultipleChoice

#start

Methods inherited from Custom

#initialize, #on_finish, #on_start, #prompt_for, #start

Methods inherited from Base

#prompt_for, #start, #type

Constructor Details

This class inherits a constructor from Gamefic::Scene::Custom

Instance Method Details

#data_classObject



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