Added times played

This commit is contained in:
2015-06-18 20:17:47 +02:00
parent 1c1b6f0c8e
commit f2fd2b5993
+15
View File
@@ -6,6 +6,7 @@ import java.util.List;
public class SongInstance {
private String difficulty;
private int timesPlayed;
private List<ObjectInstance> objects;
private List<ButtonInstance> buttons;
@@ -13,6 +14,7 @@ public class SongInstance {
public SongInstance(String difficulty)
{
this.difficulty = difficulty;
this.timesPlayed = 0;
objects = new ArrayList<ObjectInstance>();
buttons = new ArrayList<ButtonInstance>();
@@ -83,4 +85,17 @@ public class SongInstance {
return b;
}
public int getTimesPlayed() {
return timesPlayed;
}
public void setTimesPlayed(int timesPlayed) {
this.timesPlayed = timesPlayed;
}
public void played()
{
timesPlayed++;
}
}