Class TSpinObserver

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

public class TSpinObserver extends ScoreObserver
A ScoreObserver to calculate score based on T-Spin.
  • Constructor Details

    • TSpinObserver

      public TSpinObserver()
  • 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.