API Docs for:
Show:

devCards.DevCardController Class

Constructor

devCards.DevCardController

(
  • view
  • buyView
  • clientModel
  • soldierAction
  • roadAction
)

Parameters:

Methods

buyCard

()

Called when the player buys a development card

Returns:

void

useMonopoly

(
  • resource
)

Called when the player plays a monopoly card

Parameters:

  • resource String

    the resource to obtain

Returns:

void

useMonument

()

Called when the player plays a monument card

Returns:

void

useRoadBuild

()

Called when the player plays the road building card

Returns:

void

useSoldier

()

Called when the player plays a soldier card

Returns:

void

useYearOfPlenty

(
  • resource1
  • resource2
)

Called when the player plays a year of plenty card

Parameters:

  • resource1 String

    The first resource to obtain

  • resource2 String

    The second resource to obtain

Returns:

void