Beautify code

This commit is contained in:
2026-06-22 09:14:03 +02:00
parent a618e43f4f
commit 4452c07731
2 changed files with 7 additions and 15 deletions
+7 -15
View File
@@ -9,7 +9,6 @@ public class Ordersystem {
private int waitingCustomers = 0;
private int totalEarned = 0;
public int getMoney(){
return money;
}
@@ -17,9 +16,11 @@ public class Ordersystem {
public int getKebabSold(){
return kebabSold;
}
public void setKebabPrice(int price){
kebabPrice = price;
}
public boolean buyUpgrade() {
int cost = (upgradeLevel + 1) * 50;
@@ -37,8 +38,7 @@ public class Ordersystem {
return upgradeLevel;
}
public boolean buyWorker() {
public boolean buyWorker() {
int cost = getWorkerCost();
if(money >= cost) {
@@ -51,10 +51,8 @@ public class Ordersystem {
}
public int getWorkers() {
return workers;
}
return workers;
}
public void addCustomer() {
waitingCustomers++;
@@ -66,12 +64,10 @@ public class Ordersystem {
money += kebabPrice;
totalEarned += kebabPrice;
kebabSold++;
return true;
return true;
}
return false;
}
public int getTotalIncome() {
@@ -79,7 +75,6 @@ public class Ordersystem {
}
public int getWaitingCustomers() {
return waitingCustomers;
}
@@ -101,8 +96,5 @@ public class Ordersystem {
sellKebab();
}
}
}
}
}