Class TurnDetailsOverlay
java.lang.Object
megamek.client.ui.swing.boardview.overlay.AbstractBoardViewOverlay
megamek.client.ui.swing.boardview.overlay.TurnDetailsOverlay
- All Implemented Interfaces:
IDisplayable
,IPreferenceChangeListener
An overlay for the Boardview that displays info about the users turn, such as list of users Move or Attack commands
for the current game situation
-
Field Summary
Fields inherited from class megamek.client.ui.swing.boardview.overlay.AbstractBoardViewOverlay
boardView, clientGui, currentGame, currentPhase, font, GUIP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride to return a List of all text lines to be shown.protected void
protected int
getDistSide
(Rectangle clipBounds, int overlayWidth) protected int
getDistTop
(Rectangle clipBounds, int overlayHeight) protected String
Override to return the localized header text, possibly including the current keyboard shortcut to toggle it.protected boolean
void
void
Methods inherited from class megamek.client.ui.swing.boardview.overlay.AbstractBoardViewOverlay
addHeader, colorToHex, colorToHex, draw, getTextColor, isSliding, isVisible, scheduleBoardViewRepaint, setDirty, setVisible, slide
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface megamek.client.ui.IDisplayable
isBeingDragged, isDragged, isHit, isMouseOver, isReleased, setIdleTime
-
Constructor Details
-
TurnDetailsOverlay
-
-
Method Details
-
getHeaderText
Description copied from class:AbstractBoardViewOverlay
Override to return the localized header text, possibly including the current keyboard shortcut to toggle it.- Specified by:
getHeaderText
in classAbstractBoardViewOverlay
-
assembleTextLines
Description copied from class:AbstractBoardViewOverlay
Override to return a List of all text lines to be shown. UseAbstractBoardViewOverlay.addHeader(List)
.- Specified by:
assembleTextLines
in classAbstractBoardViewOverlay
-
setLines
-
gameTurnOrPhaseChange
protected void gameTurnOrPhaseChange()- Overrides:
gameTurnOrPhaseChange
in classAbstractBoardViewOverlay
-
getVisibilityGUIPreference
protected boolean getVisibilityGUIPreference()- Specified by:
getVisibilityGUIPreference
in classAbstractBoardViewOverlay
-
getDistTop
- Specified by:
getDistTop
in classAbstractBoardViewOverlay
-
getDistSide
- Specified by:
getDistSide
in classAbstractBoardViewOverlay
-
preferenceChange
- Specified by:
preferenceChange
in interfaceIPreferenceChangeListener
- Overrides:
preferenceChange
in classAbstractBoardViewOverlay
-