Interface ITransferableJFX

  • All Known Implementing Classes:
    TransferableState

    public interface ITransferableJFX
    This 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
      int getAmount​(int availableAmountCity)
      Retrieve the amount that should be transferred.
      ch.sahits.game.openpatrician.model.city.ICity getCity()
      Retrieve the city.
      ch.sahits.game.openpatrician.model.product.ComputablePriceV2 getComputablePrice()
      Retrieve the price calculation service
      ch.sahits.game.openpatrician.javafx.model.EDialogType getDialogType()
      Retrieve the dialog type of this transfer
      ch.sahits.game.openpatrician.model.product.ETransferAmount getMovableAmount()
      Retreive the amount category that is movable
      ch.sahits.game.openpatrician.model.IPlayer getPlayer()
      Retrieve the player.
      ch.sahits.game.openpatrician.model.ship.INavigableVessel getVessel()
      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.