Added highest score

This commit is contained in:
2015-07-06 17:00:14 +02:00
parent fc86051f04
commit 803c0e1707
+11
View File
@@ -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;
}
}