Package net.sf.colossus.gui
Class ClientGUI
- java.lang.Object
-
- net.sf.colossus.gui.ClientGUI
-
- All Implemented Interfaces:
IClientGUI,GUICallbacks
public class ClientGUI extends java.lang.Object implements IClientGUI, GUICallbacks
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classClientGUI.PendingMove
-
Field Summary
Fields Modifier and Type Field Description private AutoInspectorautoInspectorprivate BattleBoardbattleBoardprivate java.util.List<GUIBattleChit>battleChitsprivate MasterBoardboardprivate CreatureCollectionViewcaretakerDisplayprotected Clientclientprivate static intCONN_CHECK_TIMEOUTprivate java.lang.ObjectconnectionCheckMutexprivate javax.swing.TimerconnectionCheckTimerprivate ConnectionLogWindowconnectionLogWindowprivate EngagementResultsengagementResultsprivate EventViewereventViewerprivate booleangameOverMessageAlreadyShownprivate longlastConnectionCheckPackageSentprivate intlegionMoveConfirmationModeprivate static java.util.logging.LoggerLOGGERprivate LogWindowlogWindow(package private) java.lang.Stringmessageprivate MovementDiemovementDieprivate LegionmoverInformation on the current moving legion.private Negotiatenegotiateprivate intnextSplitClickModeprivate Optionsoptionsprotected IOracleoracleprivate java.util.Set<MasterHex>pendingMoveHexesprivate java.util.LinkedList<ClientGUI.PendingMove>pendingMovesprivate PickCarrypickCarryDialogprivate PreferencesWindowpreferencesWindow(package private) booleanquitAlreadyTriedprivate booleanrecoveredFromMoveNakprivate intrecruitChitModeprivate intreplayLastTurnprivate intreplayMaxTurnprivate ReplyToProposalreplyToProposalprivate javax.swing.JFramesecondaryParentthe parent frame for secondary windowsprivate booleanstartedByWebClientprivate StatusScreenstatusScreenprivate java.util.List<java.lang.Boolean>tellEngagementResultsAttackerLegionCertainitiesprivate java.util.List<java.lang.String>tellEngagementResultsAttackerStartingContentsprivate java.util.List<java.lang.Boolean>tellEngagementResultsDefenderLegionCertainitiesprivate java.util.List<java.lang.String>tellEngagementResultsDefenderStartingContentsprivate java.util.LinkedList<java.lang.Object>undoStackStack of legion marker ID's, to allow multiple levels of undo for splits, moves, and recruits.private intviewModeprivate WebClientwebClientprivate WhatNextManagerwhatNextManagerThe object which handles what to do next when a game is going to end
-
Constructor Summary
Constructors Constructor Description ClientGUI(Client client, Options options, WhatNextManager whatNextMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireAngelCallback(Legion legion, CreatureType angelType)voidactOnAddCreature(Legion legion, CreatureType creature, java.lang.String reason)voidactOnApplyCarries(BattleHex hex)voidactOnCleanupBattle()voidactOnDidMove(Legion legion, MasterHex startingHex, MasterHex currentHex, boolean teleport, CreatureType teleportingLord, boolean splitLegionHasForcedMove)voidactOnDidRecruit(Legion legion, CreatureType recruit, java.util.List<CreatureType> recruiters, java.lang.String reason)voidactOnDidSplit(int turn, Legion parent, Legion child, MasterHex hex)voidactOnDidSplitPart2(MasterHex hex)voidactOnDoneWithBattleMoves()voidactOnDoneWithMoves()voidactOnDoneWithSplits()voidactOnDoSummon()voidactOnEngagementCompleted()voidactOnGameStarting()voidactOnGameStartingFailed()voidactOnHitsSet(BattleUnit target)voidactOnInitBattle()voidactOnMoveNak()voidactOnNoMoreEngagements()voidactOnPendingBattleMoveOver()voidactOnPlaceNewChit(java.lang.String imageName, BattleUnit battleUnit, BattleHex hex)voidactOnReconnectCompleted()voidactOnRemoveCreature(Legion legion, CreatureType type, java.lang.String reason)voidactOnRemoveCreaturePart2(Legion legion)voidactOnRemoveLegion(Legion legion)voidactOnSetupBattleFight()voidactOnSetupBattleMove()voidactOnSetupBattleRecruit()voidactOnSetupBattleSummon()voidactOnSetupFight()voidactOnSetupMove()voidactOnSetupMuster()voidactOnSetupSplit()voidactOnTellBattleMove(BattleHex startingHex, BattleHex endingHex, boolean rememberForUndo)voidactOnTellEngagementResults(Legion winner, java.lang.String method, int points, int turns)voidactOnTellGameOver(java.lang.String message, boolean disposeFollows)Update Board and Status screen to reflect the new game over state.voidactOnTellLegionLocation(Legion legion, MasterHex hex)voidactOnTellMovementRoll(int roll)voidactOnTellRedoChange()voidactOnTellReplay(int maxTurn)voidactOnTellStrikeResults(boolean wasCarry, int strikeNumber, java.util.List<java.lang.String> rolls, BattleCritter striker, BattleCritter target)voidactOnTurnOrPlayerChange(Client client, int turnNr, Player player)voidactOnUndidMove(Legion legion, MasterHex formerHex, MasterHex currentHex, boolean splitLegionHasForcedMove, boolean didTeleport)voidactOnUndidRecruitPart(Legion legion, boolean wasReinforcement, int turnNumber)voidactOnUndidSplit(Legion survivor, int turn)voidactualDisposePickCarryDialog()private voidaddBattleChit(GUIBattleChit battleChit)voidaddPossibleRecruitChits(LegionClientSide legion, java.util.Set<MasterHex> hexes)voidalignLegionsMaybe(Legion legion)voidanswerConcede(Legion legion, boolean answer)voidanswerFlee(Legion ally, boolean answer)voidanswerPickColor(PlayerColor color)voidappendToConnectionLog(java.lang.String s)voidapplyCarries(BattleHex hex)(package private) voidaskNewCloseQuitCancel(javax.swing.JFrame frame, boolean fromBattleBoard)voidautoInspectorSetDubiousAsBlanks(boolean newValue)voidbringUpPickColorDialog(java.lang.String playerName, java.util.List<PlayerColor> colorsLeft)(package private) voidcheckServerConnection()When user requests it from File menu, this method here requests the server to send us a confirmation package, to confirm that connection is still alive and ok.booleanchooseWhetherToTeleport()Present a dialog allowing the player to enter via land or teleport.private voidcleanupGUI()voidcleanupNegotiationDialogs()private voidclearUndoStack()voidconcede()voidcreatePickMarkerDialog(ClientGUI gui, java.util.Set<java.lang.String> markerIds, Legion parent)voiddefaultCursor()voiddidSummon(Legion summoner, Legion donor, CreatureType summon)private voiddisplayNoUndoWhilePendingMovesInfo()private voiddisposeBattleBoard()private voiddisposeCaretakerDisplay()private voiddisposeConnectionLogWindow()(package private) voiddisposeEngagementResults()private voiddisposeEventViewer()voiddisposeInspector()private voiddisposeLogWindow()private voiddisposeMasterBoard()private voiddisposeMovementDie()voiddisposePickCarryDialog()Dispose the PickCarryDialog, make sure that that is done inside the EDT (caused GUI to hang in 1.6.0_39 whereas in 1.6.0_38 it worked )-;private voiddisposePreferencesWindow()private voiddisposeStatusScreen()voiddoAcquireAngel(Legion legion, java.util.List<CreatureType> recruits)voiddoBattleMove(int tag, BattleHex hex)voiddoCleanupGUI()voiddoConfirmAndQuit()booleandoMove(MasterHex hex)private voiddoNewBattleBoard()voiddoneWithBattleMoves()voiddoneWithStrikes()voiddoPickCarries(Client client, int carryDamage, java.util.Set<java.lang.String> carryTargetDescriptions)voiddoPickColor(java.lang.String playerName, java.util.List<PlayerColor> colorsLeft)EntrySidedoPickEntrySide(MasterHex hex, java.util.Set<EntrySide> entrySides)voiddoPickInitialMarker(java.util.Set<java.lang.String> markersAvailable)CreatureTypedoPickLord(java.util.List<CreatureType> lords)CreatureTypedoPickRecruit(Legion legion, java.lang.String hexDescription)java.lang.StringdoPickRecruiter(java.util.List<java.lang.String> recruiters, java.lang.String hexDescription, Legion legion)java.util.List<CreatureType>doPickSplitLegion(Legion parent, java.lang.String childMarker)voiddoPickSplitMarker(Legion parent, java.util.Set<java.lang.String> markersAvailable)voiddoPickStrikePenalty(Client client, java.util.List<java.lang.String> choices)voiddoPickSummonAngel(Legion legion, java.util.List<Legion> possibleDonors)private voiddoSetWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext, boolean triggerQuitTimer)private voiddoSetWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext, java.lang.String loadFile)(package private) voiddoShowMessageDialog(java.lang.String message)voidengagementResultsMaybeShow()private voidensureEdtNewBattleBoard()private voidensureEdtSetupClientGUI()Ensure that setupClientGUI() is run inside the EDTvoideventViewerCancelReinforcement(CreatureType recruit, int turnNr)voideventViewerNewSplitEvent(int turn, Legion parent, Legion child)voideventViewerRevealCreatures(Legion legion, java.util.List<CreatureType> creatures, java.lang.String reason)voideventViewerSetCreatureDead(BattleUnit battleUnit)voideventViewerSetVisibleMaybe()voideventViewerUndoEvent(Legion splitoff, Legion survivor, int turn)private voidfinishServerConnectionCheck(boolean success)Cleanup everything related to the serverConnectionCheck timer, and show a message telling whether it went ok or not.private java.lang.StringgetBattleUnitDescription(BattleCritter battleUnit)MasterBoardgetBoard()GUICallbacksgetCallbackHandler()ClientgetClient()GamegetGame()GameClientSidegetGameClientSide()GUIBattleChitgetGUIBattleChit(BattleHex hex)java.util.List<GUIBattleChit>getGUIBattleChits()Get a list of all GUIBattleChits (on the current BattleMap)java.util.List<GUIBattleChit>getGUIBattleChitsInHex(BattleHex hex)Find all GUIBattleChits that occupy a specified hex Note that this can be several for the offboard position(s)intgetLegionMoveConfirmationMode()private javax.swing.JFramegetMapOrBoardFrame()(package private) java.lang.StringgetMessage()(package private) MovementDiegetMovementDie()LegiongetMover()intgetNextSplitClickMode()IOptionsgetOptions()IOraclegetOracle()PlayergetOwningPlayer()java.lang.StringgetOwningPlayerName()java.util.Set<MasterHex>getPendingMoveHexes()PickCarrygetPickCarryDialog()private javax.swing.JFramegetPreferredParent()intgetRecruitChitMode()booleangetStartedByWebClient()java.util.Set<MasterHex>getStillToMoveHexes()intgetViewMode()voidhandlePickCarry(GUIBattleHex hex)private voidhandleUndoRecruit(Legion legion)This does the actual work for undoing a recruitvoidhandleWebClientRestore()booleanhasBoard()(package private) voidhighlightBattleSite(MasterHex battleSite)voidhighlightCrittersWithTargets()voidhighlightEngagements()voidinformSplitRequiredFirstRound()voidinitBoard()private voidinitEventViewer()private voidinitiateConnectionCheck()private voidinitPreferencesWindow()voidinitShowEngagementResults()booleanisMyTurn()booleanisPickCarryOngoing()(package private) booleanisRedoOngoing()(package private) booleanisReplayOngoing()private booleanisUndoStackEmpty()voidleaveCarryMode()voidmakeBoardRecreateMarkers()voidmarkLegionAsSkipRecruit(Legion legion)TODO This is just a HACK.private voidmarkLegionAsSkipSplit(Legion legion)voidmenuCloseBoard()voidmenuLoadGame(java.lang.String filename)voidmenuNewGame()voidmenuQuitGame()(package private) voidmenuSaveGame(java.lang.String filename)private voidmyTurnNotificationActions(Legion ally)(package private) voidnegotiateCallback(Proposal proposal, boolean respawn)private java.lang.ObjectpopUndoStack()private voidpostRecruitStuff(Legion legion)Do what is needed after recruit (or mark as skip recruit): push to undo stack, update legions left to muster, hightlight remaining ones,(package private) voidpushUndoStack(java.lang.Object object)voidremoveBattleChit(BattleUnit battleUnit)voidrepaintAllWindows()voidrepaintBattleBoard()voidreplayTurnChange(int nowTurn)voidrescaleAllWindows()TODO since we are doing Swing nowadays it would probably be much better to replace all this rescaling code with just usingAffineTransformon the rightGraphics2Dinstances.voidresetAllLegionFlags()voidresetStrikeNumbers()reset all strike numbers on chitsvoidrespawnNegotiate()voidrevealEngagedCreatures(Legion legion, java.util.List<CreatureType> creatures, boolean isAttacker, java.lang.String reason)voidserverConfirmsConnection()Upon request with checkServerConnection, server sends a confirmation.voidsetBoardActive(boolean val)voidsetChosenDevice(java.awt.GraphicsDevice chosen)voidsetClientInWebClientNull()voidsetLookAndFeel(java.lang.String lfName)(package private) voidsetMarker(Legion legion, Marker marker)Add the marker to the end of the list and to the LegionInfo.voidsetMoveCompleted(Legion mover, MasterHex current, MasterHex target)voidsetMovePending(Legion mover, MasterHex currentHex, MasterHex targetHex)voidsetMover(Legion legion)voidsetMulliganOldRoll(int movementRoll)voidsetPreferencesCheckBoxValue(java.lang.String name, boolean value)voidsetPreferencesRadioButtonValue(java.lang.String name, boolean value)voidsetPreferencesWindowVisible(boolean val)voidsetStartedByWebClient(boolean byWebClient)voidsetStrikeNumbers(BattleUnit striker, java.util.Set<BattleHex> targetHexes)voidsetupClientGUI()Called via ensureEdtSetupClientGUI() when server sends all clients the initBoard command.private voidsetupGUIOptionListeners()private voidsetupPlayerLabel()voidsetWebClient(WebClient wc)private voidsetWhatToDoNextForClose()voidshowConcede(Client client, Legion ally, Legion enemy)voidshowConnectionClosedMessage()This is for permanent, non-reversible closed connectionsvoidshowFlee(Client client, Legion ally, Legion enemy)voidshowHexRecruitTree(GUIMasterHex hex)voidshowMarker(Marker marker)voidshowMessageDialogAndWait(java.lang.String message)voidshowNegotiate(Legion attacker, Legion defender)private voidshowOrHideAutoInspector(boolean bval)private voidshowOrHideCaretaker(boolean bval)private voidshowOrHideConnectionLogWindow(boolean show)private voidshowOrHideLogWindow(boolean show)voidshowWebClient()voidstrike(int tag, BattleHex hex)voidsyncCheckboxes()Ensure that Player menu checkboxes reflect the correct state.voidtellEngagement(Legion attacker, Legion defender, int turnNumber)voidtellProposal(java.lang.String proposalString)Inform this player about the other player's proposal.voidtellWhatsHappening(java.lang.String message)voidtimeoutAbortsConnectionCheck()Timeout reached.voidundoAllBattleMoves()voidundoAllMoves()voidundoAllRecruits()(package private) voidundoAllSplits()voidundoBattleMove(BattleHex hex)voidundoLastBattleMove()(package private) voidundoLastMove()(package private) voidundoLastRecruit()For the topmost item on undo stack, undo the done recruit, or reset the skipThisTime flag if set.(package private) voidundoLastSplit()voidundoRecruit(Legion legion)For a specific clicked legion, undo the done recruit, or reset the skipThisTime flag if set.voidupdateCreatureCountDisplay()voidupdateEverything()private voidupdatePendingText()voidupdateStatusScreen()private voidupdateTreeAndPack(java.awt.Window window)private voidvalidateLegions()voidwaitCursor()
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
CONN_CHECK_TIMEOUT
private static final int CONN_CHECK_TIMEOUT
- See Also:
- Constant Field Values
-
connectionCheckMutex
private final java.lang.Object connectionCheckMutex
-
connectionCheckTimer
private javax.swing.Timer connectionCheckTimer
-
lastConnectionCheckPackageSent
private long lastConnectionCheckPackageSent
-
board
private MasterBoard board
-
statusScreen
private StatusScreen statusScreen
-
caretakerDisplay
private CreatureCollectionView caretakerDisplay
-
movementDie
private MovementDie movementDie
-
engagementResults
private EngagementResults engagementResults
-
autoInspector
private AutoInspector autoInspector
-
eventViewer
private EventViewer eventViewer
-
preferencesWindow
private PreferencesWindow preferencesWindow
-
logWindow
private LogWindow logWindow
-
connectionLogWindow
private ConnectionLogWindow connectionLogWindow
-
pickCarryDialog
private PickCarry pickCarryDialog
-
negotiate
private Negotiate negotiate
-
replyToProposal
private ReplyToProposal replyToProposal
-
battleBoard
private BattleBoard battleBoard
-
webClient
private WebClient webClient
-
startedByWebClient
private boolean startedByWebClient
-
whatNextManager
private final WhatNextManager whatNextManager
The object which handles what to do next when a game is going to end
-
undoStack
private final java.util.LinkedList<java.lang.Object> undoStack
Stack of legion marker ID's, to allow multiple levels of undo for splits, moves, and recruits. (for battle actions, the Strings are not actually marker ID's, it's battle hex ID's there instead). TODO it would probably be good to have a full Command pattern here, similar to Swing'sUndoManagerstuff. In the GUI client we could/should probably just use that. A list of objects (which are mostly the string identifiers of something) isn't that safe.
-
pendingMoves
private final java.util.LinkedList<ClientGUI.PendingMove> pendingMoves
-
pendingMoveHexes
private final java.util.Set<MasterHex> pendingMoveHexes
-
recoveredFromMoveNak
private boolean recoveredFromMoveNak
-
battleChits
private final java.util.List<GUIBattleChit> battleChits
-
mover
private Legion mover
Information on the current moving legion.
-
secondaryParent
private javax.swing.JFrame secondaryParent
the parent frame for secondary windows
-
replayLastTurn
private int replayLastTurn
-
replayMaxTurn
private int replayMaxTurn
-
viewMode
private int viewMode
-
recruitChitMode
private int recruitChitMode
-
legionMoveConfirmationMode
private int legionMoveConfirmationMode
-
nextSplitClickMode
private int nextSplitClickMode
-
gameOverMessageAlreadyShown
private boolean gameOverMessageAlreadyShown
-
client
protected final Client client
-
oracle
protected final IOracle oracle
-
options
private final Options options
-
quitAlreadyTried
boolean quitAlreadyTried
-
tellEngagementResultsAttackerStartingContents
private java.util.List<java.lang.String> tellEngagementResultsAttackerStartingContents
-
tellEngagementResultsDefenderStartingContents
private java.util.List<java.lang.String> tellEngagementResultsDefenderStartingContents
-
tellEngagementResultsAttackerLegionCertainities
private java.util.List<java.lang.Boolean> tellEngagementResultsAttackerLegionCertainities
-
tellEngagementResultsDefenderLegionCertainities
private java.util.List<java.lang.Boolean> tellEngagementResultsDefenderLegionCertainities
-
message
java.lang.String message
-
-
Constructor Detail
-
ClientGUI
public ClientGUI(Client client, Options options, WhatNextManager whatNextMgr)
-
-
Method Detail
-
setStartedByWebClient
public void setStartedByWebClient(boolean byWebClient)
- Specified by:
setStartedByWebClientin interfaceIClientGUI
-
getStartedByWebClient
public boolean getStartedByWebClient()
-
setWebClient
public void setWebClient(WebClient wc)
- Specified by:
setWebClientin interfaceIClientGUI
-
setClientInWebClientNull
public void setClientInWebClientNull()
- Specified by:
setClientInWebClientNullin interfaceIClientGUI
-
getBoard
public MasterBoard getBoard()
-
hasBoard
public boolean hasBoard()
- Specified by:
hasBoardin interfaceIClientGUI
-
getClient
public Client getClient()
-
getOracle
public IOracle getOracle()
-
getGame
public Game getGame()
-
getGameClientSide
public GameClientSide getGameClientSide()
-
getOptions
public IOptions getOptions()
-
isReplayOngoing
boolean isReplayOngoing()
-
isRedoOngoing
boolean isRedoOngoing()
-
handleWebClientRestore
public void handleWebClientRestore()
- Specified by:
handleWebClientRestorein interfaceIClientGUI
-
showWebClient
public void showWebClient()
- Specified by:
showWebClientin interfaceIClientGUI
-
initBoard
public void initBoard()
- Specified by:
initBoardin interfaceIClientGUI
-
actOnGameStartingFailed
public void actOnGameStartingFailed()
- Specified by:
actOnGameStartingFailedin interfaceIClientGUI
-
ensureEdtSetupClientGUI
private void ensureEdtSetupClientGUI()
Ensure that setupClientGUI() is run inside the EDT
-
setupClientGUI
public void setupClientGUI()
Called via ensureEdtSetupClientGUI() when server sends all clients the initBoard command.
-
setChosenDevice
public void setChosenDevice(java.awt.GraphicsDevice chosen)
- Specified by:
setChosenDevicein interfaceIClientGUI
-
ensureEdtNewBattleBoard
private void ensureEdtNewBattleBoard()
-
actOnInitBattle
public void actOnInitBattle()
- Specified by:
actOnInitBattlein interfaceIClientGUI
-
doNewBattleBoard
private void doNewBattleBoard()
-
setStrikeNumbers
public void setStrikeNumbers(BattleUnit striker, java.util.Set<BattleHex> targetHexes)
-
resetStrikeNumbers
public void resetStrikeNumbers()
reset all strike numbers on chits- Specified by:
resetStrikeNumbersin interfaceIClientGUI
-
updateStatusScreen
public void updateStatusScreen()
- Specified by:
updateStatusScreenin interfaceIClientGUI
-
menuCloseBoard
public void menuCloseBoard()
- Specified by:
menuCloseBoardin interfaceIClientGUI
-
menuQuitGame
public void menuQuitGame()
- Specified by:
menuQuitGamein interfaceIClientGUI
-
askNewCloseQuitCancel
void askNewCloseQuitCancel(javax.swing.JFrame frame, boolean fromBattleBoard)
-
checkServerConnection
void checkServerConnection()
When user requests it from File menu, this method here requests the server to send us a confirmation package, to confirm that connection is still alive and ok.
-
initiateConnectionCheck
private void initiateConnectionCheck()
-
serverConfirmsConnection
public void serverConfirmsConnection()
Description copied from interface:IClientGUIUpon request with checkServerConnection, server sends a confirmation. This method here processes the confirmation.- Specified by:
serverConfirmsConnectionin interfaceIClientGUI
-
timeoutAbortsConnectionCheck
public void timeoutAbortsConnectionCheck()
Description copied from interface:IClientGUITimeout reached. Cancel timer and show error message- Specified by:
timeoutAbortsConnectionCheckin interfaceIClientGUI
-
finishServerConnectionCheck
private void finishServerConnectionCheck(boolean success)
Cleanup everything related to the serverConnectionCheck timer, and show a message telling whether it went ok or not. Called by either serverConfirmsConnection() or timeoutAbortsConnectionCheck(), which both synchronize on the connectionCheckMutex.
-
doSetWhatToDoNext
private void doSetWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext, boolean triggerQuitTimer)
-
doSetWhatToDoNext
private void doSetWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext, java.lang.String loadFile)
-
setWhatToDoNextForClose
private void setWhatToDoNextForClose()
-
menuNewGame
public void menuNewGame()
- Specified by:
menuNewGamein interfaceIClientGUI
-
menuLoadGame
public void menuLoadGame(java.lang.String filename)
- Specified by:
menuLoadGamein interfaceIClientGUI
-
menuSaveGame
void menuSaveGame(java.lang.String filename)
-
setupPlayerLabel
private void setupPlayerLabel()
-
highlightEngagements
public void highlightEngagements()
- Specified by:
highlightEngagementsin interfaceIClientGUI
-
getPreferredParent
private javax.swing.JFrame getPreferredParent()
-
getViewMode
public int getViewMode()
- Specified by:
getViewModein interfaceIClientGUI
-
getRecruitChitMode
public int getRecruitChitMode()
- Specified by:
getRecruitChitModein interfaceIClientGUI
-
getLegionMoveConfirmationMode
public int getLegionMoveConfirmationMode()
- Specified by:
getLegionMoveConfirmationModein interfaceIClientGUI
-
getNextSplitClickMode
public int getNextSplitClickMode()
- Specified by:
getNextSplitClickModein interfaceIClientGUI
-
addPossibleRecruitChits
public void addPossibleRecruitChits(LegionClientSide legion, java.util.Set<MasterHex> hexes)
- Specified by:
addPossibleRecruitChitsin interfaceIClientGUI
-
setupGUIOptionListeners
private void setupGUIOptionListeners()
-
initEventViewer
private void initEventViewer()
-
eventViewerSetVisibleMaybe
public void eventViewerSetVisibleMaybe()
- Specified by:
eventViewerSetVisibleMaybein interfaceIClientGUI
-
autoInspectorSetDubiousAsBlanks
public void autoInspectorSetDubiousAsBlanks(boolean newValue)
- Specified by:
autoInspectorSetDubiousAsBlanksin interfaceIClientGUI
-
engagementResultsMaybeShow
public void engagementResultsMaybeShow()
- Specified by:
engagementResultsMaybeShowin interfaceIClientGUI
-
actOnTellLegionLocation
public void actOnTellLegionLocation(Legion legion, MasterHex hex)
- Specified by:
actOnTellLegionLocationin interfaceIClientGUI
-
setMarker
void setMarker(Legion legion, Marker marker)
Add the marker to the end of the list and to the LegionInfo. If it's already in the list, remove the earlier entry.
-
actOnDidSplit
public void actOnDidSplit(int turn, Legion parent, Legion child, MasterHex hex)- Specified by:
actOnDidSplitin interfaceIClientGUI
-
actOnDidSplitPart2
public void actOnDidSplitPart2(MasterHex hex)
- Specified by:
actOnDidSplitPart2in interfaceIClientGUI
-
actOnDoneWithMoves
public void actOnDoneWithMoves()
- Specified by:
actOnDoneWithMovesin interfaceIClientGUI
-
actOnDoneWithSplits
public void actOnDoneWithSplits()
- Specified by:
actOnDoneWithSplitsin interfaceIClientGUI
-
actOnDidRecruit
public void actOnDidRecruit(Legion legion, CreatureType recruit, java.util.List<CreatureType> recruiters, java.lang.String reason)
- Specified by:
actOnDidRecruitin interfaceIClientGUI
-
postRecruitStuff
private void postRecruitStuff(Legion legion)
Do what is needed after recruit (or mark as skip recruit): push to undo stack, update legions left to muster, hightlight remaining ones,- Parameters:
legion-
-
actOnRemoveCreature
public void actOnRemoveCreature(Legion legion, CreatureType type, java.lang.String reason)
- Specified by:
actOnRemoveCreaturein interfaceIClientGUI
-
actOnRemoveCreaturePart2
public void actOnRemoveCreaturePart2(Legion legion)
- Specified by:
actOnRemoveCreaturePart2in interfaceIClientGUI
-
actOnAddCreature
public void actOnAddCreature(Legion legion, CreatureType creature, java.lang.String reason)
- Specified by:
actOnAddCreaturein interfaceIClientGUI
-
actOnUndidSplit
public void actOnUndidSplit(Legion survivor, int turn)
- Specified by:
actOnUndidSplitin interfaceIClientGUI
-
actOnUndidRecruitPart
public void actOnUndidRecruitPart(Legion legion, boolean wasReinforcement, int turnNumber)
- Specified by:
actOnUndidRecruitPartin interfaceIClientGUI
-
chooseWhetherToTeleport
public boolean chooseWhetherToTeleport()
Description copied from interface:IClientGUIPresent a dialog allowing the player to enter via land or teleport. Return true if the player chooses to teleport.- Specified by:
chooseWhetherToTeleportin interfaceIClientGUI
-
actOnDidMove
public void actOnDidMove(Legion legion, MasterHex startingHex, MasterHex currentHex, boolean teleport, CreatureType teleportingLord, boolean splitLegionHasForcedMove)
- Specified by:
actOnDidMovein interfaceIClientGUI
-
actOnUndidMove
public void actOnUndidMove(Legion legion, MasterHex formerHex, MasterHex currentHex, boolean splitLegionHasForcedMove, boolean didTeleport)
- Specified by:
actOnUndidMovein interfaceIClientGUI
-
actOnNoMoreEngagements
public void actOnNoMoreEngagements()
- Specified by:
actOnNoMoreEngagementsin interfaceIClientGUI
-
alignLegionsMaybe
public void alignLegionsMaybe(Legion legion)
- Specified by:
alignLegionsMaybein interfaceIClientGUI
-
actOnRemoveLegion
public void actOnRemoveLegion(Legion legion)
- Specified by:
actOnRemoveLegionin interfaceIClientGUI
-
actOnDoSummon
public void actOnDoSummon()
- Specified by:
actOnDoSummonin interfaceIClientGUI
-
setLookAndFeel
public void setLookAndFeel(java.lang.String lfName)
- Specified by:
setLookAndFeelin interfaceIClientGUI
-
updateEverything
public void updateEverything()
- Specified by:
updateEverythingin interfaceIClientGUI
-
updateTreeAndPack
private void updateTreeAndPack(java.awt.Window window)
-
replayTurnChange
public void replayTurnChange(int nowTurn)
- Specified by:
replayTurnChangein interfaceIClientGUI
-
actOnTellReplay
public void actOnTellReplay(int maxTurn)
- Specified by:
actOnTellReplayin interfaceIClientGUI
-
makeBoardRecreateMarkers
public void makeBoardRecreateMarkers()
-
actOnTellRedoChange
public void actOnTellRedoChange()
- Specified by:
actOnTellRedoChangein interfaceIClientGUI
-
clearUndoStack
private void clearUndoStack()
-
popUndoStack
private java.lang.Object popUndoStack()
-
pushUndoStack
void pushUndoStack(java.lang.Object object)
-
isUndoStackEmpty
private boolean isUndoStackEmpty()
-
eventViewerCancelReinforcement
public void eventViewerCancelReinforcement(CreatureType recruit, int turnNr)
- Specified by:
eventViewerCancelReinforcementin interfaceIClientGUI
-
eventViewerSetCreatureDead
public void eventViewerSetCreatureDead(BattleUnit battleUnit)
- Specified by:
eventViewerSetCreatureDeadin interfaceIClientGUI
-
eventViewerNewSplitEvent
public void eventViewerNewSplitEvent(int turn, Legion parent, Legion child)- Specified by:
eventViewerNewSplitEventin interfaceIClientGUI
-
eventViewerUndoEvent
public void eventViewerUndoEvent(Legion splitoff, Legion survivor, int turn)
- Specified by:
eventViewerUndoEventin interfaceIClientGUI
-
setPreferencesCheckBoxValue
public void setPreferencesCheckBoxValue(java.lang.String name, boolean value)- Specified by:
setPreferencesCheckBoxValuein interfaceIClientGUI
-
setPreferencesRadioButtonValue
public void setPreferencesRadioButtonValue(java.lang.String name, boolean value)- Specified by:
setPreferencesRadioButtonValuein interfaceIClientGUI
-
initPreferencesWindow
private void initPreferencesWindow()
-
setPreferencesWindowVisible
public void setPreferencesWindowVisible(boolean val)
- Specified by:
setPreferencesWindowVisiblein interfaceIClientGUI
-
showMarker
public void showMarker(Marker marker)
-
showOrHideCaretaker
private void showOrHideCaretaker(boolean bval)
-
showOrHideAutoInspector
private void showOrHideAutoInspector(boolean bval)
-
showHexRecruitTree
public void showHexRecruitTree(GUIMasterHex hex)
-
didSummon
public void didSummon(Legion summoner, Legion donor, CreatureType summon)
- Specified by:
didSummonin interfaceIClientGUI
-
repaintBattleBoard
public void repaintBattleBoard()
- Specified by:
repaintBattleBoardin interfaceIClientGUI
-
repaintAllWindows
public void repaintAllWindows()
- Specified by:
repaintAllWindowsin interfaceIClientGUI
-
rescaleAllWindows
public void rescaleAllWindows()
Description copied from interface:IClientGUITODO since we are doing Swing nowadays it would probably be much better to replace all this rescaling code with just usingAffineTransformon the rightGraphics2Dinstances.- Specified by:
rescaleAllWindowsin interfaceIClientGUI
-
disposeInspector
public void disposeInspector()
- Specified by:
disposeInspectorin interfaceIClientGUI
-
updateCreatureCountDisplay
public void updateCreatureCountDisplay()
- Specified by:
updateCreatureCountDisplayin interfaceIClientGUI
-
disposeMasterBoard
private void disposeMasterBoard()
-
disposeBattleBoard
private void disposeBattleBoard()
-
disposePickCarryDialog
public void disposePickCarryDialog()
Dispose the PickCarryDialog, make sure that that is done inside the EDT (caused GUI to hang in 1.6.0_39 whereas in 1.6.0_38 it worked )-;- Specified by:
disposePickCarryDialogin interfaceIClientGUI
-
actualDisposePickCarryDialog
public void actualDisposePickCarryDialog()
-
disposeStatusScreen
private void disposeStatusScreen()
-
disposeLogWindow
private void disposeLogWindow()
-
disposeConnectionLogWindow
private void disposeConnectionLogWindow()
-
disposeEventViewer
private void disposeEventViewer()
-
disposePreferencesWindow
private void disposePreferencesWindow()
-
disposeEngagementResults
void disposeEngagementResults()
-
disposeCaretakerDisplay
private void disposeCaretakerDisplay()
-
showNegotiate
public void showNegotiate(Legion attacker, Legion defender)
- Specified by:
showNegotiatein interfaceIClientGUI
-
respawnNegotiate
public void respawnNegotiate()
- Specified by:
respawnNegotiatein interfaceIClientGUI
-
showConcede
public void showConcede(Client client, Legion ally, Legion enemy)
- Specified by:
showConcedein interfaceIClientGUI
-
showFlee
public void showFlee(Client client, Legion ally, Legion enemy)
- Specified by:
showFleein interfaceIClientGUI
-
myTurnNotificationActions
private void myTurnNotificationActions(Legion ally)
-
initShowEngagementResults
public void initShowEngagementResults()
- Specified by:
initShowEngagementResultsin interfaceIClientGUI
-
tellEngagement
public void tellEngagement(Legion attacker, Legion defender, int turnNumber)
- Specified by:
tellEngagementin interfaceIClientGUI
-
highlightBattleSite
void highlightBattleSite(MasterHex battleSite)
-
actOnTellEngagementResults
public void actOnTellEngagementResults(Legion winner, java.lang.String method, int points, int turns)
- Specified by:
actOnTellEngagementResultsin interfaceIClientGUI
-
actOnEngagementCompleted
public void actOnEngagementCompleted()
- Specified by:
actOnEngagementCompletedin interfaceIClientGUI
-
setMulliganOldRoll
public void setMulliganOldRoll(int movementRoll)
- Specified by:
setMulliganOldRollin interfaceIClientGUI
-
tellWhatsHappening
public void tellWhatsHappening(java.lang.String message)
- Specified by:
tellWhatsHappeningin interfaceIClientGUI
-
actOnTellMovementRoll
public void actOnTellMovementRoll(int roll)
- Specified by:
actOnTellMovementRollin interfaceIClientGUI
-
revealEngagedCreatures
public void revealEngagedCreatures(Legion legion, java.util.List<CreatureType> creatures, boolean isAttacker, java.lang.String reason)
- Specified by:
revealEngagedCreaturesin interfaceIClientGUI
-
eventViewerRevealCreatures
public void eventViewerRevealCreatures(Legion legion, java.util.List<CreatureType> creatures, java.lang.String reason)
- Specified by:
eventViewerRevealCreaturesin interfaceIClientGUI
-
showOrHideLogWindow
private void showOrHideLogWindow(boolean show)
-
showOrHideConnectionLogWindow
private void showOrHideConnectionLogWindow(boolean show)
-
appendToConnectionLog
public void appendToConnectionLog(java.lang.String s)
- Specified by:
appendToConnectionLogin interfaceIClientGUI
-
actOnReconnectCompleted
public void actOnReconnectCompleted()
- Specified by:
actOnReconnectCompletedin interfaceIClientGUI
-
syncCheckboxes
public void syncCheckboxes()
Ensure that Player menu checkboxes reflect the correct state. Copied the TODO below from the interface where it's now removed... TODO let the checkboxes have their own listeners instead. Or even better: use a binding framework.
-
doAcquireAngel
public void doAcquireAngel(Legion legion, java.util.List<CreatureType> recruits)
- Specified by:
doAcquireAngelin interfaceIClientGUI
-
setBoardActive
public void setBoardActive(boolean val)
- Specified by:
setBoardActivein interfaceIClientGUI
-
doPickSummonAngel
public void doPickSummonAngel(Legion legion, java.util.List<Legion> possibleDonors)
- Specified by:
doPickSummonAngelin interfaceIClientGUI
-
doPickSplitLegion
public java.util.List<CreatureType> doPickSplitLegion(Legion parent, java.lang.String childMarker)
- Specified by:
doPickSplitLegionin interfaceIClientGUI
-
markLegionAsSkipSplit
private void markLegionAsSkipSplit(Legion legion)
-
resetAllLegionFlags
public void resetAllLegionFlags()
-
isPickCarryOngoing
public boolean isPickCarryOngoing()
- Specified by:
isPickCarryOngoingin interfaceIClientGUI
-
doPickCarries
public void doPickCarries(Client client, int carryDamage, java.util.Set<java.lang.String> carryTargetDescriptions)
- Specified by:
doPickCarriesin interfaceIClientGUI
-
getPickCarryDialog
public PickCarry getPickCarryDialog()
-
handlePickCarry
public void handlePickCarry(GUIBattleHex hex)
-
doPickColor
public void doPickColor(java.lang.String playerName, java.util.List<PlayerColor> colorsLeft)- Specified by:
doPickColorin interfaceIClientGUI
-
bringUpPickColorDialog
public void bringUpPickColorDialog(java.lang.String playerName, java.util.List<PlayerColor> colorsLeft)
-
doPickSplitMarker
public void doPickSplitMarker(Legion parent, java.util.Set<java.lang.String> markersAvailable)
- Specified by:
doPickSplitMarkerin interfaceIClientGUI
-
doPickInitialMarker
public void doPickInitialMarker(java.util.Set<java.lang.String> markersAvailable)
- Specified by:
doPickInitialMarkerin interfaceIClientGUI
-
createPickMarkerDialog
public void createPickMarkerDialog(ClientGUI gui, java.util.Set<java.lang.String> markerIds, Legion parent)
-
doPickRecruit
public CreatureType doPickRecruit(Legion legion, java.lang.String hexDescription)
- Specified by:
doPickRecruitin interfaceIClientGUI
-
markLegionAsSkipRecruit
public void markLegionAsSkipRecruit(Legion legion)
TODO This is just a HACK. PickRecruit calls this to mark a legion as that user wants to not recruit anything this turn. Better would be, if that dialog could return a "NONE" CreatureType and the caller does the work cleanly... (postponed for now because the NONE-CreatureType would be so much work right now...)- Parameters:
legion-
-
doPickRecruiter
public java.lang.String doPickRecruiter(java.util.List<java.lang.String> recruiters, java.lang.String hexDescription, Legion legion)- Specified by:
doPickRecruiterin interfaceIClientGUI
-
doPickEntrySide
public EntrySide doPickEntrySide(MasterHex hex, java.util.Set<EntrySide> entrySides)
- Specified by:
doPickEntrySidein interfaceIClientGUI
-
doPickLord
public CreatureType doPickLord(java.util.List<CreatureType> lords)
- Specified by:
doPickLordin interfaceIClientGUI
-
doPickStrikePenalty
public void doPickStrikePenalty(Client client, java.util.List<java.lang.String> choices)
- Specified by:
doPickStrikePenaltyin interfaceIClientGUI
-
tellProposal
public void tellProposal(java.lang.String proposalString)
Description copied from interface:IClientGUIInform this player about the other player's proposal.- Specified by:
tellProposalin interfaceIClientGUI
-
cleanupNegotiationDialogs
public void cleanupNegotiationDialogs()
- Specified by:
cleanupNegotiationDialogsin interfaceIClientGUI
-
actOnTurnOrPlayerChange
public void actOnTurnOrPlayerChange(Client client, int turnNr, Player player)
- Specified by:
actOnTurnOrPlayerChangein interfaceIClientGUI
-
actOnGameStarting
public void actOnGameStarting()
- Specified by:
actOnGameStartingin interfaceIClientGUI
-
actOnSetupSplit
public void actOnSetupSplit()
- Specified by:
actOnSetupSplitin interfaceIClientGUI
-
validateLegions
private void validateLegions()
-
actOnSetupMuster
public void actOnSetupMuster()
- Specified by:
actOnSetupMusterin interfaceIClientGUI
-
actOnSetupMove
public void actOnSetupMove()
- Specified by:
actOnSetupMovein interfaceIClientGUI
-
actOnSetupFight
public void actOnSetupFight()
- Specified by:
actOnSetupFightin interfaceIClientGUI
-
actOnSetupBattleFight
public void actOnSetupBattleFight()
- Specified by:
actOnSetupBattleFightin interfaceIClientGUI
-
actOnSetupBattleMove
public void actOnSetupBattleMove()
- Specified by:
actOnSetupBattleMovein interfaceIClientGUI
-
actOnTellBattleMove
public void actOnTellBattleMove(BattleHex startingHex, BattleHex endingHex, boolean rememberForUndo)
- Specified by:
actOnTellBattleMovein interfaceIClientGUI
-
actOnPendingBattleMoveOver
public void actOnPendingBattleMoveOver()
- Specified by:
actOnPendingBattleMoveOverin interfaceIClientGUI
-
actOnDoneWithBattleMoves
public void actOnDoneWithBattleMoves()
- Specified by:
actOnDoneWithBattleMovesin interfaceIClientGUI
-
actOnSetupBattleRecruit
public void actOnSetupBattleRecruit()
- Specified by:
actOnSetupBattleRecruitin interfaceIClientGUI
-
actOnSetupBattleSummon
public void actOnSetupBattleSummon()
- Specified by:
actOnSetupBattleSummonin interfaceIClientGUI
-
addBattleChit
private void addBattleChit(GUIBattleChit battleChit)
-
getGUIBattleChits
public java.util.List<GUIBattleChit> getGUIBattleChits()
Get a list of all GUIBattleChits (on the current BattleMap)- Returns:
- The list of GUIBattleChits
-
getGUIBattleChitsInHex
public java.util.List<GUIBattleChit> getGUIBattleChitsInHex(BattleHex hex)
Find all GUIBattleChits that occupy a specified hex Note that this can be several for the offboard position(s)- Parameters:
hex- The hex to give Chits for- Returns:
- A List of GUIBattleChits
-
getGUIBattleChit
public GUIBattleChit getGUIBattleChit(BattleHex hex)
-
actOnPlaceNewChit
public void actOnPlaceNewChit(java.lang.String imageName, BattleUnit battleUnit, BattleHex hex)- Specified by:
actOnPlaceNewChitin interfaceIClientGUI
-
getBattleUnitDescription
private java.lang.String getBattleUnitDescription(BattleCritter battleUnit)
-
actOnTellStrikeResults
public void actOnTellStrikeResults(boolean wasCarry, int strikeNumber, java.util.List<java.lang.String> rolls, BattleCritter striker, BattleCritter target)- Specified by:
actOnTellStrikeResultsin interfaceIClientGUI
-
actOnHitsSet
public void actOnHitsSet(BattleUnit target)
- Specified by:
actOnHitsSetin interfaceIClientGUI
-
highlightCrittersWithTargets
public void highlightCrittersWithTargets()
- Specified by:
highlightCrittersWithTargetsin interfaceIClientGUI
-
actOnApplyCarries
public void actOnApplyCarries(BattleHex hex)
- Specified by:
actOnApplyCarriesin interfaceIClientGUI
-
actOnCleanupBattle
public void actOnCleanupBattle()
- Specified by:
actOnCleanupBattlein interfaceIClientGUI
-
undoLastRecruit
void undoLastRecruit()
For the topmost item on undo stack, undo the done recruit, or reset the skipThisTime flag if set.
-
undoRecruit
public void undoRecruit(Legion legion)
For a specific clicked legion, undo the done recruit, or reset the skipThisTime flag if set.- Specified by:
undoRecruitin interfaceIClientGUI- Parameters:
legion- The legion for which to undo the recruit
-
handleUndoRecruit
private void handleUndoRecruit(Legion legion)
This does the actual work for undoing a recruit- Parameters:
legion- The legion for which to undo the recruit
-
undoAllSplits
void undoAllSplits()
-
undoLastSplit
void undoLastSplit()
-
informSplitRequiredFirstRound
public void informSplitRequiredFirstRound()
- Specified by:
informSplitRequiredFirstRoundin interfaceIClientGUI
-
undoLastMove
void undoLastMove()
-
undoLastBattleMove
public void undoLastBattleMove()
- Specified by:
undoLastBattleMovein interfaceIClientGUI
-
undoAllBattleMoves
public void undoAllBattleMoves()
- Specified by:
undoAllBattleMovesin interfaceIClientGUI
-
undoAllMoves
public void undoAllMoves()
- Specified by:
undoAllMovesin interfaceIClientGUI
-
undoAllRecruits
public void undoAllRecruits()
- Specified by:
undoAllRecruitsin interfaceIClientGUI
-
displayNoUndoWhilePendingMovesInfo
private void displayNoUndoWhilePendingMovesInfo()
-
defaultCursor
public void defaultCursor()
- Specified by:
defaultCursorin interfaceIClientGUI
-
waitCursor
public void waitCursor()
- Specified by:
waitCursorin interfaceIClientGUI
-
doCleanupGUI
public void doCleanupGUI()
- Specified by:
doCleanupGUIin interfaceIClientGUI
-
disposeMovementDie
private void disposeMovementDie()
-
getMovementDie
MovementDie getMovementDie()
-
cleanupGUI
private void cleanupGUI()
-
actOnTellGameOver
public void actOnTellGameOver(java.lang.String message, boolean disposeFollows)Update Board and Status screen to reflect the new game over state. Show the game over message, or store it to be shown later. If dispose will follow soon, don't show message immediately (to avoid having the user to have click two boxes), instead store it for later to be shown then together with the dispose dialog.- Specified by:
actOnTellGameOverin interfaceIClientGUI- Parameters:
message- The message ("XXXX wins", or "Draw")disposeFollows- If true, server will send a dispose message soon
-
getMessage
java.lang.String getMessage()
-
showMessageDialogAndWait
public void showMessageDialogAndWait(java.lang.String message)
- Specified by:
showMessageDialogAndWaitin interfaceIClientGUI
-
doShowMessageDialog
void doShowMessageDialog(java.lang.String message)
-
doConfirmAndQuit
public void doConfirmAndQuit()
- Specified by:
doConfirmAndQuitin interfaceIClientGUI
-
showConnectionClosedMessage
public void showConnectionClosedMessage()
This is for permanent, non-reversible closed connections- Specified by:
showConnectionClosedMessagein interfaceIClientGUI
-
getMapOrBoardFrame
private javax.swing.JFrame getMapOrBoardFrame()
-
negotiateCallback
void negotiateCallback(Proposal proposal, boolean respawn)
-
getOwningPlayer
public Player getOwningPlayer()
-
getOwningPlayerName
public java.lang.String getOwningPlayerName()
-
isMyTurn
public boolean isMyTurn()
-
getMover
public Legion getMover()
-
setMover
public void setMover(Legion legion)
-
doMove
public boolean doMove(MasterHex hex)
-
actOnMoveNak
public void actOnMoveNak()
- Specified by:
actOnMoveNakin interfaceIClientGUI
-
setMovePending
public void setMovePending(Legion mover, MasterHex currentHex, MasterHex targetHex)
- Specified by:
setMovePendingin interfaceIClientGUI
-
updatePendingText
private void updatePendingText()
-
getPendingMoveHexes
public java.util.Set<MasterHex> getPendingMoveHexes()
-
getStillToMoveHexes
public java.util.Set<MasterHex> getStillToMoveHexes()
-
setMoveCompleted
public void setMoveCompleted(Legion mover, MasterHex current, MasterHex target)
- Specified by:
setMoveCompletedin interfaceIClientGUI
-
removeBattleChit
public void removeBattleChit(BattleUnit battleUnit)
- Specified by:
removeBattleChitin interfaceIClientGUI
-
getCallbackHandler
public GUICallbacks getCallbackHandler()
-
answerPickColor
public void answerPickColor(PlayerColor color)
-
leaveCarryMode
public void leaveCarryMode()
- Specified by:
leaveCarryModein interfaceGUICallbacks
-
applyCarries
public void applyCarries(BattleHex hex)
- Specified by:
applyCarriesin interfaceGUICallbacks
-
acquireAngelCallback
public void acquireAngelCallback(Legion legion, CreatureType angelType)
- Specified by:
acquireAngelCallbackin interfaceGUICallbacks
-
answerFlee
public void answerFlee(Legion ally, boolean answer)
- Specified by:
answerFleein interfaceGUICallbacks
-
answerConcede
public void answerConcede(Legion legion, boolean answer)
- Specified by:
answerConcedein interfaceGUICallbacks
-
doBattleMove
public void doBattleMove(int tag, BattleHex hex)- Specified by:
doBattleMovein interfaceGUICallbacks
-
undoBattleMove
public void undoBattleMove(BattleHex hex)
- Specified by:
undoBattleMovein interfaceGUICallbacks
-
strike
public void strike(int tag, BattleHex hex)- Specified by:
strikein interfaceGUICallbacks
-
doneWithBattleMoves
public void doneWithBattleMoves()
- Specified by:
doneWithBattleMovesin interfaceGUICallbacks
-
doneWithStrikes
public void doneWithStrikes()
- Specified by:
doneWithStrikesin interfaceGUICallbacks
-
concede
public void concede()
- Specified by:
concedein interfaceGUICallbacks
-
-