Packages haben nun grundsätzlich singulare Namen.

This commit is contained in:
JPT committed 2014-10-28 10:26:54 +01:00
1 parent 3e7d54902f
commit dde94437fc
14 files changed
+22 -22

No files matched your search

@@ -0,0 +1,34 @@
package de.teamteamteam.spacescooter.entity;
import java.util.ArrayList;
public abstract class Entity implements Updateable, Paintable {
public static ArrayList<Entity> entities = null;
private static boolean isEnemy = false;
/**
* We need to initialize the ArrayList, so the EntityUpdateThread won't beat us.
*/
static {
Entity.entities = new ArrayList<Entity>();
}
public static boolean isEnemy() {
return isEnemy;
}
protected void setEnemy(boolean isEnemy) {
this.isEnemy = isEnemy;
}
/**
* Constructor.
* All entities are within a static array list for our convenience.
*/
public Entity() {
Entity.entities.add(this);
}
}