From fcd65070900865a9e0b547c49968988abcda5ab9 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 25 May 2023 20:57:51 -0400 Subject: Move levels outside of src, prepare for leaderboard writing and other small changes --- src/main/LeaderboardEntry.java | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) (limited to 'src/main/LeaderboardEntry.java') diff --git a/src/main/LeaderboardEntry.java b/src/main/LeaderboardEntry.java index 673ca11..9a298b6 100644 --- a/src/main/LeaderboardEntry.java +++ b/src/main/LeaderboardEntry.java @@ -1,45 +1,28 @@ package main; -import javafx.beans.property.SimpleIntegerProperty; -import javafx.beans.property.SimpleStringProperty; - public class LeaderboardEntry { - private SimpleIntegerProperty score; - private SimpleStringProperty name; - private SimpleStringProperty date; + private int score; + private String name; + private String date; - //all below is required for table view public LeaderboardEntry(String name, int score, String date) { - this.name = new SimpleStringProperty(name); - this.score = new SimpleIntegerProperty(score); - this.date = new SimpleStringProperty(date); + this.name = name; + this.score = score; + this.date = date; } public int getScore() { - return score.get(); - } - - public void setScore(int score) { - this.score.set(score); + return score; } public String getName() { - return name.get(); - } - - public void setName(String name) { - this.name.set(name); + return name; } public String getDate() { - return date.get(); - } - - public void setDate(String date) - { - this.date = new SimpleStringProperty(date); + return date; } } -- cgit v1.2.3