Exemplo n.º 1
0
 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..."
Exemplo n.º 2
0
 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..."
Exemplo n.º 3
0
 def update(self, timedelta):
     Server.update(self)
     if len(self.connections):
         self.world.update(timedelta)
         self.sendMovePackets()
Exemplo n.º 4
0
 def update(self, timedelta):
     Server.update(self)
     if len(self.connections):
         self.world.update(timedelta)
         self.sendMovePackets()