Package net.sf.freecol.common.model
Class MarketWas
- java.lang.Object
-
- net.sf.freecol.common.model.MarketWas
-
public class MarketWas extends java.lang.Object
Helper 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 void
fireChanges(java.util.List<AbstractGoods> req)
Fire any property changes resulting from actions in Market.void
fireChanges(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
- ThePlayer
to 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 ofAbstractGoods
that changed hands.
-
fireChanges
public void fireChanges(GoodsType type, int amount)
Fire any property changes resulting from actions in Market.- Parameters:
type
- AGoodsType
that changed hands.amount
- The amount of goods that changed hands.
-
-