Class AimedShotHandler
java.lang.Object
megamek.client.ui.panels.phaseDisplay.AimedShotHandler
- All Implemented Interfaces:
- ActionListener,- ItemListener,- EventListener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidActionListener, listens to the button in the dialog.booleanallowAimedShotWith(WeaponMounted weapon) should aimed shots be allowed with the passed weaponvoidintReturns the name of aimed location.booleanvoidItemListener, listens to the radiobuttons in the dialog.voidSets the aiming mode, depending on the target and the attacker.voidsetEnableAll(boolean enableAll) Enables the radiobuttons in the dialog.voidsetPartialCover(int partialCover) void
- 
Constructor Details- 
AimedShotHandler
 
- 
- 
Method Details- 
showDialogpublic void showDialog()
- 
closeDialogpublic void closeDialog()
- 
setEnableAllpublic void setEnableAll(boolean enableAll) Enables the radiobuttons in the dialog.
- 
setPartialCoverpublic void setPartialCover(int partialCover) 
- 
getAimingAtpublic int getAimingAt()
- 
getAimingMode
- 
getAimingLocationReturns the name of aimed location.
- 
setAimingModepublic void setAimingMode()Sets the aiming mode, depending on the target and the attacker. Against immobile meks, targeting computer aiming mode will be used if turned on. This is a hack, but it's the resolution suggested by the bug submitter, and I don't think it's half bad.
- 
isAimingAtLocationpublic boolean isAimingAtLocation()- Returns:
- if a hit location currently selected.
 
- 
allowAimedShotWithshould aimed shots be allowed with the passed weapon
- 
actionPerformedActionListener, listens to the button in the dialog.- Specified by:
- actionPerformedin interface- ActionListener
 
- 
itemStateChangedItemListener, listens to the radiobuttons in the dialog.- Specified by:
- itemStateChangedin interface- ItemListener
 
 
-