Exemplo n.º 1
0
    def __init__(self, engine):
        Task.__init__(self, engine)

        self.seats = 1
        self.playing = 0

        host = settings.server.host
        port = settings.server.port

        self.server = EasyServer(host, port, self.seats, self.greet)

        self.next_id = 1
        self.players = {}
Exemplo n.º 2
0
    def __init__(self, engine):
        Task.__init__(self, engine)

        host = settings.client.host
        port = settings.client.port

        self.client = EasyClient(host, port)

        self.name = settings.client.name
        self.identity = 0

        # Keep track of how much the conversation has progressed, to make sure
        # that it goes in order.
        self.state = 0
Exemplo n.º 3
0
    def __init__(self, engine, tribes):
        Task.__init__(self, engine)
        self.tribes = tribes

        self.elapsed = 0
        self.countdown = [1, 2, 3, 4, 5]
Exemplo n.º 4
0
 def __init__(self, engine, identity):
     Task.__init__(self, engine)
     self.identity = identity
Exemplo n.º 5
0
Arquivo: game.py Projeto: kxgames/Pong
 def __init__(self, engine):
     Task.__init__(self, engine)
     self.timer = Timer()
Exemplo n.º 6
0
    def __init__(self, engine, armies):
        Task.__init__(self, engine)
        self.armies = armies

        self.elapsed = 0
        self.countdown = [1, 2, 3, 4, 5]