Ejemplo n.º 1
0
 def __init__(self, position):
     Building.__init__(self, position,
                       ALL_BUILDINGS_SETTINGS[BuildingsName.BATTERY])
     ProducingBuilding.__init__(self, self.network, self.buildingData,
                                BuildingStates.ON, self.level)
     StockingBuilding.__init__(self, self.network, self.buildingData,
                               ObjectCategory.ENERGY, self.level)
Ejemplo n.º 2
0
 def __init__(self, position):
     Building.__init__(self, position,
                       ALL_BUILDINGS_SETTINGS[BuildingsName.CRUSHER])
     ConsumingBuilding.__init__(self, self.network, self.buildingData,
                                self.state, self.level)
     MiningBuilding.__init__(
         self, modules.gameManager.gameManager.getResourceAt(self.position))
Ejemplo n.º 3
0
 def __init__(self, position):
     Building.__init__(
         self, position,
         ALL_BUILDINGS_SETTINGS[BuildingsName.TRIHELIUM_PLANT])
     ConsumingBuilding.__init__(self, self.network, self.buildingData,
                                self.state, self.level)
     ProducingBuilding.__init__(self, self.network, self.buildingData,
                                self.state, self.level)
Ejemplo n.º 4
0
 def __init__(self, position):
     Building.__init__(
         self, position,
         ALL_BUILDINGS_SETTINGS[BuildingsName.DIHYDROGEN_COMBINER])
     ConsumingBuilding.__init__(self, self.network, self.buildingData,
                                self.state, self.level)
     ProducingBuilding.__init__(self, self.network, self.buildingData,
                                self.state, self.level)
Ejemplo n.º 5
0
    def __init__(self, position):

        self.position = position
        self.network = None
        self.linkedRes = modules.gameManager.gameManager.getResourceAt(
            self.position)

        Building.__init__(self, self.position,
                          ALL_BUILDINGS_SETTINGS[BuildingsName.CONNECTOR])
Ejemplo n.º 6
0
    def __init__(self, position):

        self.position = position
        self.network = None

        Building.__init__(self, self.position, ALL_BUILDINGS_SETTINGS[BuildingsName.WAREHOUSE_TRIHYDROGEN])

        self.state = BuildingStates.ON
        ProducingBuilding.__init__(self, self.network, self.buildingData, self.state, self.level)
        StockingBuilding.__init__(self, self.network, self.buildingData, ObjectCategory.TRIHYDROGEN, self.level)
Ejemplo n.º 7
0
 def __init__(self, position):
     Building.__init__(self, position,
                       ALL_BUILDINGS_SETTINGS[BuildingsName.SOLARPANEL])
     ProducingBuilding.__init__(self, self.network, self.buildingData,
                                BuildingStates.ON, self.level)
Ejemplo n.º 8
0
 def __init__(self, position, earth):
     Building.__init__(self, position, ALL_BUILDINGS_SETTINGS[BuildingsName.TRANSMITTER])
     ConsumingBuilding.__init__(self, self.network, self.buildingData, self.state, self.level)
     self._earth = earth
Ejemplo n.º 9
0
 def __init__(self, position):
     Building.__init__(self, position, ALL_BUILDINGS_SETTINGS[BuildingsName.HEADQUARTERS])