Class: Gamefic::Scene::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gamefic/scene/base.rb

Overview

The Base Scene is not intended for instantiation. Other Scene classes should inherit from it.

Direct Known Subclasses

Active, Custom

Instance Method Summary collapse

Instance Method Details

#finish(actor, input) ⇒ Object



10
11
# File 'lib/gamefic/scene/base.rb', line 10

def finish actor, input
end

#prompt_for(actor) ⇒ String

Get the prompt to be displayed to the user when accepting input.

Returns:

  • (String)

    The text to be displayed.



16
17
18
# File 'lib/gamefic/scene/base.rb', line 16

def prompt_for actor
  '>'
end

#start(actor) ⇒ Object



7
8
# File 'lib/gamefic/scene/base.rb', line 7

def start actor
end

#typeObject



20
21
22
# File 'lib/gamefic/scene/base.rb', line 20

def type
  self.class.to_s.split('::').last
end