Class TransferableState
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.dialog.service.impl.TransferableState
-
- All Implemented Interfaces:
ITransferableJFX
public class TransferableState extends java.lang.Object implements ITransferableJFX
- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Dec 25, 2015
-
-
Constructor Summary
Constructors Constructor Description TransferableState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAmount(int availableAmountCity)Retrieve the amount that should be transferred.ch.sahits.game.openpatrician.model.product.ComputablePriceV2getComputablePrice()Retrieve the price calculation service-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.display.dialog.service.ITransferableJFX
getCity, getDialogType, getMovableAmount, getPlayer, getVessel
-
-
-
-
Method Detail
-
getAmount
public int getAmount(int availableAmountCity)
Description copied from interface:ITransferableJFXRetrieve the amount that should be transferred.- Specified by:
getAmountin interfaceITransferableJFX- Parameters:
availableAmountCity- available amount in the city- Returns:
- amount that should be transferred.
-
getComputablePrice
public ch.sahits.game.openpatrician.model.product.ComputablePriceV2 getComputablePrice()
Description copied from interface:ITransferableJFXRetrieve the price calculation service- Specified by:
getComputablePricein interfaceITransferableJFX- Returns:
- service to calculate the price.
-
-