Class: Gamefic::Scene::Pause

Inherits:
Custom show all
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

Constructor Details

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

Class Method Details

.tracked?Boolean

Returns:

  • (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_initializeObject



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