Upload folder via GUI - src
This commit is contained in:
@@ -17,6 +17,7 @@ public class ActiveEvent {
|
||||
private final Set<UUID> participants;
|
||||
private final Map<UUID, Integer> scores;
|
||||
private int taskId = -1;
|
||||
private UUID winner;
|
||||
|
||||
public ActiveEvent(EventDefinition definition) {
|
||||
this.definition = definition;
|
||||
@@ -24,6 +25,7 @@ public class ActiveEvent {
|
||||
this.startTime = System.currentTimeMillis();
|
||||
this.participants = new LinkedHashSet<>();
|
||||
this.scores = new HashMap<>();
|
||||
this.winner = null;
|
||||
}
|
||||
|
||||
public void addParticipant(Player player) {
|
||||
@@ -72,4 +74,7 @@ public class ActiveEvent {
|
||||
public int getTaskId() { return taskId; }
|
||||
public void setTaskId(int taskId) { this.taskId = taskId; }
|
||||
public int getParticipantCount() { return participants.size(); }
|
||||
public UUID getWinner() { return winner; }
|
||||
public void setWinner(UUID winner) { this.winner = winner; }
|
||||
public boolean hasWinner() { return winner != null; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user