L2NpcWalkerNode.java 1.9 KB

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