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 TypeMethodDescriptionbooleanGet whether the game-over condition is met.voidnotifyAllObservers(DataPackage dataPackage) Notify all observers that listen to this GameLayer.voidDefine 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
-