Class AcTurn
java.lang.Object
megamek.common.game.AbstractPlayerTurn
megamek.common.autoResolve.component.AcTurn
- All Implemented Interfaces:
Serializable,PlayerTurn
- Direct Known Subclasses:
FormationTurn
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisValid(SimulationContext game) Returns true when this turn can be played given the current state of the given 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, isValidEntity
-
Constructor Details
-
AcTurn
public AcTurn(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
-