2
0

L2NpcWalkerNode.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.network.NpcStringId;
  17. /**
  18. *
  19. * @author Rayan RPG, JIV
  20. * @since 927
  21. *
  22. */
  23. public class L2NpcWalkerNode
  24. {
  25. private int _routeId;
  26. private String _chatString;
  27. private NpcStringId _npcString;
  28. private int _moveX;
  29. private int _moveY;
  30. private int _moveZ;
  31. private int _delay;
  32. private boolean _running;
  33. public L2NpcWalkerNode(int routeId, NpcStringId npcString, String chatText, int moveX, int moveY, int moveZ, int delay, boolean running)
  34. {
  35. super();
  36. this._routeId = routeId;
  37. this._chatString = chatText;
  38. this._npcString = npcString;
  39. this._moveX = moveX;
  40. this._moveY = moveY;
  41. this._moveZ = moveZ;
  42. this._delay = delay;
  43. this._running = running;
  44. }
  45. public int getRouteId()
  46. {
  47. return _routeId;
  48. }
  49. public String getChatText()
  50. {
  51. if (_npcString != null)
  52. throw new IllegalStateException("npcString is defined for walker route!");
  53. return _chatString;
  54. }
  55. public int getMoveX()
  56. {
  57. return _moveX;
  58. }
  59. public int getMoveY()
  60. {
  61. return _moveY;
  62. }
  63. public int getMoveZ()
  64. {
  65. return _moveZ;
  66. }
  67. public int getDelay()
  68. {
  69. return _delay;
  70. }
  71. public boolean getRunning()
  72. {
  73. return _running;
  74. }
  75. public NpcStringId getNpcString()
  76. {
  77. return _npcString;
  78. }
  79. }