mirror of
https://inf.pirckheimer-gymnasium.de/kebab/kebab
synced 2026-08-26 16:31:23 +00:00
REMOVE config
This commit is contained in:
@@ -25,8 +25,5 @@ public class Main
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller.config.add(new Statistics());
|
|
||||||
Controller.config.getGroup(Statistics.class);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class LoadingScene extends Scene
|
|||||||
subtitle.center(0, -3);
|
subtitle.center(0, -3);
|
||||||
subtitle.font(font);
|
subtitle.font(font);
|
||||||
|
|
||||||
tatli.center(0,0);
|
tatli.center(0, 0);
|
||||||
|
|
||||||
add(title);
|
add(title);
|
||||||
add(subtitle);
|
add(subtitle);
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user