reInit StatusPanelAdder

This commit is contained in:
fkl
2015-01-30 12:34:06 +01:00
parent 4d0a723a32
commit da6f351dee
3 changed files with 20 additions and 0 deletions
@@ -49,6 +49,15 @@ public class StatusPanelAdder{
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(){
@@ -12,6 +12,12 @@ public class Score {
public static int getScore(){
return score;
}
public static void reInit(){
score=0;
bonusTime=180;
}
/**
* @return Score as String
*/
@@ -13,6 +13,11 @@ public class Timer {
raiseSeconds();
}
}
public static void reInit(){
ticktick=0;
minute=0;
seconds=0;
}
private static void raiseSeconds(){
seconds++;
if (seconds==60){