From e64fc291fe8e4bddfbf35d92cb717845ee644170 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Mon, 6 Jul 2015 17:00:17 +0200 Subject: [PATCH] Added highest score --- audio/SongInstance.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/audio/SongInstance.java b/audio/SongInstance.java index 472b29b..0be1dd6 100644 --- a/audio/SongInstance.java +++ b/audio/SongInstance.java @@ -7,6 +7,7 @@ public class SongInstance { private String difficulty; private int timesPlayed; + private int highestScore; private List objects; private List buttons; @@ -15,6 +16,7 @@ public class SongInstance { { this.difficulty = difficulty; this.timesPlayed = 0; + this.highestScore = 0; objects = new ArrayList(); buttons = new ArrayList(); @@ -94,6 +96,14 @@ public class SongInstance { this.timesPlayed = timesPlayed; } + public int getHighestScore() { + return highestScore; + } + + public void setHighestScore(int highestScore) { + this.highestScore = highestScore; + } + public void played() { timesPlayed++;