Class SBFFormationTurn
java.lang.Object
megamek.common.game.AbstractPlayerTurn
megamek.common.strategicBattleSystems.SBFTurn
megamek.common.strategicBattleSystems.SBFFormationTurn
- All Implemented Interfaces:
Serializable,PlayerTurn
This is a turn for a player action that uses a unit (formation). Examples are movement and firing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true when this turn can be played given the current state of the given game.booleanisValidEntity(InGameObject unit, IGame game) 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
-
Constructor Details
-
SBFFormationTurn
public SBFFormationTurn(int playerId) Creates a new player turn for an SBF Game.- Parameters:
playerId- The player who has to take action
-
-
Method Details
-
isValid
Description copied from class:SBFTurnReturns 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). -
isValidEntity
- Returns:
- true if the given unit may act in this turn
-