Class MusicQuizEntry

java.lang.Object
de.presti.ree6.game.impl.musicquiz.entities.MusicQuizEntry

public class MusicQuizEntry extends Object
Classed used to store information about a song for the music quiz game.
  • Constructor Details

    • MusicQuizEntry

      public MusicQuizEntry(MusicQuizEntry 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

      public MusicQuizEntry(String artist, String title, String[] features, String audioUrl)
      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

      public boolean checkArtist(String text)
      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

      public boolean checkTitle(String text)
      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

      public boolean checkFeatures(String text)
      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.