Class TavernDialogUtil
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.dialog.service.TavernDialogUtil
-
@Service @Lazy public class TavernDialogUtil extends java.lang.ObjectUtility 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 booleannoShipWithEnoughCapacityAvailable(ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX city, int amountInBale)Check if there is a ship with enough capacity to load the ware onto.voidstopTalkingToPerson(ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState, ch.sahits.game.openpatrician.model.IPlayer player)
-
-
-
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 portamountInBale- amount that should be available in bales- Returns:
- true if the required capacity is not available on any ship
-
-