Package megamek.server.sbf
Class SBFStandardUnitAttackHandler
java.lang.Object
megamek.server.sbf.AbstractSBFActionHandler
megamek.server.sbf.SBFStandardUnitAttackHandler
- All Implemented Interfaces:
SBFActionHandler
,SBFGameManagerHelper
-
Constructor Summary
ConstructorsConstructorDescriptionSBFStandardUnitAttackHandler
(SBFStandardUnitAttack action, SBFGameManager gameManager) -
Method Summary
Methods inherited from class megamek.server.sbf.AbstractSBFActionHandler
gameManager, getAction, isFinished, setFinished
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface megamek.server.sbf.SBFGameManagerHelper
addReport, game, packetHelper, send, send
-
Constructor Details
-
SBFStandardUnitAttackHandler
-
-
Method Details
-
cares
public boolean cares()- Returns:
- True when this handler should be called at the present state of the SBFGame (e.g. the phase).
In that case,
SBFActionHandler.handle()
should be called.
-
handle
public void handle()Description copied from interface:SBFActionHandler
Handles the action, e.g. attack with everything that's necessary, such as adding a report and sending changes to the Clients. When the handler has finished handling the action and is no longer needed, it must callSBFActionHandler.setFinished()
to mark itself as a candidate for removal.
-