Cleanup unneccessary ArrayList in class Background.

This commit is contained in:
Jan Philipp Timme 2014-11-04 23:28:57 +01:00
parent 0a695432a0
commit b1e72da839
1 changed files with 0 additions and 12 deletions

View File

@ -1,23 +1,11 @@
package de.teamteamteam.spacescooter.background;
import java.util.ArrayList;
import de.teamteamteam.spacescooter.entity.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) {
super(x, y);
Background.backgrounds.add(this);
}
}