buildBuilding (tile, structureType) {
    if (!this.purchaseManager.purchase(structureType.cost)) return

    var healths = this.createHealth(structureType)
    var producer = this.producerFactory.createProducer(structureType, tile)

    tile.structure = new Structure({
      tile: tile,
      health: healths.health,
      healthManager: healths.manager,
      ownerName: this.namer.createOwnerName(),
      structureName: this.namer.createBuildingName(structureType),
      size: 0,
      structureType: structureType,
      foundingYear: this.gameTimer.currentTimeEvent.year,
      producer: producer,
      bordercolCode: utils.randomWithBounds(0, 100)
    })

    this.player.addStructure(tile.structure)
    producer.initialize(tile.structure)

    this.createInitialPollution(structureType.pollution, tile)
    this.buyLand(tile.structure)
    this.eventController.event('structureBuilt', tile)
  }
/**
   * Builds a structure on the tile given as a parameter
   * @param {ModelTile} tile
   * @param {StructureType} structureType
   */
Builds a structure on the tile given as a parameter
@param {ModelTile} tile
@param {StructureType} structureType
Builds a structure on the tile given as a parameter @param { ModelTile } tile @param { StructureType } structureType
buildBuilding (tile, structureType) {
    if (!this.purchaseManager.purchase(structureType.cost)) return
    var healths = this.createHealth(structureType)
    var producer = this.producerFactory.createProducer(structureType, tile)
    tile.structure = new Structure({
      tile: tile,
      health: healths.health,
      healthManager: healths.manager,
      ownerName: this.namer.createOwnerName(),
      structureName: this.namer.createBuildingName(structureType),
      size: 0,
      structureType: structureType,
      foundingYear: this.gameTimer.currentTimeEvent.year,
      producer: producer,
      bordercolCode: utils.randomWithBounds(0, 100)
    })
    this.player.addStructure(tile.structure)
    producer.initialize(tile.structure)
    this.createInitialPollution(structureType.pollution, tile)
    this.buyLand(tile.structure)
    this.eventController.event('structureBuilt', tile)
  }
buildBuilding ( tile , structureType ) { if ( ! this . purchaseManager . purchase ( structureType . cost ) ) return var healths = this . createHealth ( structureType ) var producer = this . producerFactory . createProducer ( structureType , tile ) tile . structure = new Structure ( { tile : tile , health : healths . health , healthManager : healths . manager , ownerName : this . namer . createOwnerName ( ) , structureName : this . namer . createBuildingName ( structureType ) , size : 0 , structureType : structureType , foundingYear : this . gameTimer . currentTimeEvent . year , producer : producer , bordercolCode : utils . randomWithBounds ( 0 , 100 ) } ) this . player . addStructure ( tile . structure ) producer . initialize ( tile . structure ) this . createInitialPollution ( structureType . pollution , tile ) this . buyLand ( tile . structure ) this . eventController . event ( 'structureBuilt' , tile ) }
Builds a structure on the tile given as a parameter
 @param {ModelTile} tile
 @param {StructureType} structureType
Builds a structure on the tile given as a parameter @param { ModelTile } tile @param { StructureType } structureType