mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 07:19:46 +02:00
Funktion zum Score-PowerUp hinzugefuegt.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user