2016-08-19 21:47:15 +02:00
|
|
|
package com.rubenvandeven.emotionhero;
|
|
|
|
|
2016-08-22 16:47:35 +02:00
|
|
|
import java.util.ArrayList;
|
2016-08-19 21:47:15 +02:00
|
|
|
import java.util.Date;
|
2016-08-23 01:35:33 +02:00
|
|
|
import java.util.UUID;
|
2016-08-19 21:47:15 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by ruben on 19/08/16.
|
|
|
|
*/
|
|
|
|
|
2016-08-20 23:58:32 +02:00
|
|
|
public class Score {
|
2016-08-23 01:35:33 +02:00
|
|
|
public UUID id = UUID.randomUUID();
|
2016-08-22 22:39:19 +02:00
|
|
|
public int lvl_id;
|
|
|
|
public float score;
|
|
|
|
public Date time;
|
2016-08-19 21:47:15 +02:00
|
|
|
|
2016-08-22 16:47:35 +02:00
|
|
|
ArrayList<Scenario.Target> targets = new ArrayList<>();
|
|
|
|
|
2016-08-20 23:58:32 +02:00
|
|
|
public Score(int lvl_id, float score) {
|
|
|
|
this.lvl_id = lvl_id;
|
2016-08-19 21:47:15 +02:00
|
|
|
this.score = score;
|
|
|
|
this.time = new Date();
|
|
|
|
}
|
2016-08-22 16:47:35 +02:00
|
|
|
|
|
|
|
public void setTargets(ArrayList<Scenario.Target> targets) {
|
|
|
|
this.targets = targets;
|
|
|
|
}
|
2016-08-19 21:47:15 +02:00
|
|
|
}
|