コード例 #1
0
 def getExitResult(self):
     if not self.__isReplayPlaying and not self.__arenaVisitor.gui.isTrainingBattle() and not self.__arenaVisitor.gui.isBattleRoyale() and not self.__arenaVisitor.gui.isMapsTraining():
         vInfo = self.__arenaDP.getVehicleInfo()
         vStats = self.__arenaDP.getVehicleStats()
         if self.__arenaVisitor.hasRespawns():
             isDeserter = not vStats.stopRespawn
         else:
             isDeserter = avatar_getter.isVehicleAlive() and not avatar_getter.isVehicleOverturned()
         return BattleExitResult(isDeserter, vInfo.player)
     else:
         return BattleExitResult(False, None)
         return None
コード例 #2
0
 def getExitResult(self):
     """ Gets result if player exits battle that are helped to notify player about penalty (if they have).
     :return: instance of BattleExitResult(isDeserter, player).
     """
     if not self.__isReplayPlaying and not self.__arenaVisitor.gui.isTrainingBattle() and not self.__arenaVisitor.gui.isEventBattle():
         vInfo = self.__arenaDP.getVehicleInfo()
         vStats = self.__arenaDP.getVehicleStats()
         if self.__arenaVisitor.hasRespawns():
             isDeserter = not vStats.stopRespawn
         else:
             isDeserter = avatar_getter.isVehicleAlive() and not avatar_getter.isVehicleOverturned()
         return BattleExitResult(isDeserter, vInfo.player)
     else:
         return BattleExitResult(False, None)
         return None
コード例 #3
0
 def getExitResult(self):
     """ Gets result if player exits battle that are helped to notify player about penalty (if they have).
     :return: instance of BattleExitResult(isDeserter, player).
     """
     if not self.__isReplayPlaying and not self.__arenaVisitor.gui.isTrainingBattle():
         vInfo = self.__arenaDP.getVehicleInfo()
         vStats = self.__arenaDP.getVehicleStats()
         if self.__arenaVisitor.gui.isEventBattle():
             isDeserter = False
         elif self.__arenaVisitor.hasRespawns():
             isDeserter = not vStats.stopRespawn
         else:
             isDeserter = avatar_getter.isVehicleAlive() and not avatar_getter.isVehicleOverturned()
         return BattleExitResult(isDeserter, vInfo.player)
     else:
         return BattleExitResult(False, None)
         return None