Class ComboObserver

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

public class ComboObserver extends ScoreObserver
A ScoreObserver to calculate score based on consecutive row clears.
  • Constructor Details

    • ComboObserver

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