Class SBFTurn

java.lang.Object
megamek.common.game.AbstractPlayerTurn
megamek.common.strategicBattleSystems.SBFTurn
All Implemented Interfaces:
Serializable, PlayerTurn
Direct Known Subclasses:
SBFFormationTurn, SBFPlayerTurn

public abstract class SBFTurn extends AbstractPlayerTurn
This is a subclass of AbstractPlayerTurn that is (for now) only used to have a clear SBF designated turn so that SBF classes don't use AbstractPlayerTurn directly. At the moment this class is not strictly necessary, but maybe it gets additions later.
See Also:
  • Constructor Details

    • SBFTurn

      public SBFTurn(int playerId)
  • Method Details

    • isValid

      public abstract boolean isValid(SBFGame 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