mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 10: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.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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user