API Docs for:
Show:

devCards.DevCardView Class

A view for viewing and using development cards. Inherits from misc.BaseOverlay.

Constructor

Methods

clearView

()

Resets the overlay view

Returns:

void

closeModal

()

makes the overlay invisible

Returns:

void

setCardEnabled

(
  • card
  • enabled
)

Enables a single card

Parameters:

  • card String

    the card to update (from catan.definitions.CardTypes)

  • enabled Boolean

    whether the player can use the card

Returns:

void

setController

(
  • controller
)

Attaches the controller to the view and builds the view on the page.

Parameters:

  • controller devCards.Controller

Returns:

void

showModal

()

makes the overlay visible

Returns:

void

updateAmount

(
  • value
  • amount
)

Sets the amount for a single card

Parameters:

  • value String

    the value to update (from catan.definitions.CardTypes)

  • amount Int

    the total number of cards of that type the player has (both old and new cards)

Returns:

void