Class CalledShot

java.lang.Object
megamek.common.CalledShot
All Implemented Interfaces:
Serializable

public class CalledShot extends Object implements Serializable
Some static methods for called shots
See Also:
  • Field Details

  • Constructor Details

    • CalledShot

      public CalledShot()
  • Method Details

    • getDisplayableName

      public String getDisplayableName()
    • switchCalledShot

      public int switchCalledShot()
    • getCall

      public int getCall()
    • setCall

      public void setCall(int calledShot)
      Sets the called shot directly to the given location instead of stepping to it one call at a time. Values outside the range of the CALLED_ constants are ignored, so a malformed packet cannot leave the called shot in an unknown state.
      Parameters:
      calledShot - one of the CALLED_ constants, e.g. CALLED_HIGH
    • isValid

      @Nullable public String isValid(Targetable target)
    • reset

      public void reset()