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.cfg.Config;
import de.heatup.ui.Main; import de.heatup.ui.Main;
import de.heatup.ui.PanelBuilder; import de.heatup.ui.PanelBuilder;
import de.heatup.ui.StatusPanelAdder;
import de.heatup.ui.statusPanel.Score;
public class PowerUpController { public class PowerUpController {
private static ArrayList<Player> objects; private static ArrayList<Player> objects;
@@ -32,9 +34,7 @@ public class PowerUpController {
} }
if ( powerup == 2 ) { if ( powerup == 2 ) {
/* Score.raiseScore(100);
* Score um x erhoehen
*/
} }
} else { } else {
@@ -50,9 +50,7 @@ public class PowerUpController {
} }
if ( powerup == 2 ) { if ( powerup == 2 ) {
/* Score.reduceScore(100);
* Score um x reduzieren
*/
} }
} }
} }
@@ -90,13 +88,13 @@ public class PowerUpController {
} }
public static int getDuration(int powerup) { public static int getDuration(int powerup) {
if ( powerup == 1 ) { if ( powerup == 1 ) {
return 10; return 8;
} }
if (powerup == 0) { if (powerup == 0) {
return 5; return 5;
} }
if (powerup == 2) { if (powerup == 2) {
return 0; return 1;
} }
return 0; return 0;
} }