Class ChooseLeaderOnWhiteMarbleAction

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

public class ChooseLeaderOnWhiteMarbleAction
extends Action
An action used to specify which leader card must be used to convert a white marble
  • Constructor Summary

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

    Modifier and Type Method Description
    PhaseType performAction​(IGameState gameState)
    Add a white marble of the specified player using the specified leader card to convert it.

    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