Interface Playable

All Superinterfaces:
Updatable
All Known Subinterfaces:
Game
All Known Implementing Classes:
Area, AreaGame, AreaPauseMenu, PauseMenu

public interface Playable extends Updatable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    begin(Window window, FileSystem fileSystem)
    Initialises game state : display and controls Note: Need to be Override
    void
    end()
    Cleans up things, called even if initialisation failed.
    Getter for game title Note: Need to be Override

    Methods inherited from interface ch.epfl.cs107.play.engine.Updatable

    update
  • Method Details

    • begin

      boolean begin(Window window, FileSystem fileSystem)
      Initialises game state : display and controls Note: Need to be Override
      Parameters:
      window - (Window): display context. Not null
      fileSystem - (FileSystem): given file system. Not null
      Returns:
      (boolean): whether the game was successfully started
    • end

      void end()
      Cleans up things, called even if initialisation failed. Note: Need to be Override
    • getTitle

      String getTitle()
      Getter for game title Note: Need to be Override
      Returns:
      (String) the game title