Class ScoreObserver

java.lang.Object
sac.model.observers.ScoreObserver
All Implemented Interfaces:
Observer<DataPackage>
Direct Known Subclasses:
BackToBackObserver, ComboObserver, LinearObserver, TSpinObserver

public abstract class ScoreObserver extends Object implements Observer<DataPackage>
An Observer to calculate (non-cumulative) scores.
  • Constructor Details

    • ScoreObserver

      public ScoreObserver()
  • Method Details

    • getScore

      public abstract int getScore()
      Calculate the current score.
      Returns:
      The non-cumulative score.