Class TavernDialogUtil


  • @Service
    @Lazy
    public class TavernDialogUtil
    extends java.lang.Object
    Utility class for the tavern dialog. Contains functionality that is shared by multiple dialogs, which do not have the same parent.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Dec 26, 2013
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean noShipWithEnoughCapacityAvailable​(ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX city, int amountInBale)
      Check if there is a ship with enough capacity to load the ware onto.
      void stopTalkingToPerson​(ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState, ch.sahits.game.openpatrician.model.IPlayer player)  
      • Methods inherited from class java.lang.Object

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

      • TavernDialogUtil

        public TavernDialogUtil()
    • Method Detail

      • stopTalkingToPerson

        public void stopTalkingToPerson​(ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState,
                                        ch.sahits.game.openpatrician.model.IPlayer player)
      • noShipWithEnoughCapacityAvailable

        public boolean noShipWithEnoughCapacityAvailable​(ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX city,
                                                         int amountInBale)
        Check if there is a ship with enough capacity to load the ware onto.
        Parameters:
        city - city proxy containing the players ship currently in port
        amountInBale - amount that should be available in bales
        Returns:
        true if the required capacity is not available on any ship