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 e379d46..e23e50d 100644 --- a/src/main/java/it/polimi/ingsw/gc14/Model/Player.java +++ b/src/main/java/it/polimi/ingsw/gc14/Model/Player.java @@ -96,6 +96,7 @@ public class Player { /** * The current amount of {@code Food} the Player possesses. + * Cannot be negative. */ private int FoodValue; @@ -163,11 +164,27 @@ public class Player { return true; } + /** + * Adds {@code Value} amount of {@code Prestige} to the Player. + * @param Value The amount of {@code Prestige} to be added. + * Should be positive for expected results + * (otherwise the method will subtract the absolute + * value of {@code Value}). + * @see #PrestigeValue + */ public void addPrestige(int Value){ this.PrestigeValue += Value; } + /** + * Removes {@code Value} amount of {@code Prestige} to the Player. + * @param Value The amount of {@code Prestige} to be removed. + * Should be positive for expected results + * (otherwise the method will add the absolute + * value of {@code Value}). + * @see #PrestigeValue + */ public void removePrestige(int Value){ this.PrestigeValue -= Value;