Class: Gamefic::Engine::Tty
Overview
Extend Engine::Base to connect with User::Tty, which provides ANSI formatting for HTML.
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#connect, #initialize, #receive, #run, #turn
Constructor Details
This class inherits a constructor from Gamefic::Engine::Base
Class Method Details
.start(plot) ⇒ Object
13 14 15 16 17 |
# File 'lib/gamefic/engine/tty.rb', line 13 def self.start plot engine = self.new(plot) engine.connect engine.run end |
Instance Method Details
#post_initialize ⇒ Object
9 10 11 |
# File 'lib/gamefic/engine/tty.rb', line 9 def post_initialize self.user_class = Gamefic::User::Tty end |