Browse Source

Added highest score

Kenneth van Ewijk 10 years ago
parent
commit
803c0e1707
1 changed files with 11 additions and 0 deletions
  1. 11 0
      audio/Song.java

+ 11 - 0
audio/Song.java

@@ -165,4 +165,15 @@ public class Song implements Comparable<Song>{
 		}
 		return timesPlayed;
 	}
+	
+	public int getHighestScore()
+	{
+		int highest = 0;
+		for(SongInstance s : songs)
+		{
+			if(s.getHighestScore() > highest)
+				highest = s.getHighestScore();
+		}
+		return highest;
+	}
 }