package edu.stuy.starlorn.world;

import java.util.ArrayList;

import edu.stuy.starlorn.util.Preferences;

public class Path {
    protected ArrayList<Integer[]> _path;

    public Path() {
        _path = new ArrayList<Integer[]>();
    }

    public void generatePath(int numPoints) {
        //TODO: Get these from Preferences
        int screenWidth = 100;
        int screenHeight = 100;
        for (int i = 0; i < numPoints; i++) {
            int[] coords = new int[2];
            coords[0] = (int) (Math.random() * screenWidth);
            coords[1] = (int) (Math.random() * screenHeight);
            _path.add(coords);
        }
    }

    public void generatePath() {
        generatePath(10);
    }
}

@@ -60,52 +60,8 @@
 t;%0A%0A
-import edu.stuy.starlorn.util.Preferences;%0A%0A
 publ
@@ -400,19 +400,23 @@
         
-i
+I
 nt
+eger
 %5B%5D coord
@@ -423,19 +423,23 @@
 s = new 
-i
+I
 nt
+eger
 %5B2%5D;%0A   
@@ -670,11 +670,87 @@
 );%0A    %7D
+%0A%0A    public Integer%5B%5D getCoords(int n) %7B%0A        return _path.get(n);%0A    %7D
 %0A%7D%0A

Fix build errors in Path.