Changeset de19622 in java-rpg-common for Map.java


Ignore:
Timestamp:
Jun 11, 2010, 5:09:40 PM (15 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Parents:
d6c8eb6
Message:

Removed some VERY old commented VB code and allowed the structInfo file to specify a player's spawn point upon login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Map.java

    rd6c8eb6 rde19622  
    44public class Map {
    55        private Location[][] grid;
     6        public Point startingLoc;
    67       
    78        public Map(int x, int y) {
     
    4445                        in = new BufferedReader(new FileReader(structFile));
    4546                       
     47                        startingLoc = new Point(0, 0);
    4648                        while((loc = in.readLine()) != null) {
    4749                                str = in.readLine();
     
    5052                               
    5153                                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                                }
    5257                        }
    5358                } catch(IOException ioe) {
Note: See TracChangeset for help on using the changeset viewer.