gamefic 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,21 +0,0 @@
1
- module Gamefic
2
-
3
- # Question Scenes handle a string of arbitrary input. Examples include
4
- # asking for a password, a destination, or a topic of conversation. The
5
- # finish block is solely responsible for processing the answer.
6
- # After the scene is finished, the :active scene will automatically be cued
7
- # if no other scene has been cued or prepared.
8
- #
9
- class Scene::Question < Scene::Custom
10
- def initialize prompt, &block
11
- @prompt = prompt
12
- @finish = block
13
- end
14
- def finish actor, input
15
- this_scene = actor.scene
16
- super
17
- actor.cue :active if (actor.scene == this_scene and actor.next_scene.nil?)
18
- end
19
- end
20
-
21
- end