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 = {}
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
def __init__(self, engine, tribes): Task.__init__(self, engine) self.tribes = tribes self.elapsed = 0 self.countdown = [1, 2, 3, 4, 5]
def __init__(self, engine, identity): Task.__init__(self, engine) self.identity = identity
def __init__(self, engine): Task.__init__(self, engine) self.timer = Timer()
def __init__(self, engine, armies): Task.__init__(self, engine) self.armies = armies self.elapsed = 0 self.countdown = [1, 2, 3, 4, 5]