net.sf.freecol.server.model
Class MercenariesSession
java.lang.Object
net.sf.freecol.server.model.TransactionSession
net.sf.freecol.server.model.MercenariesSession
public class MercenariesSession
- extends TransactionSession
A type of session to handle trading.
|
Field Summary |
private static java.util.logging.Logger |
logger
|
private java.util.List<AbstractUnit> |
mercenaries
The mercenaries on offer. |
private int |
price
The price the mercenaries are on offer for. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final java.util.logging.Logger logger
mercenaries
private java.util.List<AbstractUnit> mercenaries
- The mercenaries on offer.
price
private int price
- The price the mercenaries are on offer for.
MercenariesSession
public MercenariesSession(Monarch monarch,
Player player)
complete
public void complete(ChangeSet cs)
- Description copied from class:
TransactionSession
- All transaction types must implement a completion action. The
last thing they should do is call this to remove reference to
this transaction.
- Overrides:
complete in class TransactionSession
- Parameters:
cs - A ChangeSet to update with changes that
occur when completing this session.
getMercenaries
public java.util.List<AbstractUnit> getMercenaries()
setMercenaries
public void setMercenaries(java.util.List<AbstractUnit> mercenaries)
getPrice
public int getPrice()
setPrice
public void setPrice(int price)