Changeset de19622 in java-rpg-common
- Timestamp:
- Jun 11, 2010, 5:09:40 PM (14 years ago)
- Branches:
- master
- Parents:
- d6c8eb6
- Files:
-
- 2 edited
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) { -
Player.java
rd6c8eb6 rde19622 6 6 7 7 public class Player implements Comparable<Player> { 8 /*9 Dim ID As Integer added10 Dim GameID As Integer unnecessary11 Dim Name As String added12 Dim Password As String added13 Dim Online As Boolean probably unnecessary14 Dim State As Integer not added yet15 Dim currentChannel As Channel added16 Dim Chat As String not added yet17 Dim Job As Integer added18 Dim Level As Integer added19 Dim Inventory() As Item not added yet20 Dim ItemAmount As Integer not added yet21 Dim Spells() As Spell not added yet22 Dim Location As MapPoint added23 Dim TargetLocation As MapPoint added24 Dim TargetEnemy As Integer not added yet25 Dim TargetItem As Integer not added yet26 Dim Gender As Integer added27 Dim Speed As Integer added28 Dim Damage As String added29 Dim Cooldown As Integer added30 Dim LastAttacked As Integer added31 Dim ExtraPoints As Integer added32 Dim Strength As Integer added33 Dim Dexterity As Integer added34 Dim Constitution As Integer added35 Dim Charisma As Integer added36 Dim Wisdom As Integer added37 Dim Intelligence As Integer added38 Dim HitPoints As Integer added39 Dim MaxHitPoints As Integer added40 Dim ManaPoints As Integer added41 Dim MaxManaPoints As Integer added42 Dim Experience As Integer added43 Dim Gold As Integer added44 */45 8 private int id; 46 9 private String name; … … 337 300 338 301 public void setLoc(Point loc) { 339 this.loc = loc;302 this.loc = new Point(loc.getX(), loc.getY()); 340 303 } 341 304
Note:
See TracChangeset
for help on using the changeset viewer.