Interface ITransferableJFX
-
- All Known Implementing Classes:
TransferableState
public interface ITransferableJFXThis interfaces defines methods that are accessed by the Transfer actions- Author:
- Andi Hotz, (c) Sahits GmbH, 2011 Created on Dec 11, 2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAmount(int availableAmountCity)Retrieve the amount that should be transferred.ch.sahits.game.openpatrician.model.city.ICitygetCity()Retrieve the city.ch.sahits.game.openpatrician.model.product.ComputablePriceV2getComputablePrice()Retrieve the price calculation servicech.sahits.game.openpatrician.javafx.model.EDialogTypegetDialogType()Retrieve the dialog type of this transferch.sahits.game.openpatrician.model.product.ETransferAmountgetMovableAmount()Retreive the amount category that is movablech.sahits.game.openpatrician.model.IPlayergetPlayer()Retrieve the player.ch.sahits.game.openpatrician.model.ship.INavigableVesselgetVessel()Retrieve the vessel associated.
-
-
-
Method Detail
-
getVessel
ch.sahits.game.openpatrician.model.ship.INavigableVessel getVessel()
Retrieve the vessel associated.- Returns:
- the associated vesssel
-
getCity
ch.sahits.game.openpatrician.model.city.ICity getCity()
Retrieve the city.- Returns:
- the associated city
-
getPlayer
ch.sahits.game.openpatrician.model.IPlayer getPlayer()
Retrieve the player.- Returns:
- the associated player
-
getDialogType
ch.sahits.game.openpatrician.javafx.model.EDialogType getDialogType()
Retrieve the dialog type of this transfer- Returns:
- transfer dialog type
-
getAmount
int getAmount(int availableAmountCity)
Retrieve the amount that should be transferred.- Parameters:
availableAmountCity- available amount in the city- Returns:
- amount that should be transferred.
-
getMovableAmount
ch.sahits.game.openpatrician.model.product.ETransferAmount getMovableAmount()
Retreive the amount category that is movable- Returns:
- associated amount enumeration
-
getComputablePrice
ch.sahits.game.openpatrician.model.product.ComputablePriceV2 getComputablePrice()
Retrieve the price calculation service- Returns:
- service to calculate the price.
-
-