Class OffBoardTargetOverlay
java.lang.Object
megamek.client.ui.clientGUI.boardview.overlay.OffBoardTargetOverlay
- All Implemented Interfaces:
IDisplayable
This class handles the display and logic for the off board targeting overlay.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDraw this IDisplayable to the Graphics graph, which is theBoardViewgraphics.booleanReturns true when the mouse position point is considered "within" this IDisplayable.booleanvoidSets a reference to a TargetingPhaseDisplay.Methods 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, isMouseOver, isSliding, setIdleTime, slide
-
Constructor Details
-
OffBoardTargetOverlay
-
-
Method Details
-
setTargetingPhaseDisplay
Sets a reference to a TargetingPhaseDisplay. Used to communicate a generated attack to it. -
isHit
Description copied from interface:IDisplayableReturns true when the mouse position point is considered "within" this IDisplayable. This is called when a mouse button is pressed. The default for this method will always return false.- Specified by:
isHitin interfaceIDisplayable
-
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceIDisplayable
-
draw
Description copied from interface:IDisplayableDraw this IDisplayable to the Graphics graph, which is theBoardViewgraphics. The currently visible part of theBoardViewis given by the Rectangle rect, so the upper left corner of the visibleBoardViewis rect.x, rect.y.- Specified by:
drawin interfaceIDisplayable
-