Exemplo n.º 1
0
	def build_combat_ship(self):
		"""Build a new frigate ship"""
		boat_builder = self._get_boat_builders()[0]
		AddProduction(boat_builder.get_component(Producer), PRODUCTIONLINES.FRIGATE).execute(self.owner.session)
		production = boat_builder.get_component(Producer)._get_production(PRODUCTIONLINES.FRIGATE)
		production.add_production_finished_listener(self._ship_built)
		self.log.info('%s started building combat ship', self)
Exemplo n.º 2
0
	def build_ship(self):
		"""Build a new usable fishing boat."""
		boat_builder = self._get_boat_builders()[0]
		AddProduction(boat_builder.get_component(Producer), PRODUCTIONLINES.HUKER).execute(self.owner.session)
		production = boat_builder.get_component(Producer)._get_production(PRODUCTIONLINES.HUKER)
		production.add_production_finished_listener(self._ship_built)
		self.log.info('%s started building trading ship', self)
Exemplo n.º 3
0
 def start_production(self):
     AddProduction(self.producer, 15).execute(self.instance.session)
Exemplo n.º 4
0
 def start_production(self, prod_line_id):
     AddProduction(self.producer,
                   prod_line_id).execute(self.instance.session)
     # show overview tab
     self.instance.session.ingame_gui.get_cur_menu().show_tab(0)