Class BackToBackObserver

java.lang.Object
sac.model.observers.ScoreObserver
sac.model.observers.BackToBackObserver
All Implemented Interfaces:
Observer<DataPackage>

public class BackToBackObserver extends ScoreObserver
A ScoreObserver to calculate score based on consecutive Tetris or T-Spin.
  • Constructor Details

    • BackToBackObserver

      public BackToBackObserver()
  • Method Details

    • update

      public void update(DataPackage obj)
    • getScore

      public int getScore()
      Description copied from class: ScoreObserver
      Calculate the current score.
      Specified by:
      getScore in class ScoreObserver
      Returns:
      The non-cumulative score.