def _createSlotsValidator(self, entity):
     baseValidator = super(FunRandomActionsValidator,
                           self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[baseValidator,
                     BalancedSquadSlotsValidator(entity)])
Ejemplo n.º 2
0
 def _createSlotsValidator(self, entity):
     baseValidator = super(BattleRoyaleSquadActionsValidator,
                           self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[baseValidator,
                     BattleRoyalSquadSlotsValidator(entity)])
Ejemplo n.º 3
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(SPGForbiddenSquadActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[
             SPGForbiddenSquadVehiclesValidator(entity), baseValidator
         ])
Ejemplo n.º 4
0
 def _createVehiclesValidator(self, entity):
     return ActionsValidatorComposite(
         entity,
         validators=[
             BalancedSquadVehiclesValidator(entity),
             _MapboxVehicleValidator(entity),
             SPGForbiddenSquadVehiclesValidator(entity)
         ])
Ejemplo n.º 5
0
 def _createVehiclesValidator(self, entity):
     validators = [
         _BattleRoyaleVehiclesValidator(entity),
         _UnitSlotsValidator(entity),
         _BattleRoyaleValidator(entity)
     ]
     if not IS_DEVELOPMENT:
         validators.append(_UnitSlotsValidator(entity))
     return ActionsValidatorComposite(entity, validators=validators)
Ejemplo n.º 6
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(BalancedSquadActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity,
         validators=[BalancedSquadVehiclesValidator(entity), baseValidator])
Ejemplo n.º 7
0
 def _createLevelsValidator(self, entity):
     baseValidator = super(ESportActionsValidator, self)._createLevelsValidator(entity)
     return ActionsValidatorComposite(entity, validators=[ESportLevelsValidator(entity), baseValidator])
Ejemplo n.º 8
0
 def _createStateValidator(self, entity):
     baseValidator = super(ClubsActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity, [baseValidator, ClubStateValidator(entity)])
Ejemplo n.º 9
0
 def _createStateValidator(self, entity):
     baseValidator = super(RankedActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, RankedPrimeTimeValidator(entity)])
 def _createStateValidator(self, entity):
     baseValidator = super(FunRandomActionsValidator, self)._createStateValidator(entity)
     return ActionsValidatorComposite(entity, [baseValidator, FunRandomPrimeTimeValidator(entity)])
Ejemplo n.º 11
0
 def _createActionsValidator(self):
     validators = [
         BootcampActionsValidator(self),
         super(BootcampEntity, self)._createActionsValidator()
     ]
     return ActionsValidatorComposite(self, validators)
Ejemplo n.º 12
0
 def _createSlotsValidator(self, entity):
     baseValidator = super(EpicSquadActionsValidator, self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(entity, validators=[baseValidator, EpicSquadSlotsValidator(entity)])
Ejemplo n.º 13
0
 def _createPlayerValidator(self, entity):
     baseValidator = super(SortieActionsValidator,
                           self)._createPlayerValidator(entity)
     return ActionsValidatorComposite(
         entity, validators=[SortiePlayerValidator(entity), baseValidator])
Ejemplo n.º 14
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(EpicActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity, [baseValidator, self.__epicVehicleValidator])
Ejemplo n.º 15
0
 def _createVehiclesValidator(self, entity):
     return ActionsValidatorComposite(entity, validators=[_BattleRoyaleVehiclesValidator(entity), _UnitSlotsValidator(entity), _BattleRoyaleValidator(entity)])
 def _createVehiclesValidator(self, entity):
     baseValidator = super(MapboxActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity, [MapboxVehicleValidator(entity), baseValidator])
 def _createStateValidator(self, entity):
     baseValidator = super(MapboxActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, MapboxStateValidator(entity)])
Ejemplo n.º 18
0
 def _createSlotsValidator(self, entity):
     baseValidator = super(MapboxSquadActionsValidator,
                           self)._createSlotsValidator(entity)
     return ActionsValidatorComposite(
         entity, validators=[baseValidator,
                             _UnitSlotsValidator(entity)])
 def _createVehiclesValidator(self, entity):
     baseValidator = super(FunRandomActionsValidator, self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(entity, [FunRandomVehicleValidator(entity), baseValidator])
Ejemplo n.º 20
0
 def _createStateValidator(self, entity):
     baseValidator = super(BattleRoyaleActionsValidator,
                           self)._createStateValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, BattleRoyaleValidator(entity)])
Ejemplo n.º 21
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(RankedActionsValidator,
                           self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(
         entity,
         [baseValidator, RankedVehicleValidator(entity)])
Ejemplo n.º 22
0
 def _createStateValidator(self, entity):
     return ActionsValidatorComposite(entity, [_BattleRoyaleTournamentInQueueValidator(entity)])
Ejemplo n.º 23
0
 def _createVehiclesValidator(self, entity):
     baseValidator = super(SandboxActionsValidator, self)._createVehiclesValidator(entity)
     return ActionsValidatorComposite(entity, [baseValidator, SandboxVehicleValidator(entity)])
 def _createStateValidator(self, entity):
     baseValidator = super(BootcampActionsValidator, self)._createStateValidator(entity)
     return ActionsValidatorComposite(entity, [baseValidator, BootcampStateValidator(entity)])