Exemplo n.º 1
0
def makeTeamCtx(team,
                isEnemy,
                arenaDP,
                playerLabelMaxLength,
                vehicleLabelMaxLength,
                cameraVehicleID=-1):
    if isEnemy:
        ctx = EnemyTeamCtx(team,
                           playerLabelMaxLength,
                           vehicleLabelMaxLength,
                           cameraVehicleID=cameraVehicleID)
    elif cameraVehicleID > 0:
        ctx = PostmortemTeamCtx(team, playerLabelMaxLength,
                                vehicleLabelMaxLength,
                                avatar_getter.getPlayerVehicleID(),
                                avatar_getter.isPlayerTeamKillSuspected(),
                                cameraVehicleID,
                                arenaDP.getVehicleInfo().prebattleID)
    else:
        ctx = PlayerTeamCtx(team, playerLabelMaxLength, vehicleLabelMaxLength,
                            avatar_getter.getPlayerVehicleID(),
                            avatar_getter.isPlayerTeamKillSuspected(),
                            cameraVehicleID,
                            arenaDP.getVehicleInfo().prebattleID)
    return ctx
Exemplo n.º 2
0
 def isTeamKiller(self, playerTeam = None):
     if playerTeam is not None and self.team != playerTeam:
         return False
     elif self.vehicleID == avatar_getter.getPlayerVehicleID() and avatar_getter.isPlayerTeamKillSuspected():
         return True
     else:
         return self.playerStatus & _PLAYER_STATUS.IS_TEAM_KILLER > 0
         return
 def isTeamKiller(self, playerTeam=None):
     if playerTeam is not None and self.team != playerTeam:
         return False
     elif self.vehicleID == avatar_getter.getPlayerVehicleID() and avatar_getter.isPlayerTeamKillSuspected():
         return True
     else:
         return self.playerStatus & _PLAYER_STATUS.IS_TEAM_KILLER > 0
         return
Exemplo n.º 4
0
 def __init__(self):
     super(PersonalInfo, self).__init__()
     self.vehicleID = avatar_getter.getPlayerVehicleID()
     self.selectedID = self.vehicleID
     self.prebattleID = 0
     self.teamKillSuspected = avatar_getter.isPlayerTeamKillSuspected()
Exemplo n.º 5
0
def makeTeamCtx(team, isEnemy, arenaDP, playerLabelMaxLength, vehicleLabelMaxLength, cameraVehicleID = -1):
    if isEnemy:
        ctx = EnemyTeamCtx(team, playerLabelMaxLength, vehicleLabelMaxLength, cameraVehicleID=cameraVehicleID)
    elif cameraVehicleID > 0:
        ctx = PostmortemTeamCtx(team, playerLabelMaxLength, vehicleLabelMaxLength, avatar_getter.getPlayerVehicleID(), avatar_getter.isPlayerTeamKillSuspected(), cameraVehicleID, arenaDP.getVehicleInfo().prebattleID)
    else:
        ctx = PlayerTeamCtx(team, playerLabelMaxLength, vehicleLabelMaxLength, avatar_getter.getPlayerVehicleID(), avatar_getter.isPlayerTeamKillSuspected(), cameraVehicleID, arenaDP.getVehicleInfo().prebattleID)
    return ctx
Exemplo n.º 6
0
 def __init__(self):
     super(PersonalInfo, self).__init__()
     self.vehicleID = avatar_getter.getPlayerVehicleID()
     self.selectedID = self.vehicleID
     self.prebattleID = 0
     self.teamKillSuspected = avatar_getter.isPlayerTeamKillSuspected()
Exemplo n.º 7
0
 def isTeamKiller(self, playerTeam=None):
     return True if self.vehicleID == avatar_getter.getPlayerVehicleID(
     ) and avatar_getter.isPlayerTeamKillSuspected(
     ) else self.playerStatus & _PLAYER_STATUS.IS_TEAM_KILLER > 0