package edu.stuy.starlorn.world;

import edu.stuy.starlorn.entities.Entity;

import java.util.ArrayList;

/*
 * Represents a world with entities in it
 */
public class World {
    private ArrayList<Entity> _entities;

    public World() {
        _entities = new ArrayList<Entity>();
    }

    public void addEntity(Entity e) {
        _entities.add(e);
    }

    public void stepAll() {
        for (Entity e : _entities) {
            e.preStep();
            e.step();
            e.postStep();
        }
    }
}

@@ -87,21 +87,22 @@
 va.util.
-Array
+Linked
 List;%0A%0A/
@@ -182,21 +182,22 @@
 private 
-Array
+Linked
 List%3CEnt
@@ -262,13 +262,14 @@
 new 
-Array
+Linked
 List

Change ArrayList of Entities to LinkedList