Class SpaceInvadersDAOText
java.lang.Object
dao.SpaceInvadersDAOText
- Direct Known Subclasses:
GameDetailsDAOText,UserDetailsDAOText
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidConnects to the space invaders related files, in the case of text files simply exnsure that the files exist and are ready to be usedstatic List<GameDetails> Loads the games high scores for every existing firing interval and move speedstatic BufferedReaderstatic BufferedReaderstatic BufferedReaderstatic boolean
-
Field Details
-
SPACEINVADERS_USERS_DB_NAME
- See Also:
-
SPACEINVADERS_SETTINGS_DB_NAME
- See Also:
-
SPACEINVADERS_USER_HIGH_SCORES_DB_NAME
- See Also:
-
-
Constructor Details
-
SpaceInvadersDAOText
public SpaceInvadersDAOText()
-
-
Method Details
-
connectToSpaceInvadersDatabase
Connects to the space invaders related files, in the case of text files simply exnsure that the files exist and are ready to be used- Throws:
FileNotFoundExceptionIOException
-
getUsersInputConnection
- Returns:
- a connection to the users file ready for reading line by line.
- Throws:
FileNotFoundExceptionIOException
-
getSettingsInputConnection
- Throws:
FileNotFoundExceptionIOException
-
getUserHighScoresInputConnection
public static BufferedReader getUserHighScoresInputConnection() throws FileNotFoundException, IOException- Throws:
FileNotFoundExceptionIOException
-
getGameHighScores
Loads the games high scores for every existing firing interval and move speed- Returns:
- List of GameDetails objects containing the high scores for each type of game (combination of move speed and firing interval)
- Throws:
Exception
-
myDelete
-