L2NpcWalkerNode.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. * @author Rayan RPG, JIV
  19. * @since 927
  20. */
  21. public class L2NpcWalkerNode
  22. {
  23. private final int _routeId;
  24. private final String _chatString;
  25. private final NpcStringId _npcString;
  26. private final int _moveX;
  27. private final int _moveY;
  28. private final int _moveZ;
  29. private final int _delay;
  30. private final boolean _running;
  31. public L2NpcWalkerNode(int routeId, NpcStringId npcString, String chatText, int moveX, int moveY, int moveZ, int delay, boolean running)
  32. {
  33. super();
  34. _routeId = routeId;
  35. _chatString = chatText;
  36. _npcString = npcString;
  37. _moveX = moveX;
  38. _moveY = moveY;
  39. _moveZ = moveZ;
  40. _delay = delay;
  41. _running = running;
  42. }
  43. public int getRouteId()
  44. {
  45. return _routeId;
  46. }
  47. public String getChatText()
  48. {
  49. if (_npcString != null)
  50. {
  51. throw new IllegalStateException("npcString is defined for walker route!");
  52. }
  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. }