Class SBFPlayerTurn
java.lang.Object
megamek.common.game.AbstractPlayerTurn
megamek.common.strategicBattleSystems.SBFTurn
megamek.common.strategicBattleSystems.SBFPlayerTurn
- All Implemented Interfaces:
Serializable,PlayerTurn
This is a turn for a player action that does not use a unit (formation). Examples are minefield deployment, arty auto
hex designation and others.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSBFPlayerTurn(int playerId) Creates a new player action turn for an SBF Game. -
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
-
SBFPlayerTurn
public SBFPlayerTurn(int playerId) Creates a new player action turn for an SBF Game.- Parameters:
playerId- The player who has to take action
-
-
Method Details
-
isValidEntity
- Returns:
- true if the given unit may act in this turn
-
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).
-