Anpassung Static
This commit is contained in:
1 parent
8afbbe4a4d
commit
0cde2135af
1 file changed
+3
-3
@@ -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