Interface DataKeySetter

All Known Implementing Classes:
Level

public interface DataKeySetter
This class defines the necessary methods to update the data of a level.
Author:
Dominik Fuchss
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the current level's definition.
    int
    Get the current score of the level.
    boolean
    Get whether the game was successful.
    boolean
    Get whether the game was won.
  • Method Details

    • getScore

      int getScore()
      Get the current score of the level.
      Returns:
      the score
      See Also:
    • getSuccess

      boolean getSuccess()
      Get whether the game was successful.
      Returns:
      true if success
      See Also:
    • getWon

      boolean getWon()
      Get whether the game was won.
      Returns:
      true if won
      See Also:
    • getDefinition

      LevelDefinition getDefinition()
      Get the current level's definition.
      Returns:
      the definition