def __init__( self, specialization=SPECIALIZATIONS[ "WEAPONS" ], capacity=100, **kwargs ): super( AWarehouse, self ).__init__( **kwargs ) assert specialization in SPECIALIZATIONS.itervalues() self.__storage = {} self.__capacity = capacity self.__specialization = specialization
def __init__(self, specialization=SPECIALIZATIONS["WEAPONS"], capacity=100, **kwargs): super(AWarehouse, self).__init__(**kwargs) assert specialization in SPECIALIZATIONS.itervalues() self.__storage = {} self.__capacity = capacity self.__specialization = specialization
def __init__( self, specialization, **kwargs ): super( AFactory, self ).__init__( **kwargs ) assert specialization in SPECIALIZATIONS.itervalues() self.__specialization = specialization self.__tech_level = FACTORY[ "DEFAULT_TECH_LEVEL" ] self.__prod_level = FACTORY[ "DEFAULT_PROD_LEVEL" ] self.__productivity = FACTORY[ "DEFAULT_PRODUCTIVITY" ] self.__efficiency = FACTORY[ "DEFAULT_EFFICIENCY" ] self.__product_price = FACTORY[ "PRODUCT_PRICE" ] # per one piece of production self.__storage = AWarehouse( specialization=self.__specialization, capacity=FACTORY[ "DEFAULT_STORAGE_CAPACITY" ] )
def __init__(self, specialization, **kwargs): super(AFactory, self).__init__(**kwargs) assert specialization in SPECIALIZATIONS.itervalues() self.__specialization = specialization self.__tech_level = FACTORY["DEFAULT_TECH_LEVEL"] self.__prod_level = FACTORY["DEFAULT_PROD_LEVEL"] self.__productivity = FACTORY["DEFAULT_PRODUCTIVITY"] self.__efficiency = FACTORY["DEFAULT_EFFICIENCY"] self.__product_price = FACTORY[ "PRODUCT_PRICE"] # per one piece of production self.__storage = AWarehouse( specialization=self.__specialization, capacity=FACTORY["DEFAULT_STORAGE_CAPACITY"])