|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.gui.order.GUIOrder.StateInfo
StateInfo is the object which is passed to GUIOrder subclasses that contains various information about the current game state.
This information is 'relatively constant' in that it does not typically change until the TurnState changes (or validation options change).
Constructor Summary | |
GUIOrder.StateInfo()
|
Method Summary | |
boolean |
canIssueOrder(Power power)
Determines if the player can issue orders for this power |
Adjustment.AdjustmentInfoMap |
getAdjustmenInfoMap()
|
Phase |
getPhase()
Convenience method to get Phase from TurnState |
Position |
getPosition()
Convenience method to get Position from TurnState |
RetreatChecker |
getRetreatChecker()
Gets a RetreatChecker object (that can be shared between orders) |
RuleOptions |
getRuleOptions()
|
TurnState |
getTurnState()
|
ValidationOptions |
getValidationOptions()
|
void |
setAdjustmenInfoMap(Adjustment.AdjustmentInfoMap adjMap)
|
void |
setClientFrame(ClientFrame cf)
|
void |
setRuleOptions(RuleOptions ruleOpts)
|
void |
setTurnState(TurnState turnState)
|
void |
setValidationOptions(ValidationOptions valOpts)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GUIOrder.StateInfo()
Method Detail |
public void setTurnState(TurnState turnState)
public void setAdjustmenInfoMap(Adjustment.AdjustmentInfoMap adjMap)
public void setRuleOptions(RuleOptions ruleOpts)
public void setValidationOptions(ValidationOptions valOpts)
public void setClientFrame(ClientFrame cf)
public TurnState getTurnState()
public Adjustment.AdjustmentInfoMap getAdjustmenInfoMap()
public RuleOptions getRuleOptions()
public ValidationOptions getValidationOptions()
public boolean canIssueOrder(Power power)
public Position getPosition()
public Phase getPhase()
public RetreatChecker getRetreatChecker()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |