def _getPluginsList(self):
     return (proc_plugs.MoneyValidator(self.price),
             proc_plugs.VehicleSlotsConfirmator(self.showNotEnoughSlotMsg
                                                and not self.buySlot),
             proc_plugs.VehicleFreeLimitConfirmator(self.item,
                                                    self.crewType),
             proc_plugs.CollectibleVehiclesValidator(self.item.intCD))
Exemplo n.º 2
0
 def _getPluginsList(self):
     """
     Gets plugins collection
     :return: <tuple(ProcessorPlugin, ...)>
     """
     return (plugins.MoneyValidator(self.price),
             plugins.VehicleSlotsConfirmator(not self.buySlot),
             plugins.VehicleFreeLimitConfirmator(self.item, self.crewType))
Exemplo n.º 3
0
 def __init__(self, vehicle, buySlot, buyShell = False, crewType = -1):
     self.price = self.__sumBuyPrice(vehicle, buyShell, crewType)
     super(VehicleBuyer, self).__init__(vehicle, (plugins.VehicleValidator(vehicle, False, prop={'isBroken': True,
       'isLocked': True}),
      plugins.MoneyValidator(self.price),
      plugins.VehicleSlotsConfirmator(not buySlot),
      plugins.VehicleFreeLimitConfirmator(vehicle, crewType)))
     self.buyShell = buyShell
     self.buyCrew = crewType != -1
     self.crewType = crewType
     self.vehicle = vehicle
Exemplo n.º 4
0
 def _getPluginsList(self):
     return (proc_plugs.MoneyValidator(self.price), proc_plugs.VehicleSlotsConfirmator(not self.buySlot), proc_plugs.IsLongDisconnectedFromCenter())
Exemplo n.º 5
0
 def _getPluginsList(self):
     return (proc_plugs.MoneyValidator(self.price),
             proc_plugs.VehicleSlotsConfirmator(not self.buySlot),
             proc_plugs.VehicleFreeLimitConfirmator(self.item,
                                                    self.crewType))