|
|||||||||
| 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.TaxSession
public class TaxSession
A type of session to handle trading.
| Field Summary | |
|---|---|
private boolean |
accepted
Was the tax raise accepted. |
private Goods |
goods
The goods to use in a tea party. |
private static java.util.logging.Logger |
logger
|
private ServerPlayer |
serverPlayer
The player whose tax is being raised. |
private int |
tax
The tax raise. |
| Fields inherited from class net.sf.freecol.server.model.TransactionSession |
|---|
allSessions |
| Constructor Summary | |
|---|---|
TaxSession(Monarch monarch,
ServerPlayer serverPlayer)
|
|
| Method Summary | |
|---|---|
void |
complete(ChangeSet cs)
All transaction types must implement a completion action. |
boolean |
getAccepted()
|
Goods |
getGoods()
|
int |
getTax()
|
void |
setAccepted(boolean accepted)
|
void |
setGoods(Goods goods)
|
void |
setTax(int tax)
|
| 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 ServerPlayer serverPlayer
private int tax
private Goods goods
private boolean accepted
| Constructor Detail |
|---|
public TaxSession(Monarch monarch,
ServerPlayer serverPlayer)
| 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 getTax()
public void setTax(int tax)
public Goods getGoods()
public void setGoods(Goods goods)
public boolean getAccepted()
public void setAccepted(boolean accepted)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||