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

    Fields 
    Modifier and Type Field Description
    GameTime gameTime  
    static java.util.TimerTask task  
  • Constructor Summary

    Constructors 
    Constructor Description
    ScoringSystemV1()  
  • Method Summary

    Modifier and Type Method Description
    void addToScore​(int bonus)  
    int getMinutes()
    Return the current minutes of the timer.
    int getScore()
    Return the total score
    int getSeconds()
    Return the current seconds of the timer.
    void startGameClock()
    Record the gaming time in seconds.
    static void stopTimer()
    Stop the timer in the scoringSystem class.
    static void stopTimerTask()
    Instead of stop the timer, just stop the task

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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