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 SummaryAll 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- 
logPurchasevoid logPurchase(GoodsType goodsType, int amount, int price) Logs a purchase- Parameters:
- goodsType- The type of goods which have been purchased
- amount- The amount of goods which have been purchased
- price- The unit price of the goods
 
 - 
logSalevoid logSale(GoodsType goodsType, int amount, int price, int tax) Logs a sale- Parameters:
- goodsType- The type of goods which have been sold
- amount- The amount of goods which have been sold
- price- The unit price of the goods
- tax- The tax which has been applied
 
 
- 
 
-