Interface GameLayer

All Known Implementing Classes:
GameMode, LineCountLayer, ScoreSystemLayer, TimedLayer

public interface GameLayer
Manage add-on functions of the game.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get whether the game-over condition is met.
    void
    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

      void notifyAllObservers(DataPackage dataPackage)
      Notify all observers that listen to this GameLayer.
      Parameters:
      dataPackage - - relavent data received from game