@@ -108,4 +108,6 @@ public abstract class DrawEngine {
public void remove(){
this.terrain.getEntities().remove(this);
}
+
@@ -476,4 +476,8 @@ public class Terrain extends JPanel {
pathgenerate = 1;
+ public List<DrawEngine> getEntities() {
+ return entities;
+ }