Class 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 Detail

      • TransferableState

        public TransferableState()
    • Method Detail

      • getAmount

        public int getAmount​(int availableAmountCity)
        Description copied from interface: ITransferableJFX
        Retrieve the amount that should be transferred.
        Specified by:
        getAmount in interface ITransferableJFX
        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: ITransferableJFX
        Retrieve the price calculation service
        Specified by:
        getComputablePrice in interface ITransferableJFX
        Returns:
        service to calculate the price.