Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
    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" ] )
Esempio n. 4
0
    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"])