Class DiscardLeaderAction

java.lang.Object
it.polimi.ingsw.controller.action.Action
it.polimi.ingsw.controller.action.DiscardLeaderAction

public class DiscardLeaderAction
extends Action
An action to request to the model to discard a specific leader card of a player
  • Constructor Summary

    Constructors
    Constructor Description
    DiscardLeaderAction​(int leaderCardID)  
    DiscardLeaderAction​(java.lang.String username, int leaderCardID)  
  • Method Summary

    Modifier and Type Method Description
    PhaseType performAction​(IGameState gameState)
    Discard the specified leader card for the player.

    Methods inherited from class it.polimi.ingsw.controller.action.Action

    getUsername, isCurrentPlayer, setUsername

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait