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