예제 #1
0
 def _notifyVehicleRemoved(self, vehicleID):
     flagID = g_ctfManager.getVehicleCarriedFlagID(vehicleID)
     if flagID is not None:
         self.__setFlagVisible(flagID, True)
         self.__updateVehicleFlagState(vehicleID, False)
         if flagID in self.__flagEntries:
             flagPos = g_ctfManager.getFlagMinimapPos(flagID)
             self.__updateMarkerFlagPosition(flagID, flagPos)
     return
예제 #2
0
 def _notifyVehicleRemoved(self, vehicleID):
     flagID = g_ctfManager.getVehicleCarriedFlagID(vehicleID)
     if flagID is not None:
         self.__setFlagVisible(flagID, True)
         self.__updateVehicleFlagState(vehicleID, False)
         if flagID in self.__flagEntries:
             flagPos = g_ctfManager.getFlagMinimapPos(flagID)
             self.__updateMarkerFlagPosition(flagID, flagPos)
     return
예제 #3
0
    def __onCarriedFlagsPositionUpdated(self, flagIDs):
        for flagID in flagIDs:
            flagInfo = g_ctfManager.getFlagInfo(flagID)
            vehID = flagInfo['vehicle']
            if vehID is not None and vehID != self._getPlayerVehicleID():
                flagPos = g_ctfManager.getFlagMinimapPos(flagID)
                if flagID in self.__flagEntries:
                    self.__updateMarkerFlagPosition(flagID, flagPos)
                else:
                    state = self.__getFlagMarkerStateByVehicle(vehID)
                    self.__addOrUpdateFlag(flagID, flagPos, state)

        return
예제 #4
0
    def __onCarriedFlagsPositionUpdated(self, flagIDs):
        for flagID in flagIDs:
            flagInfo = g_ctfManager.getFlagInfo(flagID)
            vehID = flagInfo['vehicle']
            if vehID is not None and vehID != self._getPlayerVehicleID():
                flagPos = g_ctfManager.getFlagMinimapPos(flagID)
                if flagID in self.__flagEntries:
                    self.__updateMarkerFlagPosition(flagID, flagPos)
                else:
                    state = self.__getFlagMarkerStateByVehicle(vehID)
                    self.__addOrUpdateFlag(flagID, flagPos, state)

        return