Class ShopMarketAction

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

public class ShopMarketAction
extends Action
An action to request to the model to buy a specific row or column of the marked to a specific player
  • Constructor Summary

    Constructors
    Constructor Description
    ShopMarketAction​(boolean inRow, int index)  
    ShopMarketAction​(java.lang.String username, boolean inRow, int index)  
  • Method Summary

    Modifier and Type Method Description
    PhaseType performAction​(IGameState gameState)
    Buy the specified row or column of the market 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