Package net.sf.freecol.common.model
Class MarketWas
- java.lang.Object
-
- net.sf.freecol.common.model.MarketWas
-
public class MarketWas extends java.lang.ObjectHelper container to remember the Market state prior to some change, and fire off any consequent property changes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireChanges(java.util.List<AbstractGoods> req)Fire any property changes resulting from actions in Market.voidfireChanges(GoodsType type, int amount)Fire any property changes resulting from actions in Market.
-
-
-
Constructor Detail
-
MarketWas
public MarketWas(Player player)
Make a new MarketWas instance for the given player.- Parameters:
player- ThePlayerto find a market for.
-
-
Method Detail
-
fireChanges
public void fireChanges(java.util.List<AbstractGoods> req)
Fire any property changes resulting from actions in Market.- Parameters:
req- A list ofAbstractGoodsthat changed hands.
-
fireChanges
public void fireChanges(GoodsType type, int amount)
Fire any property changes resulting from actions in Market.- Parameters:
type- AGoodsTypethat changed hands.amount- The amount of goods that changed hands.
-
-