Class ScoringSystemV1
java.lang.Object
com.deco2800.game.components.score.ScoringSystemV1
public class ScoringSystemV1
extends java.lang.Object
This class is written by team 9.
This class handles the scoring system
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ScoringSystemV1() -
Method Summary
Modifier and Type Method Description voidaddToScore(int bonus)intgetMinutes()Return the current minutes of the timer.intgetScore()Return the total scoreintgetSeconds()Return the current seconds of the timer.voidstartGameClock()Record the gaming time in seconds.static voidstopTimer()Stop the timer in the scoringSystem class.static voidstopTimerTask()Instead of stop the timer, just stop the task
-
Field Details
-
Constructor Details
-
ScoringSystemV1
public ScoringSystemV1()
-
-
Method Details
-
startGameClock
public void startGameClock()Record the gaming time in seconds. -
stopTimer
public static void stopTimer()Stop the timer in the scoringSystem class. -
stopTimerTask
public static void stopTimerTask()Instead of stop the timer, just stop the task -
getScore
public int getScore()Return the total score- Returns:
- int scores
-
addToScore
public void addToScore(int bonus) -
getSeconds
public int getSeconds()Return the current seconds of the timer.- Returns:
- int
-
getMinutes
public int getMinutes()Return the current minutes of the timer.- Returns:
- int
-