Class FiringSolutionSpriteHandler
java.lang.Object
megamek.client.ui.swing.boardview.BoardViewSpriteHandler
megamek.client.ui.swing.boardview.FiringSolutionSpriteHandler
- All Implemented Interfaces:
EventListener
,GameListener
,IPreferenceChangeListener
public class FiringSolutionSpriteHandler
extends BoardViewSpriteHandler
implements IPreferenceChangeListener
-
Field Summary
Fields inherited from class megamek.client.ui.swing.boardview.BoardViewSpriteHandler
boardView, currentSprites, GUIP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes any current sprites of this handler from the attached BoardView and clears this handler's internal sprite list.void
dispose()
Override this method to perform any clean up steps when this handler and its associated sprites are no longer needed, such as removing the handler as listener.void
Override this method to perform start up steps such as registering it as a listener (doing this in the constructor is considered improper as the object is not fully constructed at that point).void
protected boolean
shouldShowTarget
(Entity target, Entity ce) void
showFiringSolutions
(Entity entity) Methods inherited from class megamek.client.ui.swing.boardview.BoardViewSpriteHandler
gameBoardChanged, gameBoardNew, gameClientFeedbackRequest, gameEnd, gameEntityChange, gameEntityNew, gameEntityNewOffboard, gameEntityRemove, gameMapQuery, gameNewAction, gamePhaseChange, gamePlayerChange, gamePlayerChat, gamePlayerConnected, gamePlayerDisconnected, gameReport, gameSettingsChange, gameTurnChange, gameVictory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface megamek.common.event.GameListener
gamePlayerStrategicAction, gameScriptedEvent, gameUnitChange
-
Constructor Details
-
FiringSolutionSpriteHandler
-
-
Method Details
-
showFiringSolutions
-
shouldShowTarget
-
clear
public void clear()Description copied from class:BoardViewSpriteHandler
Removes any current sprites of this handler from the attached BoardView and clears this handler's internal sprite list. When overriding this, call super.clear() or remember to perform clean up in the overriding method.- Overrides:
clear
in classBoardViewSpriteHandler
-
initialize
public void initialize()Description copied from class:BoardViewSpriteHandler
Override this method to perform start up steps such as registering it as a listener (doing this in the constructor is considered improper as the object is not fully constructed at that point).- Specified by:
initialize
in classBoardViewSpriteHandler
-
dispose
public void dispose()Description copied from class:BoardViewSpriteHandler
Override this method to perform any clean up steps when this handler and its associated sprites are no longer needed, such as removing the handler as listener.- Specified by:
dispose
in classBoardViewSpriteHandler
-
preferenceChange
- Specified by:
preferenceChange
in interfaceIPreferenceChangeListener
-