Exemple #1
0
	def start(self, options):
		if os.environ.get('DEBUG', 0):
			self.start_debug(options)
		lib.start_duel(self.duel, options)
		self.started = True
		for i, pl in enumerate(self.players):
			pl.notify(pl._("Duel created. You are player %d.") % i)
			pl.notify(pl._("Type help dueling for a list of usable commands."))
			if len(self.tag_players) > i:
				pl = self.tag_players[i]
				pl.notify(pl._("Duel created. You are player %d.") % i)
				pl.notify(pl._("Type help dueling for a list of usable commands."))
				pl.notify(pl._("%s will go first.")%(self.players[i].nickname))
		reactor.callLater(0, process_duel, self)
Exemple #2
0
 def start(self):
     lib.start_duel(self.duel, 0)
     self.started = True
Exemple #3
0
 def start(self, options):
     if os.environ.get('DEBUG', 0):
         self.start_debug(options)
     lib.start_duel(self.duel, options)
     self.started = True