Class TurnDetailsOverlay
java.lang.Object
megamek.client.ui.clientGUI.boardview.overlay.AbstractBoardViewOverlay
megamek.client.ui.clientGUI.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.clientGUI.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 voidprotected intgetDistSide(Rectangle clipBounds, int overlayWidth) protected intgetDistTop(Rectangle clipBounds, int overlayHeight) protected StringOverride to return the localized header text, possibly including the current keyboard shortcut to toggle it.protected booleanvoidvoidMethods inherited from class megamek.client.ui.clientGUI.boardview.overlay.AbstractBoardViewOverlay
addHeader, colorToHex, colorToHex, draw, getTextColor, isSliding, isVisible, scheduleBoardViewRepaint, setDirty, setVisible, slideMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.client.ui.IDisplayable
isBeingDragged, isDragged, isHit, isMouseOver, isReleased, setIdleTime
-
Constructor Details
-
TurnDetailsOverlay
-
-
Method Details
-
getHeaderText
Description copied from class:AbstractBoardViewOverlayOverride to return the localized header text, possibly including the current keyboard shortcut to toggle it.- Specified by:
getHeaderTextin classAbstractBoardViewOverlay
-
assembleTextLines
Description copied from class:AbstractBoardViewOverlayOverride to return a List of all text lines to be shown. UseAbstractBoardViewOverlay.addHeader(List).- Specified by:
assembleTextLinesin classAbstractBoardViewOverlay
-
setLines
-
gameTurnOrPhaseChange
protected void gameTurnOrPhaseChange()- Overrides:
gameTurnOrPhaseChangein classAbstractBoardViewOverlay
-
getVisibilityGUIPreference
protected boolean getVisibilityGUIPreference()- Specified by:
getVisibilityGUIPreferencein classAbstractBoardViewOverlay
-
getDistTop
- Specified by:
getDistTopin classAbstractBoardViewOverlay
-
getDistSide
- Specified by:
getDistSidein classAbstractBoardViewOverlay
-
preferenceChange
- Specified by:
preferenceChangein interfaceIPreferenceChangeListener- Overrides:
preferenceChangein classAbstractBoardViewOverlay
-