def shutdown(self): """ Shutdown B3. """ try: ## erase Altitude command file content so the Altitude ## server wron't try to redo those commands on restart self.output.clear() except Exception as e: self.error(e) finally: ## call original shutdown() Parser.shutdown(self)
# # #################################################################################################################### def shutdown(self): """ Shutdown B3. """ try: ## erase Altitude command file content so the Altitude ## server wron't try to redo those commands on restart self.output.clear() except Exception, e: self.error(e) finally: ## call original shutdown() Parser.shutdown(self) #################################################################################################################### # # # OTHER METHODS # # # #################################################################################################################### def getTeam(self, teamAltitudeId): """ Convert an Altitude team ID into a B3 team ID doc: http://altitudegame.com/forums/showpost.php?p=82191&postcount=30 """ if teamAltitudeId == 2: return b3.TEAM_SPEC elif teamAltitudeId == 3:
#=========================================================================== # overwriting some Parser methods #=========================================================================== def shutdown(self): """Shutdown B3""" try: ## erase Altitude command file content so the Altitude ## server wron't try to redo those commands on restart self.output.clear() except Exception, e: self.error(e) finally: ## call original shutdown() Parser.shutdown(self) #=========================================================================== # other methods #=========================================================================== def getTeam(self, teamAltitudeId): """convert an Altitude team ID into a B3 team ID doc: http://altitudegame.com/forums/showpost.php?p=82191&postcount=30 """ if teamAltitudeId == 2: return b3.TEAM_SPEC elif teamAltitudeId == 3: # red return b3.TEAM_FREE
def shutdown(self): self.game_event_queue.put( (None, None, self.game_event_queue_stop_token)) Parser.shutdown(self)