Class MusicQuizEntry
java.lang.Object
de.presti.ree6.game.impl.musicquiz.entities.MusicQuizEntry
Classed used to store information about a song for the music quiz game.
-
Constructor Summary
ConstructorDescriptionMusicQuizEntry
(MusicQuizEntry musicQuizEntry) Constructor for the MusicQuizEntry.MusicQuizEntry
(String artist, String title, String[] features, String audioUrl) Constructor for the MusicQuizEntry. -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkArtist
(String text) Check if a string contains the name of the artists.boolean
checkFeatures
(String text) Check if a string contains the name of the features.boolean
checkTitle
(String text) Check if a string contains the name of the title.
-
Constructor Details
-
MusicQuizEntry
Constructor for the MusicQuizEntry.
This constructor is used to create a new MusicQuizEntry without guessed values!- Parameters:
musicQuizEntry
- The MusicQuizEntry that should be copied.
-
MusicQuizEntry
Constructor for the MusicQuizEntry.- Parameters:
artist
- The Name of the Artist.title
- The Name of the Song.features
- An array of all features.audioUrl
- The URL of the Song.
-
-
Method Details
-
checkArtist
Check if a string contains the name of the artists.- Parameters:
text
- The text that should be checked.- Returns:
- True if the text contains the name of the artist.
-
checkTitle
Check if a string contains the name of the title.- Parameters:
text
- The text that should be checked.- Returns:
- True if the text contains the name of the title.
-
checkFeatures
Check if a string contains the name of the features.- Parameters:
text
- The text that should be checked.- Returns:
- True if the text contains the name of the features.
-