Class SBFTurn
java.lang.Object
megamek.common.game.AbstractPlayerTurn
megamek.common.strategicBattleSystems.SBFTurn
- All Implemented Interfaces:
Serializable,PlayerTurn
- Direct Known Subclasses:
SBFFormationTurn,SBFPlayerTurn
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 Summary
Constructors -
Method Summary
Methods inherited from class megamek.common.game.AbstractPlayerTurn
playerId, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.interfaces.PlayerTurn
isMultiTurn, isValid, isValid, isValidEntity
-
Constructor Details
-
SBFTurn
public SBFTurn(int playerId)
-
-
Method Details
-
isValid
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
-