Example #1
0
 def getSafezoneId(self):
     if self.exteriorZoneOverride is not None:
         return self.exteriorZoneOverride
     elif hasattr(base, 'cogdoGameSafezoneId'):
         return CogdoGameConsts.getSafezoneId(base.cogdoGameSafezoneId)
     else:
         return CogdoGameConsts.getSafezoneId(self.exteriorZone)
Example #2
0
 def getSafezoneId(self):
     if self.exteriorZoneOverride is not None:
         return self.exteriorZoneOverride
     elif hasattr(base, 'cogdoGameSafezoneId'):
         return CogdoGameConsts.getSafezoneId(base.cogdoGameSafezoneId)
     else:
         return CogdoGameConsts.getSafezoneId(self.exteriorZone)
Example #3
0
    def getSafezoneId(self):
        if self.exteriorZoneOverride is not None:
            return self.exteriorZoneOverride

        if hasattr(self.air, 'cogdoGameSafezoneId'):
            return CogdoGameConsts.getSafezoneId(self.air.cogdoGameSafezoneId)

        return CogdoGameConsts.getSafezoneId(self.exteriorZone)
Example #4
0
    def setDifficultyOverrides(self, difficultyOverride, exteriorZoneOverride):
        self.difficultyOverride = difficultyOverride
        if self.difficultyOverride is not None:
            self.difficultyOverride = CogdoGameConsts.QuantizeDifficultyOverride(
                difficultyOverride)

        self.exteriorZoneOverride = exteriorZoneOverride
Example #5
0
 def getDifficulty(self):
     if self.difficultyOverride is not None:
         return self.difficultyOverride
     elif hasattr(base, 'cogdoGameDifficulty'):
         return float(base.cogdoGameDifficulty)
     else:
         return CogdoGameConsts.getDifficulty(self.getSafezoneId())
Example #6
0
 def getDifficulty(self):
     if self.difficultyOverride is not None:
         return self.difficultyOverride
     elif hasattr(base, 'cogdoGameDifficulty'):
         return float(base.cogdoGameDifficulty)
     else:
         return CogdoGameConsts.getDifficulty(self.getSafezoneId())
Example #7
0
    def getDifficulty(self):
        if self.difficultyOverride is not None:
            return self.difficultyOverride

        if hasattr(self.air, 'cogdoGameDifficulty'):
            return float(self.air.cogdoGameDifficulty)

        return CogdoGameConsts.getDifficulty(self.getSafezoneId())
 def getSafezoneId(self):            
     return CogdoGameConsts.getSafezoneId(self.exteriorZone)
 def getDifficulty(self):
     return CogdoGameConsts.getDifficulty(self.getSafezoneId())