L2NpcWalkerNode.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. * This program is free software; you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation; either version 2, or (at your option)
  5. * any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program; if not, write to the Free Software
  14. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  15. * 02111-1307, USA.
  16. *
  17. * http://www.gnu.org/copyleft/gpl.html
  18. */
  19. package net.sf.l2j.gameserver.model;
  20. import net.sf.l2j.gameserver.templates.StatsSet;
  21. /**
  22. *
  23. * @author Rayan RPG
  24. * @since 927
  25. *
  26. */
  27. public class L2NpcWalkerNode
  28. {
  29. private int _routeId;
  30. private int _npcId;
  31. private String _movePoint;
  32. private String _chatText;
  33. private int _moveX;
  34. private int _moveY;
  35. private int _moveZ;;
  36. private int _delay;
  37. private boolean _running;
  38. public void setRunning(boolean val)
  39. {
  40. _running = val;
  41. }
  42. public void setRouteId(int id)
  43. {
  44. _routeId = id;
  45. }
  46. public void setNpcId(int id)
  47. {
  48. _npcId = id;
  49. }
  50. public void setMovePoint(String val)
  51. {
  52. _movePoint = val;
  53. }
  54. public void setChatText(String val)
  55. {
  56. _chatText = val;
  57. }
  58. public void setMoveX(int val)
  59. {
  60. _moveX = val;
  61. }
  62. public void setMoveY(int val)
  63. {
  64. _moveY = val;
  65. }
  66. public void setMoveZ(int val)
  67. {
  68. _moveZ = val;
  69. }
  70. public void setDelay(int val)
  71. {
  72. _delay = val;
  73. }
  74. public int getRouteId()
  75. {
  76. return _routeId;
  77. }
  78. public int getNpcId()
  79. {
  80. return _npcId;
  81. }
  82. public String getMovePoint()
  83. {
  84. return _movePoint;
  85. }
  86. public String getChatText()
  87. {
  88. return _chatText;
  89. }
  90. public int getMoveX()
  91. {
  92. return _moveX;
  93. }
  94. public int getMoveY()
  95. {
  96. return _moveY;
  97. }
  98. public int getMoveZ()
  99. {
  100. return _moveZ;
  101. }
  102. public int getDelay()
  103. {
  104. return _delay;
  105. }
  106. public boolean getRunning()
  107. {
  108. return _running;
  109. }
  110. /**
  111. * Constructor of L2NpcWalker.<BR><BR>
  112. *
  113. * @param set The StatsSet object to transfert data to the method
  114. *
  115. */
  116. public L2NpcWalkerNode()
  117. {
  118. }
  119. /**
  120. * Constructor of L2NpcWalker.<BR><BR>
  121. *
  122. * @param set The StatsSet object to transfert data to the method
  123. *
  124. */
  125. public L2NpcWalkerNode(StatsSet set)
  126. {
  127. _npcId = set.getInteger("npc_id");
  128. _movePoint = set.getString("move_point");
  129. _chatText = set.getString("chatText");
  130. _moveX = set.getInteger("move_x");
  131. _moveX = set.getInteger("move_y");
  132. _moveX = set.getInteger("move_z");
  133. _delay = set.getInteger("delay");
  134. }
  135. }