Cleanup unneccessary ArrayList in class Background.
This commit is contained in:
parent
0a695432a0
commit
b1e72da839
@ -1,23 +1,11 @@
|
|||||||
package de.teamteamteam.spacescooter.background;
|
package de.teamteamteam.spacescooter.background;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import de.teamteamteam.spacescooter.entity.Entity;
|
import de.teamteamteam.spacescooter.entity.Entity;
|
||||||
|
|
||||||
public abstract class Background extends Entity {
|
public abstract class Background extends Entity {
|
||||||
|
|
||||||
public static ArrayList<Background> backgrounds = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* We need to initialize the ArrayList, so the EntityUpdateThread won't beat us.
|
|
||||||
*/
|
|
||||||
static {
|
|
||||||
Background.backgrounds = new ArrayList<Background>();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Background(int x, int y) {
|
public Background(int x, int y) {
|
||||||
super(x, y);
|
super(x, y);
|
||||||
Background.backgrounds.add(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user