Changeset de19622 in java-rpg-common


Ignore:
Timestamp:
Jun 11, 2010, 5:09:40 PM (14 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.

Files:
2 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) {
  • Player.java

    rd6c8eb6 rde19622  
    66
    77public class Player implements Comparable<Player> {
    8         /*
    9 Dim ID As Integer                                       added
    10 Dim GameID As Integer                           unnecessary     
    11 Dim Name As String                                      added
    12 Dim Password As String                          added
    13 Dim Online As Boolean                           probably unnecessary
    14 Dim State As Integer                            not added yet
    15 Dim currentChannel As Channel           added
    16 Dim Chat As String                                      not added yet
    17 Dim Job As Integer                                      added
    18 Dim Level As Integer                            added
    19 Dim Inventory() As Item                         not added yet
    20 Dim ItemAmount As Integer                       not added yet
    21 Dim Spells() As Spell                           not added yet
    22 Dim Location As MapPoint                        added
    23 Dim TargetLocation As MapPoint          added
    24 Dim TargetEnemy As Integer                      not added yet
    25 Dim TargetItem As Integer                       not added yet
    26 Dim Gender As Integer                           added
    27 Dim Speed As Integer                            added
    28 Dim Damage As String                            added
    29 Dim Cooldown As Integer                         added
    30 Dim LastAttacked As Integer                     added
    31 Dim ExtraPoints As Integer                      added
    32 Dim Strength As Integer                         added
    33 Dim Dexterity As Integer                        added
    34 Dim Constitution As Integer                     added
    35 Dim Charisma As Integer                         added
    36 Dim Wisdom As Integer                           added
    37 Dim Intelligence As Integer                     added
    38 Dim HitPoints As Integer                        added
    39 Dim MaxHitPoints As Integer                     added
    40 Dim ManaPoints As Integer                       added
    41 Dim MaxManaPoints As Integer            added
    42 Dim Experience As Integer                       added
    43 Dim Gold As Integer                                     added
    44         */
    458        private int id;
    469        private String name;
     
    337300
    338301        public void setLoc(Point loc) {
    339                 this.loc = loc;
     302                this.loc = new Point(loc.getX(), loc.getY());
    340303        }
    341304
Note: See TracChangeset for help on using the changeset viewer.