2
0

FishData.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.model;
  16. public class FishData
  17. {
  18. private int _id;
  19. private int _level;
  20. private String _name;
  21. private int _hp;
  22. private int _hpRegen;
  23. private int _type;
  24. private int _group;
  25. private int _fishGuts;
  26. private int _gutsCheckTime;
  27. private int _waitTime;
  28. private int _combatTime;
  29. public FishData(int id, int lvl, String name, int HP, int HpRegen, int type, int group, int fish_guts, int guts_check_time, int wait_time, int combat_time)
  30. {
  31. _id = id;
  32. _level = lvl;
  33. _name = name.intern();
  34. _hp = HP;
  35. _hpRegen = HpRegen;
  36. _type = type;
  37. _group = group;
  38. _fishGuts = fish_guts;
  39. _gutsCheckTime = guts_check_time;
  40. _waitTime = wait_time;
  41. _combatTime = combat_time;
  42. }
  43. public FishData(FishData copyOf)
  44. {
  45. _id = copyOf.getId();
  46. _level = copyOf.getLevel();
  47. _name = copyOf.getName();
  48. _hp = copyOf.getHP();
  49. _hpRegen = copyOf.getHpRegen();
  50. _type = copyOf.getType();
  51. _group = copyOf.getGroup();
  52. _fishGuts = copyOf.getFishGuts();
  53. _gutsCheckTime = copyOf.getGutsCheckTime();
  54. _waitTime = copyOf.getWaitTime();
  55. _combatTime = copyOf.getCombatTime();
  56. }
  57. /**
  58. * @return Returns the id.
  59. */
  60. public int getId()
  61. {
  62. return _id;
  63. }
  64. /**
  65. * @return Returns the level.
  66. */
  67. public int getLevel()
  68. {
  69. return _level;
  70. }
  71. /**
  72. * @return Returns the name.
  73. */
  74. public String getName()
  75. {
  76. return _name;
  77. }
  78. public int getHP()
  79. {
  80. return _hp;
  81. }
  82. public int getHpRegen()
  83. {
  84. return _hpRegen;
  85. }
  86. public int getType()
  87. {
  88. return _type;
  89. }
  90. public int getGroup()
  91. {
  92. return _group;
  93. }
  94. public int getFishGuts()
  95. {
  96. return _fishGuts;
  97. }
  98. public int getGutsCheckTime()
  99. {
  100. return _gutsCheckTime;
  101. }
  102. public int getWaitTime()
  103. {
  104. return _waitTime;
  105. }
  106. public int getCombatTime()
  107. {
  108. return _combatTime;
  109. }
  110. public void setType(int type)
  111. {
  112. _type = type;
  113. }
  114. }