Class TradeManagerService


  • public class TradeManagerService
    extends java.lang.Object
    Service to handle the setup of autmated trading for AI players.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 05, 2017
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void hireSteward​(ch.sahits.game.openpatrician.model.building.ITradingOffice tradingOffice)
      Hire a steward for the trading office.
      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)  
      void setupOrUpdateAutomaticTrading​(ch.sahits.game.openpatrician.model.building.ITradingOffice office)
      Ensure that the automated trading values are up to date.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TradeManagerService

        public TradeManagerService()
    • 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)