maritime.MaritimeController Class
Constructor
maritime.MaritimeController
(
-
view
-
clientModel
Parameters:
-
view
maritime.View -
clientModel
models.ClientModel
Item Index
Methods
makeTrade
()
Returns:
void
setGetValue
(
-
resource
Called by the view when the player selects which resource to get
Parameters:
-
resource
StringThe 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
StringThe 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