Legend:
- Unmodified
- Added
- Removed
-
Map.java
rd6c8eb6 rde19622 4 4 public class Map { 5 5 private Location[][] grid; 6 public Point startingLoc; 6 7 7 8 public Map(int x, int y) { … … 44 45 in = new BufferedReader(new FileReader(structFile)); 45 46 47 startingLoc = new Point(0, 0); 46 48 while((loc = in.readLine()) != null) { 47 49 str = in.readLine(); … … 50 52 51 53 grid[x-1][y-1].setStruct(structMap.get(StructureType.valueOf(loc))); 54 if(StructureType.valueOf(loc) == StructureType.LoginPedestal) { 55 startingLoc = new Point(100*x-40, 100*y-50); 56 } 52 57 } 53 58 } catch(IOException ioe) {
Note:
See TracChangeset
for help on using the changeset viewer.