diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-23 00:39:57 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-23 00:39:57 -0400 |
commit | 005c645b3cd991079dfd9bac2f207cdd2068d161 (patch) | |
tree | ed82f11d248a1a0e08ea0ed82380913250a0f278 /src/main/LeaderboardEntry.java | |
parent | f941b529f1cb12312041516e6799ece0f6df2cac (diff) | |
download | NPEhero-005c645b3cd991079dfd9bac2f207cdd2068d161.tar.gz NPEhero-005c645b3cd991079dfd9bac2f207cdd2068d161.tar.bz2 NPEhero-005c645b3cd991079dfd9bac2f207cdd2068d161.zip |
finish gui, add new leaderboard system, redesign settings, switch lists to tables
Diffstat (limited to 'src/main/LeaderboardEntry.java')
-rw-r--r-- | src/main/LeaderboardEntry.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main/LeaderboardEntry.java b/src/main/LeaderboardEntry.java new file mode 100644 index 0000000..61a0449 --- /dev/null +++ b/src/main/LeaderboardEntry.java @@ -0,0 +1,33 @@ +package main; + +import javafx.beans.property.SimpleIntegerProperty; +import javafx.beans.property.SimpleStringProperty; + +public class LeaderboardEntry +{ + private SimpleIntegerProperty score; + private SimpleStringProperty name; + + //all below is required for table view + public LeaderboardEntry(String name, int score) + { + this.name = new SimpleStringProperty(name); + this.score = new SimpleIntegerProperty(score); + } + + public int getScore() { + return score.get(); + } + + public void setScore(int score) { + this.score.set(score); + } + + public String getName() { + return name.get(); + } + + public void setName(String name) { + this.name.set(name); + } +} |