Class TavernDialogUtil
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.dialog.service.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 Summary
Constructors Constructor Description TavernDialogUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
noShipWithEnoughCapacityAvailable(ICityPlayerProxyJFX city, int amountInBale)
Check if there is a ship with enough capacity to load the ware onto.void
stopTalkingToPerson(TavernState tavernState, IPlayer player)
-
-
-
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 portamountInBale
- amount that should be available in bales- Returns:
- true if the required capacity is not available on any ship
-
-