mirror of
https://inf.pirckheimer-gymnasium.de/kebab/kebab
synced 2026-08-26 16:31:23 +00:00
utils und Bestellsystem gemacht
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
public class Ordersystem {
|
||||||
|
private int money = 0;
|
||||||
|
private int kebabPrice = 5;
|
||||||
|
private int upgradeLevel = 0;
|
||||||
|
private int kebabSold = 0;
|
||||||
|
|
||||||
|
public void sellKebab() {
|
||||||
|
Money += kebabPrice;
|
||||||
|
kebabSold++;
|
||||||
|
}
|
||||||
|
public int getMoney(){
|
||||||
|
return money;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getKebabSold(){
|
||||||
|
return kebabSold;
|
||||||
|
}
|
||||||
|
public void setKebabPrice(int price){
|
||||||
|
kebabPrice = price;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user