devCards.DevCardView Class
A view for viewing and using development cards. Inherits from misc.BaseOverlay.
Constructor
devCards.DevCardView
()
Item Index
Methods
clearView
()
Resets the overlay view
Returns:
void
closeModal
()
makes the overlay invisible
Returns:
void
setCardEnabled
(
-
card
-
enabled
Enables a single card
Parameters:
-
card
Stringthe card to update (from catan.definitions.CardTypes)
-
enabled
Booleanwhether 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
Stringthe value to update (from catan.definitions.CardTypes)
-
amount
Intthe total number of cards of that type the player has (both old and new cards)
Returns:
void