ch.sahits.game.graphic.display.dialog
Interface ITransferable

All Known Implementing Classes:
TradeDialog

interface ITransferable

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
 int getAmount(int maxMount)
          Retrieve the amount that is to be transferred.
 CityPlayerProxy getCityPlayerProxy()
          Retrieve the proxy object to access the city and the player
 ETransferDialogType getDialogType()
          Retrieve the dialog type of this transfer
 ETransferAmount getMovableAmount()
          Retrieve the amount size that is to be transfer in one chunk.
 void setDialogType(ETransferDialogType type)
          set the transfer dialog type
 

Method Detail

getAmount

int getAmount(int maxMount)
Retrieve the amount that is to be transferred. This method does not consider how much is available.

Parameters:
maxMount -
Returns:

getMovableAmount

ETransferAmount getMovableAmount()
Retrieve the amount size that is to be transfer in one chunk.

Returns:

getCityPlayerProxy

CityPlayerProxy getCityPlayerProxy()
Retrieve the proxy object to access the city and the player

Returns:

getDialogType

ETransferDialogType getDialogType()
Retrieve the dialog type of this transfer

Returns:
transfer dialog type

setDialogType

void setDialogType(ETransferDialogType type)
set the transfer dialog type

Parameters:
type - of the transfer dialog


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.