Class Engine
In: lib/engine/engine.rb
Parent: Object
Engine
Singleton
TopLevel

The Engine class sets up the server, polls it regularly and observes acceptor for incoming connections.

Methods

Included Modules

Singleton

Attributes

db  [R] 
eventmgr  [R] 
shutdown  [RW] 
world  [R] 

Public Class methods

Create the an engine.

return
A handle to the engine.

Public Instance methods

Setup traps - invoke one of these signals to shut down the mud

main loop to run engine.

note:@shutdown never set by anyone yet

Update is called by an acceptor passing us a new session. We create an incoming object and set it and the connection to watch each other.

[Validate]