reInit StatusPanelAdder
This commit is contained in:
1 parent
4d0a723a32
commit
da6f351dee
3 files changed
+20
No files matched your search
@@ -49,6 +49,15 @@ public class StatusPanelAdder{
|
|||||||
private static JProgressBar tempBar;
|
private static JProgressBar tempBar;
|
||||||
|
|
||||||
|
|
||||||
|
public static void reInit(){
|
||||||
|
labelTempC= new JLabel("§");
|
||||||
|
scoreLabel= new JLabel(" ");
|
||||||
|
powerUpLabel = new JLabel(" ");
|
||||||
|
timeLabel = new JLabel("0");
|
||||||
|
barSpeed=0.01;
|
||||||
|
tempBar.setValue(30);
|
||||||
|
Timer.reInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void raiseMod(){
|
public static void raiseMod(){
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ public class Score {
|
|||||||
public static int getScore(){
|
public static int getScore(){
|
||||||
return score;
|
return score;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void reInit(){
|
||||||
|
score=0;
|
||||||
|
bonusTime=180;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Score as String
|
* @return Score as String
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ public class Timer {
|
|||||||
raiseSeconds();
|
raiseSeconds();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static void reInit(){
|
||||||
|
ticktick=0;
|
||||||
|
minute=0;
|
||||||
|
seconds=0;
|
||||||
|
}
|
||||||
private static void raiseSeconds(){
|
private static void raiseSeconds(){
|
||||||
seconds++;
|
seconds++;
|
||||||
if (seconds==60){
|
if (seconds==60){
|
||||||
|
|||||||
Reference in new issue
Block a user