diff --git a/src/main/java/it/polimi/ingsw/gc14/Model/Player.java b/src/main/java/it/polimi/ingsw/gc14/Model/Player.java index a9fac03..d5f2373 100644 --- a/src/main/java/it/polimi/ingsw/gc14/Model/Player.java +++ b/src/main/java/it/polimi/ingsw/gc14/Model/Player.java @@ -129,6 +129,14 @@ public class Player { // endregion getters // region Setters + + /** + * Adds {@code Value} amount of {@code Food} to the Player. + * @param Value The amount of {@code Food} to be added. + * Should be positive for expected results + * (otherwise the method will subtract {@code abs(Value)}). + * @see #FoodValue + */ public void addFood(int Value){ this.FoodValue += Value; }