public final class MasterBoard
extends javax.swing.JPanel
Modifier and Type | Class and Description |
---|---|
(package private) class |
MasterBoard.BottomBar |
private class |
MasterBoard.InfoPopupHandler |
(package private) class |
MasterBoard.MasterBoardItemHandler |
(package private) class |
MasterBoard.MasterBoardMouseHandler |
(package private) class |
MasterBoard.MasterBoardMouseMotionHandler |
(package private) class |
MasterBoard.MasterBoardWindowHandler |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
about |
private javax.swing.AbstractAction |
aboutAction |
private MasterBoard.BottomBar |
bottomBar
our own little bar implementation
|
private java.lang.String |
cachedPlayerName |
private java.util.Map<java.lang.String,javax.swing.JCheckBoxMenuItem> |
checkboxes |
private javax.swing.AbstractAction |
checkConnectionAction |
private static java.lang.String |
chooseScreen |
private javax.swing.AbstractAction |
chooseScreenAction |
private javax.swing.AbstractAction |
cleanDisconnectAction |
private static java.lang.String |
clearRecruitChits |
private javax.swing.AbstractAction |
clearRecruitChitsAction |
private Client |
client |
private javax.swing.AbstractAction |
closeBoardAction |
private java.awt.Container |
contentPane |
private boolean |
defenderFleePhase
In that time while we got tellEngagement but nothing else
(bottom bar just tells engaged, but no other visible notice of what's
going on), we might be waiting for the opponent to think about
whether to flee or not.
|
private static java.lang.String |
doneWithPhase |
private javax.swing.AbstractAction |
doneWithPhaseAction |
(package private) EditLegion |
editLegionOngoing |
private javax.swing.JMenu |
editMenu |
private javax.swing.AbstractAction |
enforcedDisconnectByServerAction |
private MasterHex |
engagingPendingHex
engage() has been sent to server but answer (tellEngagement()) not
received yet; mostly we have this, to be able to react properly when
user clicks on an engagement while there is still the server response
missing for the last one
|
private static java.lang.String |
forcedDoneWithPhase |
private javax.swing.AbstractAction |
forcedDoneWithPhaseAction |
private boolean |
gameOverStateReached |
private ClientGUI |
gui |
private GUIMasterHex[][] |
guiHexArray |
private MasterBoard.InfoPopupHandler |
iph |
private java.awt.event.ItemListener |
itemHandler |
private static java.lang.String |
kickPhase |
private javax.swing.AbstractAction |
kickPhaseAction |
private java.awt.Point |
lastPoint
Last point clicked is needed for popup menus.
|
private javax.swing.JPanel[] |
legionFlyouts |
private java.util.LinkedHashMap<Legion,Marker> |
legionToMarkerMap
List of markers which are currently on the board,
for painting in z-order => the end of the list is on top.
|
private javax.swing.AbstractAction |
loadGameAction |
private static java.util.logging.Logger |
LOGGER |
private KFrame |
masterFrame |
private MasterBoard.MasterBoardWindowHandler |
mbwh |
private javax.swing.AbstractAction |
newGameAction |
private static java.lang.String |
nextLegion |
private javax.swing.AbstractAction |
nextLegionAction |
private java.awt.Image |
offScreenBuffer |
private boolean |
overlayChanged |
private javax.swing.JMenu |
phaseMenu |
private boolean |
playerLabelDone |
private javax.swing.JPopupMenu |
popupMenu |
private javax.swing.JPopupMenu |
popupMenuWithLegions |
private java.util.Map<MasterHex,java.util.List<Chit>> |
possibleRecruitChits |
private static java.lang.String |
preferences |
private javax.swing.AbstractAction |
preferencesAction |
private javax.swing.AbstractAction |
quitGameAction |
private java.util.Map<Legion,Chit> |
recruitedChits |
(package private) EditLegion |
relocateOngoing |
private boolean |
saveDuringEngagementDialogMessageShown
Show the message that "saving during engagement/battle will store the
last commit point" only once each game - flag that it has been shown
|
private javax.swing.AbstractAction |
saveGameAction |
private static java.lang.String |
saveGameAs |
private javax.swing.AbstractAction |
saveGameAsAction |
private SaveWindow |
saveWindow |
private javax.swing.JScrollPane |
scrollPane
The scrollbarspanel, needed to correct lastPoint.
|
private ShowHelpDoc |
showHelpDoc |
private ShowReadme |
showReadme |
private static java.lang.String |
skipLegion |
private javax.swing.AbstractAction |
skipLegionAction |
private static java.lang.String |
takeMulligan |
private javax.swing.AbstractAction |
takeMulliganAction |
private javax.swing.AbstractAction |
tryReconnectAction |
private static java.lang.String |
undoAll |
private javax.swing.AbstractAction |
undoAllAction |
private static java.lang.String |
undoLast |
private javax.swing.AbstractAction |
undoLastAction |
private static java.lang.String |
viewBattleMap |
private javax.swing.AbstractAction |
viewBattleMapAction |
private static java.lang.String |
viewFullRecruitTree |
private javax.swing.AbstractAction |
viewFullRecruitTreeAction |
private static java.lang.String |
viewHelpDoc |
private javax.swing.AbstractAction |
viewHelpDocAction |
private static java.lang.String |
viewHexRecruitTree |
private javax.swing.AbstractAction |
viewHexRecruitTreeAction |
private static java.lang.String |
viewLegions |
private javax.swing.AbstractAction |
viewLegionsAction |
private static java.lang.String |
viewReadme |
private javax.swing.AbstractAction |
viewReadmeAction |
private static java.lang.String |
viewWebClient |
private javax.swing.AbstractAction |
viewWebClientAction |
private static java.lang.String |
viewWelcome |
private javax.swing.AbstractAction |
viewWelcomeAction |
private static java.lang.String |
withdrawFromGame |
private javax.swing.AbstractAction |
withdrawFromGameAction |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MasterBoard(Client client,
ClientGUI gui) |
Modifier and Type | Method and Description |
---|---|
private void |
activateNextLegionAndPlaceMouse(Legion nextLegion) |
void |
actOnEditLegionMaybe(Legion legion) |
private void |
actOnHex(MasterHex hex) |
private void |
actOnLegion(LegionClientSide legion,
MasterHex hex) |
(package private) void |
actOnMisclick() |
private javax.swing.JCheckBoxMenuItem |
addCheckBox(javax.swing.JMenu menu,
java.lang.String name,
int mnemonic) |
void |
addPossibleRecruitChits(LegionClientSide legion,
java.util.Set<MasterHex> hexes) |
private void |
addPossibleRecruitChits(java.util.List<CreatureType> imageNameList,
MasterHex masterHex) |
(package private) void |
addRecruitedChit(Legion legion) |
(package private) void |
adjustCheckboxIfNeeded(java.lang.String name,
boolean enable)
Find the checkbox for the given (boolean) option name; set it to the
new given value (only if different that previous value).
|
(package private) void |
alignAllLegions()
This is incredibly inefficient.
|
(package private) void |
alignLegions(MasterHex masterHex) |
private void |
alignLegions(java.util.Set<MasterHex> hexes) |
private void |
attemptEngage(MasterHex hex) |
private void |
cleanCBListeners() |
private void |
cleanGUIHexes() |
(package private) void |
cleanRecruitedChit(LegionClientSide legion) |
void |
clearDefenderFlee()
We got showConcede or showNegotiate messages, i.e.
|
void |
clearEngagingPending()
tellEngagement calls this, now "engaging" is not pending, instead
there is a real engagement to be resolved.
|
void |
clearPossibleRecruitChits() |
void |
clearRecruitedChits() |
private Constants.ConfirmVals |
confirmDialog(java.lang.String text,
int count) |
(package private) void |
deiconify() |
void |
disableDoneAction(java.lang.String reason)
Disable the Done action, and update the reason text in bottomBar
|
private void |
disableDoneActionActivePlayerDoes(java.lang.String doesWhat)
Clear bottomBar phase text and call disableDoneAction, as reason the
standard text "<active player> doesWhat"
|
void |
dispose() |
private void |
doneWithPhase()
Finishes the current phase.
|
void |
doQuitGameAction() |
void |
enableDoneAction() |
void |
enableSaveActions() |
void |
focusBackToMasterboard() |
(package private) void |
fullRepaint() |
(package private) KFrame |
getFrame() |
(package private) GUIMasterHex |
getGUIHexByMasterHex(MasterHex masterHex)
Do a brute-force search through the hex array, looking for
a match.
|
private GUIMasterHex |
getHexContainingPoint(java.awt.Point point)
Return the MasterHex that contains the given point, or
null if none does.
|
private java.lang.String |
getLogDirectory() |
private Marker |
getMarkerAtPoint(java.awt.Point point)
Return the topmost Marker that contains the given point, or
null if none does.
|
private MasterBoard |
getMasterBoard()
TODO this should probably be stored as member, possibly instead of the client class.
|
java.awt.Dimension |
getMinimumSize() |
java.awt.Dimension |
getPreferredSize() |
(package private) void |
highlightEngagements() |
private void |
highlightMoves(LegionClientSide legion)
Select hexes where this legion can move.
|
(package private) void |
highlightPossibleRecruitLegionHexes()
Highlight all hexes with legions that (still) can do recruiting
|
(package private) void |
highlightTallLegions() |
(package private) void |
highlightUnmovedLegions() |
private static boolean |
isPopupButton(java.awt.event.MouseEvent e)
Return true if the MouseEvent e came from button 2 or 3.
|
private void |
jumpToNextUnhandledLegion()
user pressed "N".
|
private void |
makeDoneCloseWindow() |
void |
markLegionSkip() |
(package private) void |
maybeRequestFocusAndToFront()
If and only if stealFocus option is enabled, this does both
requestFocus and getFrame().toFront().
|
(package private) void |
myTurnStartsActions() |
(package private) void |
pack() |
void |
paintComponent(java.awt.Graphics g) |
private void |
paintHexes(java.awt.Graphics g) |
private void |
paintHighlights(java.awt.Graphics2D g) |
private void |
paintMarkers(java.awt.Graphics g)
Paint markers in z-order.
|
private void |
paintMovementDie(java.awt.Graphics g) |
private void |
paintPossibleRecruitChits(java.awt.Graphics g) |
private void |
paintRecruitedChits(java.awt.Graphics g) |
void |
recreateMarkers()
Create new markers in response to a rescale.
|
(package private) void |
removeMarkerForLegion(Legion legion) |
(package private) void |
repaintAfterOverlayChanged() |
(package private) void |
rescale() |
private boolean |
saveDuringEngagementDialog()
Inform the user that saving during an engagement will save the last
commit point, so loading it will re-set game to just before the
engagement was started.
|
(package private) void |
selectHex(MasterHex modelHex) |
private void |
selectHexes(java.util.Set<MasterHex> hexes) |
private void |
selectHexes(java.util.Set<MasterHex> hexes,
java.awt.Color color) |
void |
setBoardActive(boolean val) |
void |
setEditOngoing(EditLegion editLegion) |
void |
setGameOverState(java.lang.String message) |
(package private) void |
setMarkerForLegion(Legion legion,
Marker marker) |
void |
setMovementPhase() |
(package private) void |
setPendingText(java.lang.String text) |
void |
setPhaseInfo(java.lang.String message) |
void |
setReconnectedMessage() |
void |
setRelocateOngoing(EditLegion editLegion) |
void |
setReplayMode() |
void |
setServerClosedMessage(boolean gameOver) |
void |
setTempDisconnectedState(java.lang.String message) |
private void |
setTitleInfoText(java.lang.String text) |
private void |
setupActions() |
private void |
setupAsInactivePlayer(java.lang.String text)
Do the setup needed for an inactive player:
set the actions which are allowed only for active player to inactive,
and update the bottomBar info why "Done" is disabled accordingly
|
(package private) void |
setupFightMenu() |
private void |
setupGUIHexes() |
private void |
setupIcon() |
(package private) void |
setupMoveMenu() |
(package private) void |
setupMusterMenu() |
private void |
setupPhasePreparations(java.lang.String titleText) |
(package private) void |
setupPlayerLabel()
Show which player owns this board.
|
private void |
setupPopupMenus() |
(package private) void |
setupSplitMenu() |
(package private) void |
setupTitleForMovementRoll(int roll) |
private void |
setupTopMenu() |
void |
showBattleMap(GUIMasterHex hex) |
(package private) void |
unselectAllHexes() |
(package private) void |
updateComponentTreeUI() |
void |
updateEngagementsLeftText() |
void |
updateLegionsLeftToMoveText(boolean have_roll) |
void |
updateLegionsLeftToMusterText() |
void |
updateReplayText(int currTurn,
int maxTurn) |
void |
viewEditLegion(LegionClientSide legion) |
void |
viewLegions(java.awt.Point point) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final java.util.logging.Logger LOGGER
private java.awt.Image offScreenBuffer
private boolean overlayChanged
private GUIMasterHex[][] guiHexArray
private Client client
private final ClientGUI gui
private KFrame masterFrame
private ShowReadme showReadme
private ShowHelpDoc showHelpDoc
private javax.swing.JMenu editMenu
private javax.swing.JMenu phaseMenu
private javax.swing.JPopupMenu popupMenu
private javax.swing.JPopupMenu popupMenuWithLegions
private java.util.Map<java.lang.String,javax.swing.JCheckBoxMenuItem> checkboxes
private javax.swing.JPanel[] legionFlyouts
private final MasterBoard.MasterBoardWindowHandler mbwh
private MasterBoard.InfoPopupHandler iph
private java.awt.Point lastPoint
private MasterHex engagingPendingHex
private boolean defenderFleePhase
private boolean saveDuringEngagementDialogMessageShown
private final java.util.LinkedHashMap<Legion,Marker> legionToMarkerMap
private final java.util.Map<MasterHex,java.util.List<Chit>> possibleRecruitChits
private javax.swing.JScrollPane scrollPane
private final java.awt.Container contentPane
private MasterBoard.BottomBar bottomBar
private boolean gameOverStateReached
private static final java.lang.String saveGameAs
private static final java.lang.String clearRecruitChits
private static final java.lang.String skipLegion
private static final java.lang.String nextLegion
private static final java.lang.String undoLast
private static final java.lang.String undoAll
private static final java.lang.String doneWithPhase
private static final java.lang.String forcedDoneWithPhase
private static final java.lang.String kickPhase
private static final java.lang.String takeMulligan
private static final java.lang.String withdrawFromGame
private static final java.lang.String viewWebClient
private static final java.lang.String viewFullRecruitTree
private static final java.lang.String viewHexRecruitTree
private static final java.lang.String viewBattleMap
private static final java.lang.String viewLegions
private static final java.lang.String chooseScreen
private static final java.lang.String preferences
private static final java.lang.String about
private static final java.lang.String viewReadme
private static final java.lang.String viewHelpDoc
private static final java.lang.String viewWelcome
private javax.swing.AbstractAction newGameAction
private javax.swing.AbstractAction loadGameAction
private javax.swing.AbstractAction saveGameAction
private javax.swing.AbstractAction saveGameAsAction
private javax.swing.AbstractAction closeBoardAction
private javax.swing.AbstractAction quitGameAction
private javax.swing.AbstractAction cleanDisconnectAction
private javax.swing.AbstractAction enforcedDisconnectByServerAction
private javax.swing.AbstractAction tryReconnectAction
private javax.swing.AbstractAction checkConnectionAction
private javax.swing.AbstractAction clearRecruitChitsAction
private javax.swing.AbstractAction skipLegionAction
private javax.swing.AbstractAction nextLegionAction
private javax.swing.AbstractAction undoLastAction
private javax.swing.AbstractAction undoAllAction
private javax.swing.AbstractAction doneWithPhaseAction
private javax.swing.AbstractAction forcedDoneWithPhaseAction
private javax.swing.AbstractAction kickPhaseAction
private javax.swing.AbstractAction takeMulliganAction
private javax.swing.AbstractAction withdrawFromGameAction
private javax.swing.AbstractAction viewWebClientAction
private javax.swing.AbstractAction viewFullRecruitTreeAction
private javax.swing.AbstractAction viewHexRecruitTreeAction
private javax.swing.AbstractAction viewBattleMapAction
private javax.swing.AbstractAction viewLegionsAction
private javax.swing.AbstractAction chooseScreenAction
private javax.swing.AbstractAction preferencesAction
private javax.swing.AbstractAction aboutAction
private javax.swing.AbstractAction viewReadmeAction
private javax.swing.AbstractAction viewHelpDocAction
private javax.swing.AbstractAction viewWelcomeAction
private boolean playerLabelDone
private SaveWindow saveWindow
private java.lang.String cachedPlayerName
EditLegion editLegionOngoing
EditLegion relocateOngoing
private java.awt.event.ItemListener itemHandler
public void setBoardActive(boolean val)
public void enableSaveActions()
private boolean saveDuringEngagementDialog()
private Constants.ConfirmVals confirmDialog(java.lang.String text, int count)
private void setupActions()
private java.lang.String getLogDirectory()
public void doQuitGameAction()
public void showBattleMap(GUIMasterHex hex)
private void setupPopupMenus()
public void viewLegions(java.awt.Point point)
private javax.swing.JCheckBoxMenuItem addCheckBox(javax.swing.JMenu menu, java.lang.String name, int mnemonic)
private void cleanCBListeners()
private void setupTopMenu()
void adjustCheckboxIfNeeded(java.lang.String name, boolean enable)
name
- The option name to adjust the checkbox forenable
- The should-be state of the checkboxvoid setupPlayerLabel()
private void setupGUIHexes()
private MasterBoard getMasterBoard()
private void cleanGUIHexes()
private void doneWithPhase()
private void setupPhasePreparations(java.lang.String titleText)
private void setupAsInactivePlayer(java.lang.String text)
text
- What the active player is doing right nowvoid setupSplitMenu()
void setupMoveMenu()
public void setMovementPhase()
void setupTitleForMovementRoll(int roll)
void setupFightMenu()
public void updateEngagementsLeftText()
void setupMusterMenu()
void highlightPossibleRecruitLegionHexes()
KFrame getFrame()
void alignAllLegions()
void alignLegions(MasterHex masterHex)
private void alignLegions(java.util.Set<MasterHex> hexes)
void highlightTallLegions()
void highlightUnmovedLegions()
void setPendingText(java.lang.String text)
private void highlightMoves(LegionClientSide legion)
void highlightEngagements()
private void setupIcon()
GUIMasterHex getGUIHexByMasterHex(MasterHex masterHex)
private GUIMasterHex getHexContainingPoint(java.awt.Point point)
void removeMarkerForLegion(Legion legion)
public void recreateMarkers()
private Marker getMarkerAtPoint(java.awt.Point point)
void unselectAllHexes()
void selectHex(MasterHex modelHex)
private void selectHexes(java.util.Set<MasterHex> hexes)
private void selectHexes(java.util.Set<MasterHex> hexes, java.awt.Color color)
public void focusBackToMasterboard()
void actOnMisclick()
private static boolean isPopupButton(java.awt.event.MouseEvent e)
private void actOnLegion(LegionClientSide legion, MasterHex hex)
private void actOnHex(MasterHex hex)
public void actOnEditLegionMaybe(Legion legion)
public void setEditOngoing(EditLegion editLegion)
public void setRelocateOngoing(EditLegion editLegion)
public void viewEditLegion(LegionClientSide legion)
legion
- the legion which shall be editedpublic void clearEngagingPending()
public void clearDefenderFlee()
private void attemptEngage(MasterHex hex)
void repaintAfterOverlayChanged()
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
private void paintHexes(java.awt.Graphics g)
private void paintHighlights(java.awt.Graphics2D g)
private void paintMarkers(java.awt.Graphics g)
private void paintRecruitedChits(java.awt.Graphics g)
public void addPossibleRecruitChits(LegionClientSide legion, java.util.Set<MasterHex> hexes)
void addRecruitedChit(Legion legion)
void cleanRecruitedChit(LegionClientSide legion)
private void addPossibleRecruitChits(java.util.List<CreatureType> imageNameList, MasterHex masterHex)
public void clearRecruitedChits()
public void clearPossibleRecruitChits()
private void paintPossibleRecruitChits(java.awt.Graphics g)
private void paintMovementDie(java.awt.Graphics g)
public void markLegionSkip()
private void jumpToNextUnhandledLegion()
private void activateNextLegionAndPlaceMouse(Legion nextLegion)
nextLegion
- public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
void rescale()
void deiconify()
public void dispose()
void pack()
void updateComponentTreeUI()
void fullRepaint()
void maybeRequestFocusAndToFront()
void myTurnStartsActions()
public void updateLegionsLeftToMusterText()
public void updateLegionsLeftToMoveText(boolean have_roll)
public void enableDoneAction()
public void disableDoneAction(java.lang.String reason)
reason
- Information why one is not ready to be Doneprivate void disableDoneActionActivePlayerDoes(java.lang.String doesWhat)
doesWhat
- Information what the active player currently doesprivate void makeDoneCloseWindow()
public void setServerClosedMessage(boolean gameOver)
public void setReconnectedMessage()
public void setReplayMode()
public void updateReplayText(int currTurn, int maxTurn)
private void setTitleInfoText(java.lang.String text)
public void setTempDisconnectedState(java.lang.String message)
public void setGameOverState(java.lang.String message)
public void setPhaseInfo(java.lang.String message)