Interface UserViewInterface
- All Known Implementing Classes:
UserView
public interface UserViewInterface
Title: Misc
Description:
Copyright: Copyright (c) 2005
Company: TAFE SA
-
Method Summary
Modifier and TypeMethodDescriptionvoidadjustInterfaceOptionsDueToWantingIntroInfoChange(boolean wantIntroInfo) booleanConfirm a rest of the gamevoiddisplayAllHighScores(List<GameDetails> highScores) Display a table of highscores for the all the usersvoidDisplay an error in connecting to the database and that defaults will be used.voidA message displkayed when something goes wrong with loading the game sounds.voiddisplayErrorUnableToLoadUserDetails(String userName) Display an error in trying to load the current game settings for this uservoiddisplayErrorUnableToSaveUserDetails(String specificMessage) voidUpdate info for current gamevoidDisplay the information about the gamevoidDisplay an error in trying to save the current game settingsvoiddisplayUsersHighScores(UserDetails theUser, List<GameDetails> highScores) Display a table of highscores for the current uservoidNotify the user that they got killedvoidGive the user a game over message when aliens get too far!voidNotify the player of a new high scorevoidNotify the user of a winvoidsetController(UserEventListener theController) The controller that the view will get to do the 'logic' when the user makes a request via the view (user interface)voidsetCurrentGame(GameDetails currentGame) voidsetUpForNewGame(GameDetails newGame) Update the interface ready to start a new game.
-
Method Details
-
displayIntroductionInfo
void displayIntroductionInfo()Display the information about the game -
displayUsersHighScores
Display a table of highscores for the current user- Parameters:
theUser-highScores-
-
displayAllHighScores
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
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
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
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
-
adjustInterfaceOptionsDueToWantingIntroInfoChange
void adjustInterfaceOptionsDueToWantingIntroInfoChange(boolean wantIntroInfo) - Parameters:
wantIntroInfo-
-
getCurrentGame
GameDetails getCurrentGame() -
setCurrentGame
-