Package sac.model.observers
Class BackToBackObserver
java.lang.Object
sac.model.observers.ScoreObserver
sac.model.observers.BackToBackObserver
- All Implemented Interfaces:
Observer<DataPackage>
A ScoreObserver to calculate score based on consecutive Tetris or T-Spin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getScore()
Calculate the current score.void
update
(DataPackage obj)
-
Constructor Details
-
BackToBackObserver
public BackToBackObserver()
-
-
Method Details
-
update
-
getScore
public int getScore()Description copied from class:ScoreObserver
Calculate the current score.- Specified by:
getScore
in classScoreObserver
- Returns:
- The non-cumulative score.
-