Interface UserViewInterface

All Known Implementing Classes:
UserView

public interface UserViewInterface

Title: Misc

Description:

Copyright: Copyright (c) 2005

Company: TAFE SA

  • Method Details

    • displayIntroductionInfo

      void displayIntroductionInfo()
      Display the information about the game
    • displayUsersHighScores

      void displayUsersHighScores(UserDetails theUser, List<GameDetails> highScores)
      Display a table of highscores for the current user
      Parameters:
      theUser -
      highScores -
    • displayAllHighScores

      void displayAllHighScores(List<GameDetails> highScores)
      Display a table of highscores for the all the users
      Parameters:
      highScores -
    • notifyNewHighScore

      void notifyNewHighScore()
      Notify the player of a new high score
    • notifyWin

      void notifyWin()
      Notify the user of a win
    • notifyDeath

      void notifyDeath()
      Notify the user that they got killed
    • setUpForNewGame

      void setUpForNewGame(GameDetails newGame)
      Update the interface ready to start a new game. The game will be in pause mode so the interface needs to communicate this to the user and give the user some way of starting the game
      Parameters:
      newGame -
    • displayGameDetails

      void displayGameDetails()
      Update info for current game
    • displaySaveGameSettingsError

      void displaySaveGameSettingsError()
      Display an error in trying to save the current game settings
    • displayErrorUnableToLoadUserDetails

      void displayErrorUnableToLoadUserDetails(String userName)
      Display an error in trying to load the current game settings for this user
      Parameters:
      userName -
    • displayErrorDatabaseConnectionLost

      void displayErrorDatabaseConnectionLost()
      Display an error in connecting to the database and that defaults will be used. Since cannto connect to the database this should also disable the way the user can ask for a save details (eg disable the SAVE button)
    • setController

      void setController(UserEventListener theController)
      The controller that the view will get to do the 'logic' when the user makes a request via the view (user interface)
      Parameters:
      theController -
    • displayErrorLoadingSounds

      void displayErrorLoadingSounds()
      A message displkayed when something goes wrong with loading the game sounds.
    • notifyGameOver

      void notifyGameOver()
      Give the user a game over message when aliens get too far!
    • confirmResetGame

      boolean confirmResetGame()
      Confirm a rest of the game
      Returns:
      true if ok to proceed and reset, false otherwise
    • displayErrorUnableToSaveUserDetails

      void displayErrorUnableToSaveUserDetails(String specificMessage)
    • adjustInterfaceOptionsDueToWantingIntroInfoChange

      void adjustInterfaceOptionsDueToWantingIntroInfoChange(boolean wantIntroInfo)
      Parameters:
      wantIntroInfo -
    • getCurrentGame

      GameDetails getCurrentGame()
    • setCurrentGame

      void setCurrentGame(GameDetails currentGame)