API Docs for:
Show:

discard.DiscardController Class

Constructor

discard.DiscardController

(
  • view
  • waitingView
  • clientModel
)

Parameters:

Methods

decreaseAmount

(
  • resource
)

Called by the view when the player decreases the amount to discard for a single resource.

Parameters:

  • resource String

    the 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 String

    the resource to discard

Returns:

void