public class DiscardController extends Controller implements IDiscardController
Constructor and Description |
---|
DiscardController(IDiscardView view,
IWaitView waitView)
DiscardController constructor
|
Modifier and Type | Method and Description |
---|---|
void |
decreaseAmount(ResourceType resource)
This method is called when the user decreases the amount of the specified
resource.
|
void |
discard()
This method is called when the user clicks the discard button.
|
IDiscardView |
getDiscardView() |
IWaitView |
getWaitView() |
void |
increaseAmount(ResourceType resource)
This method is called when the user increases the amount of the specified
resource.
|
getView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
public DiscardController(IDiscardView view, IWaitView waitView)
view
- View displayed to let the user select cards to discardwaitView
- View displayed to notify the user that they are waiting for other players to discardpublic IDiscardView getDiscardView()
public IWaitView getWaitView()
public void increaseAmount(ResourceType resource)
IDiscardController
increaseAmount
in interface IDiscardController
resource
- The resource that was increasedpublic void decreaseAmount(ResourceType resource)
IDiscardController
decreaseAmount
in interface IDiscardController
resource
- The resource that was decreasedpublic void discard()
IDiscardController
discard
in interface IDiscardController