Package net.sf.freecol.common.model
Interface TransactionListener
-
- All Known Implementing Classes:
EuropePanel.TransactionLog
public interface TransactionListenerInterface for classes which listen to transactions in market
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlogPurchase(GoodsType goodsType, int amount, int price)Logs a purchasevoidlogSale(GoodsType goodsType, int amount, int price, int tax)Logs a sale
-
-
-
Method Detail
-
logPurchase
void logPurchase(GoodsType goodsType, int amount, int price)
Logs a purchase- Parameters:
goodsType- The type of goods which have been purchasedamount- The amount of goods which have been purchasedprice- The unit price of the goods
-
logSale
void logSale(GoodsType goodsType, int amount, int price, int tax)
Logs a sale- Parameters:
goodsType- The type of goods which have been soldamount- The amount of goods which have been soldprice- The unit price of the goodstax- The tax which has been applied
-
-