Package rekit.logic

Interface ILevelScene

All Superinterfaces:
IScene
All Known Implementing Classes:
LevelScene

public interface ILevelScene extends IScene
This interface extends IScene and adds necessary methods to encapsulate Levels.
Author:
Matthias Schmitt
  • Method Details

    • getPlayer

      Player getPlayer()
      Get the current player of null if none set.
      Returns:
      the current player of null
    • getLevel

      Level getLevel()
      Get the associated level.
      Returns:
      the level
    • end

      void end(boolean won)
      End a level.
      Parameters:
      won - indicates whether successful or died
    • hasEnded

      boolean hasEnded()
      Indicates whether the level has ended.
      Returns:
      true if ended, false otherwise
    • isOffsetWildCard

      boolean isOffsetWildCard()
      This method indicates whether the offset is set to wildcard (any position is allowed / no elements will be deleted (because of their position))
      Returns:
      true if activated, false otherwise
    • setOffsetWildCard

      void setOffsetWildCard(boolean wildcard)
      Set return value of isOffsetWildCard().
      Parameters:
      wildcard - the value