By gameoverscreen able to typ a name

This commit is contained in:
Remco
2015-06-12 14:42:40 +02:00
parent 1a3f2cbc17
commit 336a3051ff
6 changed files with 158 additions and 34 deletions
+34
View File
@@ -0,0 +1,34 @@
package model.objects.highscore;
import java.util.Date;
import audio.SongInstance;
public class Highscore {
public SongInstance si;
public String name;
public int score;
public long time;
public Highscore(SongInstance si, String name, int score, long time) {
this.si = si;
this.name = name;
this.score = score;
this.time = time;
}
public int getScore() {
return score;
}
public long getTime(){
return time;
}
public Date getDate(){
return new Date(getTime());
}
public String getName(){
return name;
}
}