API Docs for:
Show:

maritime.MaritimeController Class

Constructor

maritime.MaritimeController

(
  • view
  • clientModel
)

Parameters:

Methods

makeTrade

()

Returns:

void

setGetValue

(
  • resource
)

Called by the view when the player selects which resource to get

Parameters:

  • resource String

    The resource to trade ("wood","brick","sheep","wheat","ore")

Returns:

void

setGiveValue

(
  • resource
)

Called by the view when the player selects which resource to give

Parameters:

  • resource String

    The resource to trade ("wood","brick","sheep","wheat","ore")

Returns:

void

unsetGetValue

()

Called by the view when the player "undoes" their get selection

Returns:

void

unsetGiveValue

()

Called by the view when the player "undoes" their give selection

Returns:

void