discard.DiscardController Class
Constructor
discard.DiscardController
(
-
view
-
waitingView
-
clientModel
Parameters:
-
view
discard.DiscardView -
waitingView
misc.WaitOverlay -
clientModel
models.ClientModel
Item Index
Methods
Methods
decreaseAmount
(
-
resource
Called by the view when the player decreases the amount to discard for a single resource.
Parameters:
-
resource
Stringthe resource to discard
Returns:
void
discard
()
Called by the view when the player clicks the discard button. It should send the discard command and allow the game to continue.
Returns:
void
increaseAmount
(
-
resource
Called by the view when the player increases the amount to discard for a single resource.
Parameters:
-
resource
Stringthe resource to discard
Returns:
void