public void render() { ListIterator<Wall> it; Wall w; for (it = walls.listIterator(); it.hasNext(); ) { w = it.next(); w.render(); } }
boolean intersectsWall(Vector2f a, Vector2f b) { ListIterator<Wall> it; Wall w; // int x = 0; for (it = walls.listIterator(); it.hasNext(); ) { w = it.next(); // System.out.println("HEY " + (x++)); if (w.intersectsLine(a, b)) return true; } return false; }