Package sac.model.gamemodes
Interface GameLayer
- All Known Implementing Classes:
GameMode
,LineCountLayer
,ScoreSystemLayer
,TimedLayer
public interface GameLayer
Manage add-on functions of the game.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get whether the game-over condition is met.void
notifyAllObservers
(DataPackage dataPackage) Notify all observers that listen to this GameLayer.void
Define what to initialize before the game starts.
-
Method Details
-
onGameStart
void onGameStart()Define what to initialize before the game starts. -
isGameEnd
boolean isGameEnd()Get whether the game-over condition is met.- Returns:
- true iff game should end
-
notifyAllObservers
Notify all observers that listen to this GameLayer.- Parameters:
dataPackage
- - relavent data received from game
-