Advertisement
Guest User

Untitled

a guest
May 28th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. package com.rs.worldserver.model.player;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class PlayerDetails implements Serializable {
  6.  
  7. public String username;
  8. public String password;
  9.  
  10. public int absX;
  11. public int absY;
  12. public int heightLevel;
  13.  
  14. public boolean appearanceSet;
  15.  
  16. public int[] playerItem;
  17. public int[] playerItemN;
  18.  
  19. public int[] playerEquipment;
  20. public int[] playerEquipmentN;
  21.  
  22. public int[] playerLevel;
  23. public int[] playerXP;
  24. public int hitpoints;
  25.  
  26. public int[] bankItems;
  27. public int[] bankItemsN;
  28. public int playerBankSize;
  29.  
  30. public int[] playerLook;
  31.  
  32. public long[] friends;
  33. public int friendsSize;
  34. public long[] ignores;
  35. public int ignoresSize;
  36.  
  37. public PlayerDetails(Player p) {
  38. username = p.getUsername();
  39. password = p.getPassword();
  40. absX = p.getAbsX();
  41. absY = p.getAbsY();
  42. heightLevel = p.getHeightLevel();
  43. appearanceSet = p.appearanceSet;
  44. playerItem = p.playerItems;
  45. playerItemN = p.playerItemsN;
  46. playerEquipment = p.playerEquipment;
  47. playerEquipmentN = p.playerEquipmentN;
  48. playerLevel = p.playerLevel;
  49. playerXP = p.playerXP;
  50. hitpoints = p.hitpoints;
  51. bankItems = p.bankItems;
  52. bankItemsN = p.bankItemsN;
  53. playerLook = p.playerLook;
  54. playerBankSize = p.getPlayerBankSize();
  55. if (p.getFriends() != null) {
  56. friends = p.getFriends();
  57. } else {
  58. friends = new long[200];
  59. }
  60. friendsSize = p.getFriendsSize();
  61. if (p.getIgnores() != null) {
  62. ignores = p.getIgnores();
  63. } else {
  64. ignores = new long[100];
  65. }
  66. ignoresSize = p.getIgnoresSize();
  67. }
  68.  
  69. /**
  70. * @return the username
  71. */
  72. public String getUsername() {
  73. return username;
  74. }
  75.  
  76. /**
  77. * @return the password
  78. */
  79. public String getPassword() {
  80. return password;
  81. }
  82.  
  83. /**
  84. * @return the absX
  85. */
  86. public int getAbsX() {
  87. return absX;
  88. }
  89.  
  90. /**
  91. * @return the absY
  92. */
  93. public int getAbsY() {
  94. return absY;
  95. }
  96.  
  97. public int getHeightlevel() {
  98. return heightLevel;
  99. }
  100.  
  101. public boolean isAppearanceSet() {
  102. return appearanceSet;
  103. }
  104.  
  105. public int[] getPlayerItem() {
  106. return playerItem;
  107. }
  108.  
  109. public int[] getPlayerItemN() {
  110. return playerItemN;
  111. }
  112.  
  113. public int[] getPlayerEquipment() {
  114. return playerEquipment;
  115. }
  116.  
  117. public int[] getPlayerLevel() {
  118. return playerLevel;
  119. }
  120.  
  121. public int[] getPlayerXP() {
  122. return playerXP;
  123. }
  124.  
  125. public int getHitpoints() {
  126. return hitpoints;
  127. }
  128.  
  129. public int[] getPlayerEquipmentN() {
  130. return playerEquipmentN;
  131. }
  132.  
  133. public int[] getPlayerLook() {
  134. return playerLook;
  135. }
  136.  
  137. public int[] getBankItems() {
  138. return bankItems;
  139. }
  140.  
  141. public int[] getBankItemsN() {
  142. return bankItemsN;
  143. }
  144.  
  145. public int getPlayerBankSize() {
  146. return playerBankSize;
  147. }
  148.  
  149. public long[] getFriends() {
  150. return friends;
  151. }
  152.  
  153. public int getFriendsSize() {
  154. return friendsSize;
  155. }
  156.  
  157. public long[] getIgnores() {
  158. return ignores;
  159. }
  160.  
  161. public int getIgnoresSize() {
  162. return ignoresSize;
  163. }
  164.  
  165. private static final long serialVersionUID = 1L;
  166. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement