def __init__(self, mod, map, port, max_connections): Server.__init__(self, port, max_connections) Settings.RunAI = True self.world = World.World(Settings.DefaultMod, Settings.DefaultMap, is_server=True, graphics_enabled=False) print "Server running, listening for messages..."
def update(self, timedelta): Server.update(self) if len(self.connections): self.world.update(timedelta) self.sendMovePackets()