Add: PlayerTest.java Added Javadoc For "addFood".
This commit is contained in:
@@ -129,6 +129,14 @@ public class Player {
|
|||||||
// endregion getters
|
// endregion getters
|
||||||
|
|
||||||
// region Setters
|
// 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){
|
public void addFood(int Value){
|
||||||
this.FoodValue += Value;
|
this.FoodValue += Value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user