Class CountFoodSystem
java.lang.Object
com.deco2800.game.components.foodAndwater.CountFoodSystem
public class CountFoodSystem
extends java.lang.Object
this class handles the food update
-
Constructor Summary
Constructors Constructor Description CountFoodSystem()
-
Method Summary
Modifier and Type Method Description int
getDifference()
return the time differenceint
getTimer()
return the timevoid
setDifference(int difference)
set the time differencevoid
setTimer(int value)
set a time
-
Constructor Details
-
CountFoodSystem
public CountFoodSystem()
-
-
Method Details
-
setTimer
public void setTimer(int value)set a time- Parameters:
value
- a integer
-
setDifference
public void setDifference(int difference)set the time difference- Parameters:
difference
- a integer
-
getTimer
public int getTimer()return the time -
getDifference
public int getDifference()return the time difference
-