Class LinearObserver

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

public class LinearObserver extends ScoreObserver
A ScoreObserver to calculate score based on number of row cleared.
  • Constructor Details

    • LinearObserver

      public LinearObserver()
  • Method Details

    • getScore

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

      public void update(DataPackage obj)