playable game

This commit is contained in:
Remco
2015-06-02 15:47:23 +02:00
parent 6a356982a6
commit 76a41dbbd1
10 changed files with 105 additions and 23 deletions
+18
View File
@@ -42,4 +42,22 @@ public class SongInstance {
public void setDifficulty(String difficulty) {
this.difficulty = difficulty;
}
public List<ObjectInstance> getBetween(long oldProgress, long progress) {
List<ObjectInstance> b = new ArrayList<ObjectInstance>();
for(ObjectInstance i : objects)
{
if(i.getTime() > progress)
{
return b;
}
if(i.getTime() > oldProgress && i.getTime() <= progress)
{
b.add(i);
}
}
return b;
}
}