diff --git a/domain/Server.java b/domain/Server.java new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/domain/Server.java @@ -0,0 +1 @@ + diff --git a/domain/boards/IngredientBoard.java b/domain/boards/IngredientBoard.java index b27991b..18f437b 100644 --- a/domain/boards/IngredientBoard.java +++ b/domain/boards/IngredientBoard.java @@ -47,6 +47,15 @@ public IngredientCard popIngredient() { //Sells 1 ingredient card for 1 gold public void transmuteIngredient(IngredientCard ingredientCard) throws UserErrorException, RuntimeException { + /* Method: transmuteIngredient + * Requires: Ingredient card must be provided. Current player should have ingredientCard. + * Modifies: Player's inventory. + * Player's token + * Effects: Throws UserErrorException if the player does not own ingredientCard + * Transmute 1 ingredientCard to a gold. + * Reduces player action by 1. + */ + Player player = GameController.getCurrentPlayer(); PlayerInventory inv = player.getInventory(); PlayerToken token = player.getPlayerToken();