Class ProductionAction

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

public class ProductionAction
extends Action
An action to request to the model to activate the production on the develop top card of a specific card slot
  • Constructor Summary

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

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