Class: Gamefic::Scene::Pause
- Defined in:
- lib/gamefic/scene/pause.rb
Overview
Pause for user input.
Instance Attribute Summary
Attributes inherited from Base
#actor, #data, #input, #prompt, #type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#[], #finish, #finished?, #initialize, #on_finish, on_start, #start, start_block, #state, subclass, #tracked=, #tracked?, #update
Methods included from Gamefic::Serialize
instances, #serialized_class, string_to_constant, #to_serial
Constructor Details
This class inherits a constructor from Gamefic::Scene::Base
Class Method Details
.tracked? ⇒ Boolean
11 12 13 14 |
# File 'lib/gamefic/scene/pause.rb', line 11 def tracked? @tracked = true if @tracked.nil? @tracked end |
Instance Method Details
#post_initialize ⇒ Object
5 6 7 8 |
# File 'lib/gamefic/scene/pause.rb', line 5 def post_initialize self.type = 'Pause' self.prompt = 'Press enter to continue...' end |