L2NpcWalkerNode.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. import com.l2jserver.gameserver.templates.StatsSet;
  17. /**
  18. *
  19. * @author Rayan RPG
  20. * @since 927
  21. *
  22. */
  23. public class L2NpcWalkerNode
  24. {
  25. private int _routeId;
  26. private int _npcId;
  27. private String _movePoint;
  28. private String _chatText;
  29. private int _moveX;
  30. private int _moveY;
  31. private int _moveZ;
  32. private int _delay;
  33. private boolean _running;
  34. public void setRunning(boolean val)
  35. {
  36. _running = val;
  37. }
  38. public void setRouteId(int id)
  39. {
  40. _routeId = id;
  41. }
  42. public void setNpcId(int id)
  43. {
  44. _npcId = id;
  45. }
  46. public void setMovePoint(String val)
  47. {
  48. _movePoint = val;
  49. }
  50. public void setChatText(String val)
  51. {
  52. _chatText = val;
  53. }
  54. public void setMoveX(int val)
  55. {
  56. _moveX = val;
  57. }
  58. public void setMoveY(int val)
  59. {
  60. _moveY = val;
  61. }
  62. public void setMoveZ(int val)
  63. {
  64. _moveZ = val;
  65. }
  66. public void setDelay(int val)
  67. {
  68. _delay = val;
  69. }
  70. public int getRouteId()
  71. {
  72. return _routeId;
  73. }
  74. public int getNpcId()
  75. {
  76. return _npcId;
  77. }
  78. public String getMovePoint()
  79. {
  80. return _movePoint;
  81. }
  82. public String getChatText()
  83. {
  84. return _chatText;
  85. }
  86. public int getMoveX()
  87. {
  88. return _moveX;
  89. }
  90. public int getMoveY()
  91. {
  92. return _moveY;
  93. }
  94. public int getMoveZ()
  95. {
  96. return _moveZ;
  97. }
  98. public int getDelay()
  99. {
  100. return _delay;
  101. }
  102. public boolean getRunning()
  103. {
  104. return _running;
  105. }
  106. /**
  107. * Constructor of L2NpcWalker.<BR><BR>
  108. */
  109. public L2NpcWalkerNode()
  110. {}
  111. /**
  112. * Constructor of L2NpcWalker.<BR><BR>
  113. * @param set The StatsSet object to transfert data to the method
  114. */
  115. public L2NpcWalkerNode(StatsSet set)
  116. {
  117. _npcId = set.getInteger("npc_id");
  118. _movePoint = set.getString("move_point");
  119. _chatText = set.getString("chatText");
  120. _moveX = set.getInteger("move_x");
  121. _moveX = set.getInteger("move_y");
  122. _moveX = set.getInteger("move_z");
  123. _delay = set.getInteger("delay");
  124. }
  125. }