package edu.stuy.starlorn.world;

import edu.stuy.starlorn.entities.Entity;

import java.util.LinkedList;

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

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

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

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

@@ -350,32 +350,109 @@
 .add(e);%0A    %7D%0A%0A
+    public void removeEntity(Entity e) %7B%0A        _entities.remove(e);%0A    %7D%0A%0A
     public void 

Add removeEntity method to World