Class AcTurn

java.lang.Object
megamek.common.game.AbstractPlayerTurn
megamek.common.autoResolve.component.AcTurn
All Implemented Interfaces:
Serializable, PlayerTurn
Direct Known Subclasses:
FormationTurn

public abstract class AcTurn extends AbstractPlayerTurn
See Also:
  • Constructor Details

    • AcTurn

      public AcTurn(int playerId)
  • Method Details

    • isValid

      public abstract boolean isValid(SimulationContext game)
      Returns true when this turn can be played given the current state of the given game. Should return false when e.g. no valid formation can be found to move for the player or the player or formation of the turn is null (e.g. because it has previously been destroyed).
      Parameters:
      game - The game object
      Returns:
      True when the turn can be played, false when it should be skipped