|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrails.ui.swing.ORUIManager
public class ORUIManager
Field Summary | |
---|---|
java.util.List<LayTile> |
allowedTileLays
|
java.util.List<LayToken> |
allowedTokenLays
|
static int |
CONFIRM_TOKEN
|
GameUIManager |
gameUIManager
|
static int |
INACTIVE
|
protected boolean |
localAction
Will be set true if a cancelled action does not need to be reported to the server, because it does not change the OR turn step. |
protected static org.apache.log4j.Logger |
log
|
static int |
MAP_CORRECTION
|
java.util.List<PossibleAction> |
mapRelatedActions
|
protected static java.lang.String[] |
messageKey
|
protected ORPanel |
orPanel
|
protected ORWindow |
orWindow
|
protected PossibleActions |
possibleActions
|
static int |
ROTATE_OR_CONFIRM_TILE
|
static int |
SELECT_HEX_FOR_TILE
|
static int |
SELECT_HEX_FOR_TOKEN
|
static int |
SELECT_PAYOUT
|
static int |
SELECT_TILE
|
static int |
SELECT_TOKEN
|
static int |
SET_REVENUE
|
protected TileManager |
tileManager
|
java.util.List<TileI> |
tileUpgrades
|
java.util.List<? extends TokenI> |
tokenLays
|
Constructor Summary | |
---|---|
ORUIManager()
|
Method Summary | ||
---|---|---|
void |
addDetail(java.lang.String detailText)
|
|
void |
addInformation(java.lang.String infoText)
|
|
void |
buyPrivate()
|
|
void |
buyTrain()
|
|
void |
cancelUpgrade()
|
|
protected void |
checkForGameSpecificActions()
Stub, can be overridden by game-specific subclasses |
|
protected void |
checkORCompanySequence(PublicCompanyI[] oldCompanies,
java.util.List<PublicCompanyI> newCompanies)
Redraw the ORPanel if the company operating order has changed |
|
void |
dialogActionPerformed()
|
|
void |
executeUpgrade()
|
|
void |
finish()
|
|
javax.swing.JDialog |
getCurrentDialog()
|
|
PossibleAction |
getCurrentDialogAction()
|
|
GameUIManager |
getGameUIManager()
|
|
HexMap |
getMap()
|
|
MapPanel |
getMapPanel()
|
|
ORWindow |
getORWindow()
|
|
TileManager |
getTileManager()
|
|
void |
hexClicked(GUIHex clickedHex,
GUIHex selectedHex)
|
|
void |
init(ORWindow orWindow)
|
|
void |
initOR(OperatingRound or)
|
|
protected boolean |
isUnconnectedTileLayTarget(GUIHex hex)
|
|
void |
layBaseToken(LayBaseToken action)
|
|
void |
layBonusToken(PossibleAction action)
Lay Token finished. |
|
void |
operatingCosts()
|
|
void |
processAction(java.lang.String command,
java.util.List<PossibleAction> actions)
Processes button presses and menu selection actions |
|
protected void |
processCorrectionAction(CorrectionAction action)
|
|
protected boolean |
processGameSpecificActions(java.util.List<PossibleAction> actions)
Stub, can be overridden in subclasses |
|
protected void |
reachDestinations(ReachDestinations action)
|
|
protected void |
relayBaseTokens(LayTile action)
Manually relay the tokens. |
|
protected void |
repayLoans(RepayLoans action)
|
|
void |
setCurrentDialog(javax.swing.JDialog dialog,
PossibleAction action)
|
|
void |
setGameUIManager(GameUIManager gameUIManager)
|
|
void |
setLocalAction(boolean value)
|
|
void |
setLocalStep(int localStep)
|
|
|
setMapRelatedActions(java.util.List<T> actions)
|
|
void |
setMessage(java.lang.String message)
|
|
void |
setORCompanyTurn(int orCompIndex)
|
|
protected void |
takeLoans(TakeLoans action)
Default implementation. |
|
void |
tileSelected(int tileId)
|
|
void |
tokenSelected(LayToken tokenAllowance)
|
|
void |
updateMessage()
|
|
void |
updateStatus(boolean myTurn)
|
|
void |
updateStatus(PossibleAction actionToComplete,
boolean myTurn)
|
|
void |
updateUpgradesPanel()
|
|
void |
updateUpgradesPanel(MapCorrectionAction action)
|
|
protected void |
useSpecialProperty(UseSpecialProperty action)
Used to process some special properties from the 'Special' menu |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ORWindow orWindow
protected ORPanel orPanel
public GameUIManager gameUIManager
protected TileManager tileManager
protected PossibleActions possibleActions
public java.util.List<PossibleAction> mapRelatedActions
public java.util.List<LayTile> allowedTileLays
public java.util.List<TileI> tileUpgrades
public java.util.List<LayToken> allowedTokenLays
public java.util.List<? extends TokenI> tokenLays
protected boolean localAction
public static final int INACTIVE
public static final int SELECT_HEX_FOR_TILE
public static final int SELECT_TILE
public static final int ROTATE_OR_CONFIRM_TILE
public static final int SELECT_HEX_FOR_TOKEN
public static final int SELECT_TOKEN
public static final int CONFIRM_TOKEN
public static final int SET_REVENUE
public static final int SELECT_PAYOUT
public static final int MAP_CORRECTION
protected static final java.lang.String[] messageKey
protected static org.apache.log4j.Logger log
Constructor Detail |
---|
public ORUIManager()
Method Detail |
---|
public void setGameUIManager(GameUIManager gameUIManager)
public void init(ORWindow orWindow)
public void initOR(OperatingRound or)
public void finish()
public <T extends PossibleAction> void setMapRelatedActions(java.util.List<T> actions)
public void updateMessage()
public void processAction(java.lang.String command, java.util.List<PossibleAction> actions)
command
- actions
- protected boolean processGameSpecificActions(java.util.List<PossibleAction> actions)
protected void reachDestinations(ReachDestinations action)
public void dialogActionPerformed()
dialogActionPerformed
in interface DialogOwner
public javax.swing.JDialog getCurrentDialog()
getCurrentDialog
in interface DialogOwner
public PossibleAction getCurrentDialogAction()
getCurrentDialogAction
in interface DialogOwner
public void setCurrentDialog(javax.swing.JDialog dialog, PossibleAction action)
setCurrentDialog
in interface DialogOwner
public void hexClicked(GUIHex clickedHex, GUIHex selectedHex)
public void tileSelected(int tileId)
protected boolean isUnconnectedTileLayTarget(GUIHex hex)
public void tokenSelected(LayToken tokenAllowance)
public void layBaseToken(LayBaseToken action)
protected void relayBaseTokens(LayTile action)
relayBaseTokens="yes"
as an
attribute in the Upgrade tag.
action
- The LayTile PossibleAction.public void layBonusToken(PossibleAction action)
action
- The LayBonusToken action object of the laid token.public void operatingCosts()
public void buyTrain()
public void buyPrivate()
public void executeUpgrade()
public void cancelUpgrade()
protected void takeLoans(TakeLoans action)
protected void repayLoans(RepayLoans action)
protected void useSpecialProperty(UseSpecialProperty action)
protected void processCorrectionAction(CorrectionAction action)
public void updateStatus(boolean myTurn)
public void updateStatus(PossibleAction actionToComplete, boolean myTurn)
protected void checkForGameSpecificActions()
protected void checkORCompanySequence(PublicCompanyI[] oldCompanies, java.util.List<PublicCompanyI> newCompanies)
public void setORCompanyTurn(int orCompIndex)
public void setLocalStep(int localStep)
public void updateUpgradesPanel()
public void updateUpgradesPanel(MapCorrectionAction action)
public void setMessage(java.lang.String message)
public void addInformation(java.lang.String infoText)
public void addDetail(java.lang.String detailText)
public void setLocalAction(boolean value)
public ORWindow getORWindow()
public MapPanel getMapPanel()
public HexMap getMap()
public GameUIManager getGameUIManager()
public TileManager getTileManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |