Class TradeManagerService
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.TradeManagerService
-
public class TradeManagerService extends java.lang.ObjectService to handle the setup of autmated trading for AI players.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 05, 2017
-
-
Constructor Summary
Constructors Constructor Description TradeManagerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhireSteward(ch.sahits.game.openpatrician.model.building.ITradingOffice tradingOffice)Hire a steward for the trading office.booleanplayerProduces(ch.sahits.game.openpatrician.model.city.ICity city, ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.product.IWare ware)voidsetupOrUpdateAutomaticTrading(ch.sahits.game.openpatrician.model.building.ITradingOffice office)Ensure that the automated trading values are up to date.
-
-
-
Method Detail
-
hireSteward
public void hireSteward(ch.sahits.game.openpatrician.model.building.ITradingOffice tradingOffice)
Hire a steward for the trading office.- Parameters:
tradingOffice- for which the tradeing manager is to be hired
-
setupOrUpdateAutomaticTrading
public void setupOrUpdateAutomaticTrading(ch.sahits.game.openpatrician.model.building.ITradingOffice office)
Ensure that the automated trading values are up to date.- Parameters:
office- for which automatic trading is to be setup.
-
playerProduces
public boolean playerProduces(ch.sahits.game.openpatrician.model.city.ICity city, ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.product.IWare ware)
-
-