|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.server.model.TransactionSession
net.sf.freecol.server.model.TradeSession
public class TradeSession
A type of session to handle trading.
| Field Summary | |
|---|---|
private boolean |
actionTaken
Whether any action has been taken in this session. |
private boolean |
canBuy
Whether buying is still valid in this session. |
private boolean |
canGift
Whether giving a gift is still valid in this session. |
private boolean |
canSell
Whether selling is still valid in this session. |
private static java.util.logging.Logger |
logger
|
private int |
movesLeft
The moves the trading unit has left at start of session. |
| Fields inherited from class net.sf.freecol.server.model.TransactionSession |
|---|
allSessions |
| Constructor Summary | |
|---|---|
TradeSession(Unit unit,
Settlement settlement)
|
|
| Method Summary | |
|---|---|
void |
complete(ChangeSet cs)
All transaction types must implement a completion action. |
boolean |
getActionTaken()
|
boolean |
getBuy()
|
boolean |
getGift()
|
int |
getMovesLeft()
|
boolean |
getSell()
|
void |
setBuy()
|
void |
setGift()
|
void |
setSell()
|
| Methods inherited from class net.sf.freecol.server.model.TransactionSession |
|---|
clearAll, completeAll, lookup, lookup, makeSessionKey, makeSessionKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger logger
private int movesLeft
private boolean actionTaken
private boolean canBuy
private boolean canSell
private boolean canGift
| Constructor Detail |
|---|
public TradeSession(Unit unit,
Settlement settlement)
| Method Detail |
|---|
public void complete(ChangeSet cs)
TransactionSession
complete in class TransactionSessioncs - A ChangeSet to update with changes that
occur when completing this session.public int getMovesLeft()
public boolean getActionTaken()
public boolean getBuy()
public boolean getSell()
public boolean getGift()
public void setBuy()
public void setSell()
public void setGift()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||