#!/usr/bin/python

"""
Start up the MUD.

@author: <NAME>
@copyright: (c)2004 <NAME>, All rights reserved.
"""

import sys
import os
import logger
import time

import twisted.internet.protocol
import twisted.internet.reactor
import twisted.internet.task
import twisted.protocols.basic

import MudServer
import MudConst
import MudWorld

import profile
#import psyco
#psyco.log()
#psyco.profile()

factory = twisted.internet.protocol.Factory()
factory.protocol = MudServer.MudServer

twisted.internet.reactor.listenTCP(MudConst.port, factory)
print "Starting MUD."

MudWorld.world.loadWorld()
checkTimedActions = twisted.internet.task.LoopingCall(MudWorld.world.actionHandler.processTimedActions)
checkTimedActions.start(0.1)

logger.logging.info('MUD Started.')

#profile.Profile.bias = 4.4020750520082225e-006
#profile.run('twisted.internet.reactor.run()')
twisted.internet.reactor.run()
#!/usr/bin/python

"""
Start up the MUD.

@author: <NAME>
@copyright: (c)2004 <NAME>, All rights reserved.
"""

import sys
import os
import logger
import time

import twisted.internet.protocol
import twisted.internet.reactor
import twisted.internet.task
import twisted.protocols.basic

import MudServer
import MudConst
import MudWorld

import profile
#import psyco
#psyco.log()
#psyco.profile()

factory = twisted.internet.protocol.Factory()
factory.protocol = MudServer.MudServer

twisted.internet.reactor.listenTCP(MudConst.port, factory)
print "Starting MUD."

MudWorld.world.loadWorld()
checkTimedActions = twisted.internet.task.LoopingCall(MudWorld.world.actionHandler.processTimedActions)
checkTimedActions.start(0.1)

logger.logging.info('MUD Started.')

#profile.Profile.bias = 4.4020750520082225e-006
#profile.run('twisted.internet.reactor.run()')
twisted.internet.reactor.run()
#!/usr/bin/python Start up the MUD.  @author: <NAME> @copyright: (c)2004 <NAME>, All rights reserved. #import psyco #psyco.log() #psyco.profile() #profile.Profile.bias = 4.4020750520082225e-006 #profile.run('twisted.internet.reactor.run()')