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 TypeMethodDescriptionvoid
Draw this IDisplayable to the Graphics graph, which is the boardview graphics.boolean
Returns true when the mouse position point is considered "within" this IDisplayable.boolean
void
Sets a reference to a TargetingPhaseDisplay.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, 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:IDisplayable
Returns 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:
isHit
in interfaceIDisplayable
-
isReleased
public boolean isReleased()- Specified by:
isReleased
in interfaceIDisplayable
-
draw
Description copied from interface:IDisplayable
Draw this IDisplayable to the Graphics graph, which is the boardview graphics. The currently visible part of the boardview is given by the Rectangle rect, so the upper left corner of the visible boardview is rect.x, rect.y.- Specified by:
draw
in interfaceIDisplayable
-