Exemplo n.º 1
0
	def startgame(self, game: Game):
		"""
		Instruct all players to start the game.
		"""
		logging.debug("[START] [{}] Players: {}".
			format(game.uuid, [str(i) for i in game.players]))
		game.state = Game.State.Running
		self.send_to_game(game, packets.server.cmd_startgame())
Exemplo n.º 2
0
	def startgame(self, game: Game):
		"""
		Instruct all players to start the game.
		"""
		logging.debug("[START] [{}] Players: {}".
			format(game.uuid, [str(i) for i in game.players]))
		game.state = Game.State.Running
		self.send_to_game(game, packets.server.cmd_startgame())
Exemplo n.º 3
0
	def preparegame(self, game: Game):
		"""
		Instruct all players to start loading the game.
		"""
		logging.debug("[PREPARE] [{}] Players: {}".
			format(game.uuid, [str(i) for i in game.players]))
		game.state = Game.State.Prepare
		self.send_to_game(game, packets.server.cmd_preparegame())
Exemplo n.º 4
0
	def preparegame(self, game: Game):
		"""
		Instruct all players to start loading the game.
		"""
		logging.debug("[PREPARE] [{}] Players: {}".
			format(game.uuid, [str(i) for i in game.players]))
		game.state = Game.State.Prepare
		self.send_to_game(game, packets.server.cmd_preparegame())