Class BuyDevelopCardAction

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

public class BuyDevelopCardAction
extends Action
An action to request to the model to buy a specific develop card for a specific player
  • Constructor Summary

    Constructors
    Constructor Description
    BuyDevelopCardAction​(int row, int column, int cardSlotIndex)  
    BuyDevelopCardAction​(java.lang.String username, int row, int column, int cardSlotIndex)  
  • Method Summary

    Modifier and Type Method Description
    PhaseType performAction​(IGameState gameState)
    Buy the specified develop card for the specified 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