Funktion zum Score-PowerUp hinzugefuegt.

This commit is contained in:
toksikk
2015-01-09 17:00:41 +01:00
parent b6fff51346
commit 8cba33a4bd
@@ -5,6 +5,8 @@ import java.util.ArrayList;
import de.heatup.cfg.Config;
import de.heatup.ui.Main;
import de.heatup.ui.PanelBuilder;
import de.heatup.ui.StatusPanelAdder;
import de.heatup.ui.statusPanel.Score;
public class PowerUpController {
private static ArrayList<Player> objects;
@@ -32,9 +34,7 @@ public class PowerUpController {
}
if ( powerup == 2 ) {
/*
* Score um x erhoehen
*/
Score.raiseScore(100);
}
} else {
@@ -50,9 +50,7 @@ public class PowerUpController {
}
if ( powerup == 2 ) {
/*
* Score um x reduzieren
*/
Score.reduceScore(100);
}
}
}
@@ -90,13 +88,13 @@ public class PowerUpController {
}
public static int getDuration(int powerup) {
if ( powerup == 1 ) {
return 10;
return 8;
}
if (powerup == 0) {
return 5;
}
if (powerup == 2) {
return 0;
return 1;
}
return 0;
}