Package net.sf.colossus.client
Interface IClientGUI
- All Known Implementing Classes:
ClientGUI
,NullClientGUI
public interface IClientGUI
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actOnAddCreature
(Legion legion, CreatureType type, String reason) void
void
void
actOnDidMove
(Legion legion, MasterHex startingHex, MasterHex currentHex, boolean teleport, CreatureType teleportingLord, boolean splitLegionHasForcedMove) void
actOnDidRecruit
(Legion legion, CreatureType recruitName, List<CreatureType> recruiters, String reason) void
actOnDidSplit
(int turn, Legion parent, Legion child, MasterHex hex) void
void
void
void
void
void
void
void
void
actOnHitsSet
(BattleUnit targetUnit) void
void
void
void
void
actOnPlaceNewChit
(String imageName, BattleUnit battleUnit, BattleHex hex) void
void
actOnRemoveCreature
(Legion legion, CreatureType type, String reason) void
actOnRemoveCreaturePart2
(Legion legion) void
actOnRemoveLegion
(Legion legion) void
void
void
void
void
void
void
void
void
actOnTellBattleMove
(BattleHex startingHex, BattleHex endingHex, boolean rememberForUndo) void
actOnTellEngagementResults
(Legion winner, String method, int points, int turns) void
actOnTellGameOver
(String message, boolean disposeFollows) void
actOnTellLegionLocation
(Legion legion, MasterHex hex) void
actOnTellMovementRoll
(int roll) void
void
actOnTellReplay
(int maxTurn) void
actOnTellStrikeResults
(boolean wasCarry, int strikeNumber, List<String> rolls, BattleCritter striker, BattleCritter target) void
actOnTurnOrPlayerChange
(Client c, int turnNr, Player p) void
actOnUndidMove
(Legion legion, MasterHex formerHex, MasterHex currentHex, boolean splitLegionHasForcedMove, boolean didTeleport) void
actOnUndidRecruitPart
(Legion legion, boolean wasReinforcement, int turnNumber) void
actOnUndidSplit
(Legion survivor, int turn) void
addPossibleRecruitChits
(LegionClientSide legion, Set<MasterHex> hexes) void
alignLegionsMaybe
(Legion legion) void
void
autoInspectorSetDubiousAsBlanks
(boolean newValue) boolean
Present a dialog allowing the player to enter via land or teleport.void
void
void
didSummon
(Legion summoner, Legion donor, CreatureType summon) void
void
void
doAcquireAngel
(Legion legion, List<CreatureType> recruits) void
void
void
doPickCarries
(Client client, int carryDamage, Set<String> carryTargetDescriptions) void
doPickColor
(String playerName, List<PlayerColor> colorsLeft) doPickEntrySide
(MasterHex hex, Set<EntrySide> entrySides) void
doPickInitialMarker
(Set<String> markersAvailable) doPickLord
(List<CreatureType> lords) doPickRecruit
(Legion legion, String hexDescription) doPickRecruiter
(List<String> recruiters, String hexDescription, Legion legion) doPickSplitLegion
(Legion parent, String childMarker) void
doPickSplitMarker
(Legion parent, Set<String> markersAvailable) void
doPickStrikePenalty
(Client client, List<String> choices) void
doPickSummonAngel
(Legion legion, List<Legion> possibleDonors) void
void
eventViewerCancelReinforcement
(CreatureType recruit, int turnNr) void
eventViewerNewSplitEvent
(int turn, Legion parent, Legion child) void
eventViewerRevealCreatures
(Legion legion, List<CreatureType> creatures, String reason) void
eventViewerSetCreatureDead
(BattleUnit battleUnit) void
void
eventViewerUndoEvent
(Legion splitoff, Legion survivor, int turn) int
int
int
int
void
boolean
hasBoard()
void
void
void
void
void
boolean
void
void
menuLoadGame
(String filename) void
void
void
removeBattleChit
(BattleUnit battleUnit) void
void
void
replayTurnChange
(int nowTurn) void
TODO since we are doing Swing nowadays it would probably be much better to replace all this rescaling code with just usingAffineTransform
on the rightGraphics2D
instances.void
void
void
revealEngagedCreatures
(Legion legion, List<CreatureType> creatures, boolean isAttacker, String reason) void
Upon request with checkServerConnection, server sends a confirmation.void
setBoardActive
(boolean val) void
setChosenDevice
(GraphicsDevice chosen) void
void
setLookAndFeel
(String text) void
setMoveCompleted
(Legion mover, MasterHex current, MasterHex target) void
setMovePending
(Legion mover, MasterHex currentHex, MasterHex targetHex) void
setMulliganOldRoll
(int movementRoll) void
setPreferencesCheckBoxValue
(String name, boolean value) void
setPreferencesRadioButtonValue
(String name, boolean value) void
setPreferencesWindowVisible
(boolean val) void
setStartedByWebClient
(boolean byWebClient) void
void
showConcede
(Client client, Legion ally, Legion enemy) void
void
void
showMessageDialogAndWait
(String message) void
showNegotiate
(Legion attacker, Legion defender) void
void
tellEngagement
(Legion attacker, Legion defender, int turnNumber) void
tellProposal
(String proposalString) Inform this player about the other player's proposal.void
tellWhatsHappening
(String message) void
Timeout reached.void
void
void
void
void
undoRecruit
(Legion legion) void
void
void
void
-
Method Details
-
setStartedByWebClient
void setStartedByWebClient(boolean byWebClient) -
setWebClient
-
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
-
eventViewerSetVisibleMaybe
void eventViewerSetVisibleMaybe() -
autoInspectorSetDubiousAsBlanks
void autoInspectorSetDubiousAsBlanks(boolean newValue) -
engagementResultsMaybeShow
void engagementResultsMaybeShow() -
actOnTellLegionLocation
-
actOnDidSplit
-
actOnDidSplitPart2
-
actOnDoneWithMoves
void actOnDoneWithMoves() -
actOnDoneWithSplits
void actOnDoneWithSplits() -
actOnDidRecruit
void actOnDidRecruit(Legion legion, CreatureType recruitName, List<CreatureType> recruiters, String reason) -
actOnRemoveCreature
-
actOnRemoveCreaturePart2
-
actOnAddCreature
-
actOnUndidSplit
-
actOnUndidRecruitPart
-
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
-
actOnNoMoreEngagements
void actOnNoMoreEngagements() -
alignLegionsMaybe
-
actOnRemoveLegion
-
actOnDoSummon
void actOnDoSummon() -
updateEverything
void updateEverything() -
replayTurnChange
void replayTurnChange(int nowTurn) -
actOnTellReplay
void actOnTellReplay(int maxTurn) -
actOnTellRedoChange
void actOnTellRedoChange() -
eventViewerCancelReinforcement
-
eventViewerSetCreatureDead
-
eventViewerNewSplitEvent
-
eventViewerUndoEvent
-
setPreferencesWindowVisible
void setPreferencesWindowVisible(boolean val) -
didSummon
-
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 usingAffineTransform
on the rightGraphics2D
instances. -
disposeInspector
void disposeInspector() -
updateCreatureCountDisplay
void updateCreatureCountDisplay() -
disposePickCarryDialog
void disposePickCarryDialog() -
showNegotiate
-
respawnNegotiate
void respawnNegotiate() -
showConcede
-
showFlee
-
initShowEngagementResults
void initShowEngagementResults() -
tellEngagement
-
actOnTellEngagementResults
-
actOnEngagementCompleted
void actOnEngagementCompleted() -
setMulliganOldRoll
void setMulliganOldRoll(int movementRoll) -
tellWhatsHappening
-
actOnTellMovementRoll
void actOnTellMovementRoll(int roll) -
revealEngagedCreatures
void revealEngagedCreatures(Legion legion, List<CreatureType> creatures, boolean isAttacker, String reason) -
eventViewerRevealCreatures
-
doAcquireAngel
-
setBoardActive
void setBoardActive(boolean val) -
doPickSummonAngel
-
doPickSplitLegion
-
doPickCarries
-
isPickCarryOngoing
boolean isPickCarryOngoing() -
doPickColor
-
doPickInitialMarker
-
doPickSplitMarker
-
doPickRecruit
-
doPickRecruiter
-
doPickEntrySide
-
doPickLord
-
doPickStrikePenalty
-
tellProposal
Inform this player about the other player's proposal. -
cleanupNegotiationDialogs
void cleanupNegotiationDialogs() -
actOnTurnOrPlayerChange
-
actOnGameStarting
void actOnGameStarting() -
actOnSetupSplit
void actOnSetupSplit() -
actOnSetupMuster
void actOnSetupMuster() -
actOnSetupMove
void actOnSetupMove() -
actOnSetupFight
void actOnSetupFight() -
actOnSetupBattleFight
void actOnSetupBattleFight() -
actOnSetupBattleMove
void actOnSetupBattleMove() -
actOnTellBattleMove
-
actOnPendingBattleMoveOver
void actOnPendingBattleMoveOver() -
actOnDoneWithBattleMoves
void actOnDoneWithBattleMoves() -
actOnSetupBattleRecruit
void actOnSetupBattleRecruit() -
actOnSetupBattleSummon
void actOnSetupBattleSummon() -
actOnPlaceNewChit
-
resetStrikeNumbers
void resetStrikeNumbers() -
actOnTellStrikeResults
void actOnTellStrikeResults(boolean wasCarry, int strikeNumber, List<String> rolls, BattleCritter striker, BattleCritter target) -
highlightCrittersWithTargets
void highlightCrittersWithTargets() -
actOnApplyCarries
-
actOnCleanupBattle
void actOnCleanupBattle() -
undoRecruit
-
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
-
actOnGameStartingFailed
void actOnGameStartingFailed() -
showMessageDialogAndWait
-
doConfirmAndQuit
void doConfirmAndQuit() -
showConnectionClosedMessage
void showConnectionClosedMessage() -
appendToConnectionLog
-
actOnReconnectCompleted
void actOnReconnectCompleted() -
setChosenDevice
-
setLookAndFeel
-
removeBattleChit
-
setPreferencesCheckBoxValue
-
setPreferencesRadioButtonValue
-
setMovePending
-
setMoveCompleted
-
actOnHitsSet
-