Package sac.model.observers
Class ComboObserver
java.lang.Object
sac.model.observers.ScoreObserver
sac.model.observers.ComboObserver
- All Implemented Interfaces:
Observer<DataPackage>
A ScoreObserver to calculate score based on consecutive row clears.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getScore()
Calculate the current score.void
update
(DataPackage obj)
-
Constructor Details
-
ComboObserver
public ComboObserver()
-
-
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.
-