import java.util.*;
import java.io.*;

public class Map
{
    public Map (String fileToLoad, boolean debug)
    {
        _debug = debug;
    }
    
    private boolean _debug;
}
@@ -120,33 +120,1979 @@
    _
-debug = debug;%0A    %7D%0A    
+theMap = new Vector%3CMapElement%3E();%0A        _debug = debug;%0A%0A        if (!loadData(fileToLoad))%0A            System.out.println(%22Error in loading data file: %22+fileToLoad);%0A    %7D%0A%0A    private final boolean loadData (String file)%0A    %7B%0A        BufferedReader reader = null;%0A        boolean valid = true;%0A%0A        try%0A        %7B%0A            reader = new BufferedReader(new FileReader(file));%0A            String line = null;%0A%0A            while ((line = reader.readLine()) != null)%0A            %7B%0A                char%5B%5D asChar = line.toCharArray();%0A                %0A                if (_width == 0)%0A                    _width = asChar.length;%0A%0A                for (int i = 0; i %3C _width; i++)%0A                %7B%0A                    // remember x,y coords are reversed for arrays%0A                    %0A                    if (asChar%5Bi%5D == MapElement.TREE)%0A                    %7B%0A                        _theMap.add(new MapElement(new Coordinate(i, _height), MapElement.TREE));%0A                    %7D%0A                    else%0A                    %7B%0A                        if (asChar%5Bi%5D == MapElement.OPEN)%0A                        %7B%0A                            _theMap.add(new MapElement(new Coordinate(i, _height), MapElement.OPEN));%0A                        %7D%0A                        else%0A                        %7B%0A                            System.out.println(%22Unknown character in data file: %22+asChar%5Bi%5D);%0A%0A                            valid = false;%0A                        %7D%0A                    %7D%0A                %7D%0A%0A                _height++;%0A%0A            %7D%0A        %7D%0A        catch (Throwable ex)%0A        %7B%0A            valid = false;%0A%0A            ex.printStackTrace();%0A        %7D%0A        finally%0A        %7B%0A            try%0A            %7B%0A                reader.close();%0A            %7D%0A            catch (Throwable ex)%0A            %7B%0A            %7D%0A        %7D%0A%0A        return valid;%0A    %7D%0A    %0A    private Vector%3CMapElement%3E _theMap;%0A    private int _height = 0;%0A    private int _width = 0;
 %0A   

Update Map.java