diff --git a/src/main/java/project/Main.java b/src/main/java/project/Main.java index 98a9409..be47198 100644 --- a/src/main/java/project/Main.java +++ b/src/main/java/project/Main.java @@ -25,8 +25,5 @@ public class Main } catch (Exception e) { e.printStackTrace(); } - - Controller.config.add(new Statistics()); - Controller.config.getGroup(Statistics.class); } } diff --git a/src/main/java/project/scenes/LoadingScene.java b/src/main/java/project/scenes/LoadingScene.java index efe3922..3ea113b 100644 --- a/src/main/java/project/scenes/LoadingScene.java +++ b/src/main/java/project/scenes/LoadingScene.java @@ -29,7 +29,7 @@ public class LoadingScene extends Scene subtitle.center(0, -3); subtitle.font(font); - tatli.center(0,0); + tatli.center(0, 0); add(title); add(subtitle); diff --git a/src/main/java/project/utils/.keepdirectory b/src/main/java/project/utils/.keepdirectory new file mode 100644 index 0000000..e69de29 diff --git a/src/main/java/project/utils/Statistics.java b/src/main/java/project/utils/Statistics.java deleted file mode 100644 index f34df77..0000000 --- a/src/main/java/project/utils/Statistics.java +++ /dev/null @@ -1,92 +0,0 @@ -package project.utils; - -import pi.config.ConfigGroup; - -public class Statistics extends ConfigGroup { - private int money; - private int kebabPrice = 5; - private int upgradeLevel = 0; - private int kebabSold = 0; - private int workers = 0; - private int waitingCustomers = 0; - private int totalEarned = 0; - - public Statistics() { - money(0); - kebabPrice(5); - upgradeLevel(0); - kebabSold(0); - workers(0); - waitingCustomers(0); - totalEarned(0); - } - - // --- money --- - public int money(){ - return money; - } - public Statistics money(int money) { - set("money", money); - return this; - } - - // --- kebabPrice --- - public int kebabPrice() { - return kebabPrice; - } - - public Statistics kebabPrice(int kebabPrice) { - set("kebabPrice", kebabPrice); - return this; - } - - // --- upgradeLevel --- - public int upgradeLevel() { - return upgradeLevel; - } - - public Statistics upgradeLevel(int upgradeLevel) { - set("upgradeLevel", upgradeLevel); - return this; - } - - // --- kebabSold --- - public int kebabSold() { - return kebabSold; - } - - public Statistics kebabSold(int kebabSold) { - set("kebabSold", kebabSold); - return this; - } - - // --- workers --- - public int workers() { - return workers; - } - - public Statistics workers(int workers) { - set("workers", workers); - return this; - } - - // --- waitingCustomers --- - public int waitingCustomers() { - return waitingCustomers; - } - - public Statistics waitingCustomers(int waitingCustomers) { - set("waitingCustomers", waitingCustomers); - return this; - } - - // --- totalEarned --- - public int totalEarned() { - return totalEarned; - } - - public Statistics totalEarned(int totalEarned) { - set("totalEarned", totalEarned); - return this; - } -} \ No newline at end of file