Class PlayerReconnectionAction
java.lang.Object
it.polimi.ingsw.controller.action.Action
it.polimi.ingsw.controller.action.PlayerReconnectionAction
@Deprecated public class PlayerReconnectionAction extends Action
Deprecated.
An action to notify the model that a disconnected player is now reconnected
-
Constructor Summary
Constructors Constructor Description PlayerReconnectionAction(java.lang.String username)Deprecated. -
Method Summary
Modifier and Type Method Description PhaseTypeperformAction(IGameState gameState)Deprecated.Reconnect a PlayerMethods inherited from class it.polimi.ingsw.controller.action.Action
getUsername, isCurrentPlayer, setUsernameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PlayerReconnectionAction
public PlayerReconnectionAction(java.lang.String username)Deprecated.
-
-
Method Details
-
performAction
public PhaseType performAction(IGameState gameState) throws InvalidActionException, InvalidUsernameExceptionDeprecated.Reconnect a Player- Specified by:
performActionin classAction- Parameters:
gameState- the current state of this game- Returns:
- null
- Throws:
InvalidActionException- this Action is not correctly initializedInvalidUsernameException- the player for which this action must be performed doesn't exist in this game
-