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
    • Constructor Detail

      • TavernDialogUtil

        public TavernDialogUtil()
    • Method Detail

      • stopTalkingToPerson

        public void stopTalkingToPerson​(TavernState tavernState,
                                        IPlayer player)
      • noShipWithEnoughCapacityAvailable

        public boolean noShipWithEnoughCapacityAvailable​(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