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