Merge pull request #17

Add: PlayerTest.java Added Javadoc For "addFood".
This commit is contained in:
GabrieleRadice
2026-04-11 17:45:41 +02:00
committed by GitHub
@@ -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;
}