Interface IClientGUI

All Known Implementing Classes:
ClientGUI, NullClientGUI

public interface IClientGUI
  • Method Details

    • setStartedByWebClient

      void setStartedByWebClient(boolean byWebClient)
    • setWebClient

      void setWebClient(WebClient wc)
    • setClientInWebClientNull

      void setClientInWebClientNull()
    • handleWebClientRestore

      void handleWebClientRestore()
    • showWebClient

      void showWebClient()
    • initBoard

      void initBoard()
    • hasBoard

      boolean hasBoard()
    • actOnInitBattle

      void actOnInitBattle()
    • updateStatusScreen

      void updateStatusScreen()
    • serverConfirmsConnection

      void serverConfirmsConnection()
      Upon request with checkServerConnection, server sends a confirmation. This method here processes the confirmation.
    • timeoutAbortsConnectionCheck

      void timeoutAbortsConnectionCheck()
      Timeout reached. Cancel timer and show error message
    • highlightEngagements

      void highlightEngagements()
    • getViewMode

      int getViewMode()
    • getRecruitChitMode

      int getRecruitChitMode()
    • getLegionMoveConfirmationMode

      int getLegionMoveConfirmationMode()
    • getNextSplitClickMode

      int getNextSplitClickMode()
    • addPossibleRecruitChits

      void addPossibleRecruitChits(LegionClientSide legion, Set<MasterHex> hexes)
    • eventViewerSetVisibleMaybe

      void eventViewerSetVisibleMaybe()
    • autoInspectorSetDubiousAsBlanks

      void autoInspectorSetDubiousAsBlanks(boolean newValue)
    • engagementResultsMaybeShow

      void engagementResultsMaybeShow()
    • actOnTellLegionLocation

      void actOnTellLegionLocation(Legion legion, MasterHex hex)
    • actOnDidSplit

      void actOnDidSplit(int turn, Legion parent, Legion child, MasterHex hex)
    • actOnDidSplitPart2

      void actOnDidSplitPart2(MasterHex hex)
    • actOnDoneWithMoves

      void actOnDoneWithMoves()
    • actOnDoneWithSplits

      void actOnDoneWithSplits()
    • actOnDidRecruit

      void actOnDidRecruit(Legion legion, CreatureType recruitName, List<CreatureType> recruiters, String reason)
    • actOnRemoveCreature

      void actOnRemoveCreature(Legion legion, CreatureType type, String reason)
    • actOnRemoveCreaturePart2

      void actOnRemoveCreaturePart2(Legion legion)
    • actOnAddCreature

      void actOnAddCreature(Legion legion, CreatureType type, String reason)
    • actOnUndidSplit

      void actOnUndidSplit(Legion survivor, int turn)
    • actOnUndidRecruitPart

      void actOnUndidRecruitPart(Legion legion, boolean wasReinforcement, int turnNumber)
    • chooseWhetherToTeleport

      boolean chooseWhetherToTeleport()
      Present a dialog allowing the player to enter via land or teleport. Return true if the player chooses to teleport.
    • actOnDidMove

      void actOnDidMove(Legion legion, MasterHex startingHex, MasterHex currentHex, boolean teleport, CreatureType teleportingLord, boolean splitLegionHasForcedMove)
    • actOnMoveNak

      void actOnMoveNak()
    • actOnUndidMove

      void actOnUndidMove(Legion legion, MasterHex formerHex, MasterHex currentHex, boolean splitLegionHasForcedMove, boolean didTeleport)
    • actOnNoMoreEngagements

      void actOnNoMoreEngagements()
    • alignLegionsMaybe

      void alignLegionsMaybe(Legion legion)
    • actOnRemoveLegion

      void actOnRemoveLegion(Legion legion)
    • actOnDoSummon

      void actOnDoSummon()
    • updateEverything

      void updateEverything()
    • replayTurnChange

      void replayTurnChange(int nowTurn)
    • actOnTellReplay

      void actOnTellReplay(int maxTurn)
    • actOnTellRedoChange

      void actOnTellRedoChange()
    • eventViewerCancelReinforcement

      void eventViewerCancelReinforcement(CreatureType recruit, int turnNr)
    • eventViewerSetCreatureDead

      void eventViewerSetCreatureDead(BattleUnit battleUnit)
    • eventViewerNewSplitEvent

      void eventViewerNewSplitEvent(int turn, Legion parent, Legion child)
    • eventViewerUndoEvent

      void eventViewerUndoEvent(Legion splitoff, Legion survivor, int turn)
    • setPreferencesWindowVisible

      void setPreferencesWindowVisible(boolean val)
    • didSummon

      void didSummon(Legion summoner, Legion donor, CreatureType summon)
    • repaintBattleBoard

      void repaintBattleBoard()
    • repaintAllWindows

      void repaintAllWindows()
    • rescaleAllWindows

      void rescaleAllWindows()
      TODO since we are doing Swing nowadays it would probably be much better to replace all this rescaling code with just using AffineTransform on the right Graphics2D instances.
    • disposeInspector

      void disposeInspector()
    • updateCreatureCountDisplay

      void updateCreatureCountDisplay()
    • disposePickCarryDialog

      void disposePickCarryDialog()
    • showNegotiate

      void showNegotiate(Legion attacker, Legion defender)
    • respawnNegotiate

      void respawnNegotiate()
    • showConcede

      void showConcede(Client client, Legion ally, Legion enemy)
    • showFlee

      void showFlee(Client client, Legion ally, Legion enemy)
    • initShowEngagementResults

      void initShowEngagementResults()
    • tellEngagement

      void tellEngagement(Legion attacker, Legion defender, int turnNumber)
    • actOnTellEngagementResults

      void actOnTellEngagementResults(Legion winner, String method, int points, int turns)
    • actOnEngagementCompleted

      void actOnEngagementCompleted()
    • setMulliganOldRoll

      void setMulliganOldRoll(int movementRoll)
    • tellWhatsHappening

      void tellWhatsHappening(String message)
    • actOnTellMovementRoll

      void actOnTellMovementRoll(int roll)
    • revealEngagedCreatures

      void revealEngagedCreatures(Legion legion, List<CreatureType> creatures, boolean isAttacker, String reason)
    • eventViewerRevealCreatures

      void eventViewerRevealCreatures(Legion legion, List<CreatureType> creatures, String reason)
    • doAcquireAngel

      void doAcquireAngel(Legion legion, List<CreatureType> recruits)
    • setBoardActive

      void setBoardActive(boolean val)
    • doPickSummonAngel

      void doPickSummonAngel(Legion legion, List<Legion> possibleDonors)
    • doPickSplitLegion

      List<CreatureType> doPickSplitLegion(Legion parent, String childMarker)
    • doPickCarries

      void doPickCarries(Client client, int carryDamage, Set<String> carryTargetDescriptions)
    • isPickCarryOngoing

      boolean isPickCarryOngoing()
    • doPickColor

      void doPickColor(String playerName, List<PlayerColor> colorsLeft)
    • doPickInitialMarker

      void doPickInitialMarker(Set<String> markersAvailable)
    • doPickSplitMarker

      void doPickSplitMarker(Legion parent, Set<String> markersAvailable)
    • doPickRecruit

      CreatureType doPickRecruit(Legion legion, String hexDescription)
    • doPickRecruiter

      String doPickRecruiter(List<String> recruiters, String hexDescription, Legion legion)
    • doPickEntrySide

      EntrySide doPickEntrySide(MasterHex hex, Set<EntrySide> entrySides)
    • doPickLord

      CreatureType doPickLord(List<CreatureType> lords)
    • doPickStrikePenalty

      void doPickStrikePenalty(Client client, List<String> choices)
    • tellProposal

      void tellProposal(String proposalString)
      Inform this player about the other player's proposal.
    • cleanupNegotiationDialogs

      void cleanupNegotiationDialogs()
    • actOnTurnOrPlayerChange

      void actOnTurnOrPlayerChange(Client c, int turnNr, Player p)
    • actOnGameStarting

      void actOnGameStarting()
    • actOnSetupSplit

      void actOnSetupSplit()
    • actOnSetupMuster

      void actOnSetupMuster()
    • actOnSetupMove

      void actOnSetupMove()
    • actOnSetupFight

      void actOnSetupFight()
    • actOnSetupBattleFight

      void actOnSetupBattleFight()
    • actOnSetupBattleMove

      void actOnSetupBattleMove()
    • actOnTellBattleMove

      void actOnTellBattleMove(BattleHex startingHex, BattleHex endingHex, boolean rememberForUndo)
    • actOnPendingBattleMoveOver

      void actOnPendingBattleMoveOver()
    • actOnDoneWithBattleMoves

      void actOnDoneWithBattleMoves()
    • actOnSetupBattleRecruit

      void actOnSetupBattleRecruit()
    • actOnSetupBattleSummon

      void actOnSetupBattleSummon()
    • actOnPlaceNewChit

      void actOnPlaceNewChit(String imageName, BattleUnit battleUnit, BattleHex hex)
    • resetStrikeNumbers

      void resetStrikeNumbers()
    • actOnTellStrikeResults

      void actOnTellStrikeResults(boolean wasCarry, int strikeNumber, List<String> rolls, BattleCritter striker, BattleCritter target)
    • highlightCrittersWithTargets

      void highlightCrittersWithTargets()
    • actOnApplyCarries

      void actOnApplyCarries(BattleHex hex)
    • actOnCleanupBattle

      void actOnCleanupBattle()
    • undoRecruit

      void undoRecruit(Legion legion)
    • informSplitRequiredFirstRound

      void informSplitRequiredFirstRound()
    • undoLastBattleMove

      void undoLastBattleMove()
    • undoAllBattleMoves

      void undoAllBattleMoves()
    • undoAllMoves

      void undoAllMoves()
    • undoAllRecruits

      void undoAllRecruits()
    • defaultCursor

      void defaultCursor()
    • waitCursor

      void waitCursor()
    • doCleanupGUI

      void doCleanupGUI()
    • actOnTellGameOver

      void actOnTellGameOver(String message, boolean disposeFollows)
    • actOnGameStartingFailed

      void actOnGameStartingFailed()
    • showMessageDialogAndWait

      void showMessageDialogAndWait(String message)
    • doConfirmAndQuit

      void doConfirmAndQuit()
    • showConnectionClosedMessage

      void showConnectionClosedMessage()
    • appendToConnectionLog

      void appendToConnectionLog(String s)
    • actOnReconnectCompleted

      void actOnReconnectCompleted()
    • setChosenDevice

      void setChosenDevice(GraphicsDevice chosen)
    • setLookAndFeel

      void setLookAndFeel(String text)
    • removeBattleChit

      void removeBattleChit(BattleUnit battleUnit)
    • setPreferencesCheckBoxValue

      void setPreferencesCheckBoxValue(String name, boolean value)
    • setPreferencesRadioButtonValue

      void setPreferencesRadioButtonValue(String name, boolean value)
    • setMovePending

      void setMovePending(Legion mover, MasterHex currentHex, MasterHex targetHex)
    • setMoveCompleted

      void setMoveCompleted(Legion mover, MasterHex current, MasterHex target)
    • actOnHitsSet

      void actOnHitsSet(BattleUnit targetUnit)