mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 07:29:45 +02:00
Anpassung Static
This commit is contained in:
@@ -10,7 +10,7 @@ public class PowerUpController {
|
||||
* isPlayer true -> PowerUp wird für spieler verwendet
|
||||
*
|
||||
*/
|
||||
public void activate(int powerup, boolean isPlayer) {
|
||||
public static void activate(int powerup, boolean isPlayer) {
|
||||
if (isPlayer) {
|
||||
if ( powerup == 1 ) {
|
||||
PanelBuilder.getInstancedObjects().getObjects().get(0).setSpeedMultiplicator(4);
|
||||
@@ -18,7 +18,7 @@ public class PowerUpController {
|
||||
}
|
||||
}
|
||||
|
||||
public void deactivate(int powerup, boolean isPlayer) {
|
||||
public static void deactivate(int powerup, boolean isPlayer) {
|
||||
if (isPlayer) {
|
||||
if ( powerup == 1 ) {
|
||||
PanelBuilder.getInstancedObjects().getObjects().get(0).setSpeedMultiplicator(Config.initialSpeedMultiplicator);
|
||||
@@ -26,7 +26,7 @@ public class PowerUpController {
|
||||
}
|
||||
}
|
||||
|
||||
public int getDuration(int powerup) {
|
||||
public static int getDuration(int powerup) {
|
||||
if ( powerup == 1 ) {
|
||||
return 10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user