L2Spawn.java 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. /*
  2. * Copyright (C) 2004-2013 L2J Server
  3. *
  4. * This file is part of L2J Server.
  5. *
  6. * L2J Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.model;
  20. import java.lang.reflect.Constructor;
  21. import java.util.List;
  22. import java.util.logging.Level;
  23. import java.util.logging.Logger;
  24. import javolution.util.FastList;
  25. import com.l2jserver.Config;
  26. import com.l2jserver.gameserver.GeoData;
  27. import com.l2jserver.gameserver.ThreadPoolManager;
  28. import com.l2jserver.gameserver.datatables.TerritoryTable;
  29. import com.l2jserver.gameserver.idfactory.IdFactory;
  30. import com.l2jserver.gameserver.model.actor.L2Attackable;
  31. import com.l2jserver.gameserver.model.actor.L2Character;
  32. import com.l2jserver.gameserver.model.actor.L2Npc;
  33. import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
  34. import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
  35. import com.l2jserver.util.Rnd;
  36. /**
  37. * This class manages the spawn and respawn of a group of L2NpcInstance that are in the same are and have the same type.<br>
  38. * <B><U>Concept</U>:</B><br>
  39. * L2NpcInstance can be spawned either in a random position into a location area (if Lox=0 and Locy=0), either at an exact position.<br>
  40. * The heading of the L2NpcInstance can be a random heading if not defined (value= -1) or an exact heading (ex : merchant...).
  41. * @author Nightmare
  42. */
  43. public class L2Spawn
  44. {
  45. protected static final Logger _log = Logger.getLogger(L2Spawn.class.getName());
  46. /** The link on the L2NpcTemplate object containing generic and static properties of this spawn (ex : RewardExp, RewardSP, AggroRange...) */
  47. private L2NpcTemplate _template;
  48. // private String _location = DEFAULT_LOCATION;
  49. /** The identifier of the location area where L2NpcInstance can be spwaned */
  50. private int _location;
  51. /** The maximum number of L2NpcInstance that can manage this L2Spawn */
  52. private int _maximumCount;
  53. /** The current number of L2NpcInstance managed by this L2Spawn */
  54. private int _currentCount;
  55. /** The current number of SpawnTask in progress or stand by of this L2Spawn */
  56. protected int _scheduledCount;
  57. /** The X position of the spwan point */
  58. private int _locX;
  59. /** The Y position of the spwan point */
  60. private int _locY;
  61. /** The Z position of the spwan point */
  62. private int _locZ;
  63. /** The heading of L2NpcInstance when they are spawned */
  64. private int _heading;
  65. /** Minimum respawn delay */
  66. private int _respawnMinDelay;
  67. /** Maximum respawn delay */
  68. private int _respawnMaxDelay;
  69. private int _instanceId = 0;
  70. /** The generic constructor of L2NpcInstance managed by this L2Spawn */
  71. private Constructor<?> _constructor;
  72. /** If True a L2NpcInstance is respawned each time that another is killed */
  73. private boolean _doRespawn;
  74. /** If true then spawn is custom */
  75. private boolean _customSpawn;
  76. private L2Npc _lastSpawn;
  77. private static List<SpawnListener> _spawnListeners = new FastList<>();
  78. private boolean _isNoRndWalk = false; // Is no random walk
  79. /** The task launching the function doSpawn() */
  80. class SpawnTask implements Runnable
  81. {
  82. private final L2Npc _oldNpc;
  83. public SpawnTask(L2Npc pOldNpc)
  84. {
  85. _oldNpc = pOldNpc;
  86. }
  87. @Override
  88. public void run()
  89. {
  90. try
  91. {
  92. // doSpawn();
  93. respawnNpc(_oldNpc);
  94. }
  95. catch (Exception e)
  96. {
  97. _log.log(Level.WARNING, "", e);
  98. }
  99. _scheduledCount--;
  100. }
  101. }
  102. /**
  103. * Constructor of L2Spawn.<br>
  104. * <B><U>Concept</U>:</B><br>
  105. * Each L2Spawn owns generic and static properties (ex : RewardExp, RewardSP, AggroRange...).<br>
  106. * All of those properties are stored in a different L2NpcTemplate for each type of L2Spawn. Each template is loaded once in the server cache memory (reduce memory use).<br>
  107. * When a new instance of L2Spawn is created, server just create a link between the instance and the template.<br>
  108. * This link is stored in <B>_template</B> Each L2NpcInstance is linked to a L2Spawn that manages its spawn and respawn (delay, location...).<br>
  109. * This link is stored in <B>_spawn</B> of the L2NpcInstance.<br>
  110. * <B><U> Actions</U>:</B><br>
  111. * <ul>
  112. * <li>Set the _template of the L2Spawn</li>
  113. * <li>Calculate the implementationName used to generate the generic constructor of L2NpcInstance managed by this L2Spawn</li>
  114. * <li>Create the generic constructor of L2NpcInstance managed by this L2Spawn</li>
  115. * </ul>
  116. * @param mobTemplate The L2NpcTemplate to link to this L2Spawn
  117. * @throws SecurityException
  118. * @throws ClassNotFoundException
  119. * @throws NoSuchMethodException
  120. */
  121. public L2Spawn(L2NpcTemplate mobTemplate) throws SecurityException, ClassNotFoundException, NoSuchMethodException
  122. {
  123. // Set the _template of the L2Spawn
  124. _template = mobTemplate;
  125. if (_template == null)
  126. {
  127. return;
  128. }
  129. // Create the generic constructor of L2NpcInstance managed by this L2Spawn
  130. Class<?>[] parameters =
  131. {
  132. int.class,
  133. Class.forName("com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate")
  134. };
  135. _constructor = Class.forName("com.l2jserver.gameserver.model.actor.instance." + _template.getType() + "Instance").getConstructor(parameters);
  136. }
  137. /**
  138. * @return the maximum number of L2NpcInstance that this L2Spawn can manage.
  139. */
  140. public int getAmount()
  141. {
  142. return _maximumCount;
  143. }
  144. /**
  145. * @return the Identifier of the location area where L2NpcInstance can be spwaned.
  146. */
  147. public int getLocation()
  148. {
  149. return _location;
  150. }
  151. public Location getSpawnLocation()
  152. {
  153. return new Location(getLocx(), getLocy(), getLocz(), getHeading());
  154. }
  155. /**
  156. * @return the X position of the spwan point.
  157. */
  158. public int getLocx()
  159. {
  160. return _locX;
  161. }
  162. /**
  163. * @return the Y position of the spwan point.
  164. */
  165. public int getLocy()
  166. {
  167. return _locY;
  168. }
  169. /**
  170. * @return the Z position of the spwan point.
  171. */
  172. public int getLocz()
  173. {
  174. return _locZ;
  175. }
  176. /**
  177. * @return the Identifier of the L2NpcInstance manage by this L2Spawn contained in the L2NpcTemplate.
  178. */
  179. public int getNpcid()
  180. {
  181. return _template.getNpcId();
  182. }
  183. /**
  184. * @return the heading of L2NpcInstance when they are spawned.
  185. */
  186. public int getHeading()
  187. {
  188. return _heading;
  189. }
  190. /**
  191. * @return min respawn delay.
  192. */
  193. public int getRespawnMinDelay()
  194. {
  195. return _respawnMinDelay;
  196. }
  197. /**
  198. * @return max respawn delay.
  199. */
  200. public int getRespawnMaxDelay()
  201. {
  202. return _respawnMaxDelay;
  203. }
  204. /**
  205. * Set the maximum number of L2NpcInstance that this L2Spawn can manage.
  206. * @param amount
  207. */
  208. public void setAmount(int amount)
  209. {
  210. _maximumCount = amount;
  211. }
  212. /**
  213. * Set the Identifier of the location area where L2NpcInstance can be spawned.
  214. * @param location
  215. */
  216. public void setLocation(int location)
  217. {
  218. _location = location;
  219. }
  220. /**
  221. * Set Minimum Respawn Delay.
  222. * @param date
  223. */
  224. public void setRespawnMinDelay(int date)
  225. {
  226. _respawnMinDelay = date;
  227. }
  228. /**
  229. * Set Maximum Respawn Delay.
  230. * @param date
  231. */
  232. public void setRespawnMaxDelay(int date)
  233. {
  234. _respawnMaxDelay = date;
  235. }
  236. /**
  237. * Set the X position of the spawn point.
  238. * @param locx
  239. */
  240. public void setLocx(int locx)
  241. {
  242. _locX = locx;
  243. }
  244. /**
  245. * Set the Y position of the spawn point.
  246. * @param locy
  247. */
  248. public void setLocy(int locy)
  249. {
  250. _locY = locy;
  251. }
  252. /**
  253. * Set the Z position of the spawn point.
  254. * @param locz
  255. */
  256. public void setLocz(int locz)
  257. {
  258. _locZ = locz;
  259. }
  260. /**
  261. * Set the XYZ position of the spawn point.
  262. * @param loc
  263. */
  264. public void setLocation(Location loc)
  265. {
  266. _locX = loc.getX();
  267. _locY = loc.getY();
  268. _locZ = loc.getZ();
  269. _heading = loc.getHeading();
  270. }
  271. /**
  272. * Set the heading of L2NpcInstance when they are spawned.
  273. * @param heading
  274. */
  275. public void setHeading(int heading)
  276. {
  277. _heading = heading;
  278. }
  279. /**
  280. * Set the spawn as custom.<BR>
  281. * @param custom
  282. */
  283. public void setCustom(boolean custom)
  284. {
  285. _customSpawn = custom;
  286. }
  287. /**
  288. * @return type of spawn.
  289. */
  290. public boolean isCustom()
  291. {
  292. return _customSpawn;
  293. }
  294. /**
  295. * Decrease the current number of L2NpcInstance of this L2Spawn and if necessary create a SpawnTask to launch after the respawn Delay. <B><U> Actions</U> :</B> <li>Decrease the current number of L2NpcInstance of this L2Spawn</li> <li>Check if respawn is possible to prevent multiple respawning
  296. * caused by lag</li> <li>Update the current number of SpawnTask in progress or stand by of this L2Spawn</li> <li>Create a new SpawnTask to launch after the respawn Delay</li> <FONT COLOR=#FF0000><B> <U>Caution</U> : A respawn is possible ONLY if _doRespawn=True and _scheduledCount +
  297. * _currentCount < _maximumCount</B></FONT>
  298. * @param oldNpc
  299. */
  300. public void decreaseCount(L2Npc oldNpc)
  301. {
  302. // sanity check
  303. if (_currentCount <= 0)
  304. {
  305. return;
  306. }
  307. // Decrease the current number of L2NpcInstance of this L2Spawn
  308. _currentCount--;
  309. // Check if respawn is possible to prevent multiple respawning caused by lag
  310. if (_doRespawn && ((_scheduledCount + _currentCount) < _maximumCount))
  311. {
  312. // Update the current number of SpawnTask in progress or stand by of this L2Spawn
  313. _scheduledCount++;
  314. // Create a new SpawnTask to launch after the respawn Delay
  315. // ClientScheduler.getInstance().scheduleLow(new SpawnTask(npcId), _respawnDelay);
  316. ThreadPoolManager.getInstance().scheduleGeneral(new SpawnTask(oldNpc), hasRespawnRandom() ? Rnd.get(_respawnMinDelay, _respawnMaxDelay) : _respawnMinDelay);
  317. }
  318. }
  319. /**
  320. * Create the initial spawning and set _doRespawn to False, if respawn time set to 0, or set it to True otherwise.
  321. * @return The number of L2NpcInstance that were spawned
  322. */
  323. public int init()
  324. {
  325. while (_currentCount < _maximumCount)
  326. {
  327. doSpawn();
  328. }
  329. _doRespawn = _respawnMinDelay != 0;
  330. return _currentCount;
  331. }
  332. /**
  333. * Create a L2NpcInstance in this L2Spawn.
  334. * @param val
  335. * @return
  336. */
  337. public L2Npc spawnOne(boolean val)
  338. {
  339. return doSpawn(val);
  340. }
  341. /**
  342. * @return true if respawn enabled
  343. */
  344. public boolean isRespawnEnabled()
  345. {
  346. return _doRespawn;
  347. }
  348. /**
  349. * Set _doRespawn to False to stop respawn in this L2Spawn.
  350. */
  351. public void stopRespawn()
  352. {
  353. _doRespawn = false;
  354. }
  355. /**
  356. * Set _doRespawn to True to start or restart respawn in this L2Spawn.
  357. */
  358. public void startRespawn()
  359. {
  360. _doRespawn = true;
  361. }
  362. public L2Npc doSpawn()
  363. {
  364. return doSpawn(false);
  365. }
  366. /**
  367. * Create the L2NpcInstance, add it to the world and lauch its OnSpawn action.<br>
  368. * <B><U>Concept</U>:</B><br>
  369. * L2NpcInstance can be spawned either in a random position into a location area (if Lox=0 and Locy=0), either at an exact position.<br>
  370. * The heading of the L2NpcInstance can be a random heading if not defined (value= -1) or an exact heading (ex : merchant...).<br>
  371. * <B><U>Actions for an random spawn into location area</U>:<I> (if Locx=0 and Locy=0)</I></B>
  372. * <ul>
  373. * <li>Get L2NpcInstance Init parameters and its generate an Identifier</li>
  374. * <li>Call the constructor of the L2NpcInstance</li>
  375. * <li>Calculate the random position in the location area (if Locx=0 and Locy=0) or get its exact position from the L2Spawn</li>
  376. * <li>Set the position of the L2NpcInstance</li>
  377. * <li>Set the HP and MP of the L2NpcInstance to the max</li>
  378. * <li>Set the heading of the L2NpcInstance (random heading if not defined : value=-1)</li>
  379. * <li>Link the L2NpcInstance to this L2Spawn</li>
  380. * <li>Init other values of the L2NpcInstance (ex : from its L2CharTemplate for INT, STR, DEX...) and add it in the world</li>
  381. * <li>Launch the action OnSpawn fo the L2NpcInstance</li>
  382. * <li>Increase the current number of L2NpcInstance managed by this L2Spawn</li>
  383. * </ul>
  384. * @param isSummonSpawn
  385. * @return
  386. */
  387. public L2Npc doSpawn(boolean isSummonSpawn)
  388. {
  389. L2Npc mob = null;
  390. try
  391. {
  392. // Check if the L2Spawn is not a L2Pet or L2Minion or L2Decoy spawn
  393. if (_template.isType("L2Pet") || _template.isType("L2Decoy") || _template.isType("L2Trap") || _template.isType("L2EffectPoint"))
  394. {
  395. _currentCount++;
  396. return mob;
  397. }
  398. // Get L2NpcInstance Init parameters and its generate an Identifier
  399. Object[] parameters =
  400. {
  401. IdFactory.getInstance().getNextId(),
  402. _template
  403. };
  404. // Call the constructor of the L2NpcInstance
  405. // (can be a L2ArtefactInstance, L2FriendlyMobInstance, L2GuardInstance, L2MonsterInstance, L2SiegeGuardInstance, L2BoxInstance,
  406. // L2FeedableBeastInstance, L2TamedBeastInstance, L2FolkInstance or L2TvTEventNpcInstance)
  407. Object tmp = _constructor.newInstance(parameters);
  408. ((L2Object) tmp).setInstanceId(_instanceId); // Must be done before object is spawned into visible world
  409. if (isSummonSpawn && (tmp instanceof L2Character))
  410. {
  411. ((L2Character) tmp).setShowSummonAnimation(isSummonSpawn);
  412. }
  413. // Check if the Instance is a L2NpcInstance
  414. if (!(tmp instanceof L2Npc))
  415. {
  416. return mob;
  417. }
  418. mob = (L2Npc) tmp;
  419. return initializeNpcInstance(mob);
  420. }
  421. catch (Exception e)
  422. {
  423. _log.log(Level.WARNING, "NPC " + _template.getNpcId() + " class not found", e);
  424. }
  425. return mob;
  426. }
  427. /**
  428. * @param mob
  429. * @return
  430. */
  431. private L2Npc initializeNpcInstance(L2Npc mob)
  432. {
  433. int newlocx, newlocy, newlocz;
  434. // If Locx=0 and Locy=0, the L2NpcInstance must be spawned in an area defined by location
  435. if ((getLocx() == 0) && (getLocy() == 0))
  436. {
  437. if (getLocation() == 0)
  438. {
  439. return mob;
  440. }
  441. // Calculate the random position in the location area
  442. int p[] = TerritoryTable.getInstance().getRandomPoint(getLocation());
  443. // Set the calculated position of the L2NpcInstance
  444. newlocx = p[0];
  445. newlocy = p[1];
  446. newlocz = GeoData.getInstance().getSpawnHeight(newlocx, newlocy, p[2], p[3], this);
  447. }
  448. else
  449. {
  450. // The L2NpcInstance is spawned at the exact position (Lox, Locy, Locz)
  451. newlocx = getLocx();
  452. newlocy = getLocy();
  453. if (Config.GEODATA > 0)
  454. {
  455. newlocz = GeoData.getInstance().getSpawnHeight(newlocx, newlocy, getLocz(), getLocz(), this);
  456. }
  457. else
  458. {
  459. newlocz = getLocz();
  460. }
  461. }
  462. mob.stopAllEffects();
  463. mob.setIsDead(false);
  464. // Reset decay info
  465. mob.setDecayed(false);
  466. // Set the HP and MP of the L2NpcInstance to the max
  467. mob.setCurrentHpMp(mob.getMaxHp(), mob.getMaxMp());
  468. // Set default value
  469. mob.setScriptValue(0);
  470. // Set is not random walk default value
  471. mob.setIsNoRndWalk(isNoRndWalk());
  472. // Set the heading of the L2NpcInstance (random heading if not defined)
  473. if (getHeading() == -1)
  474. {
  475. mob.setHeading(Rnd.nextInt(61794));
  476. }
  477. else
  478. {
  479. mob.setHeading(getHeading());
  480. }
  481. if (mob instanceof L2Attackable)
  482. {
  483. ((L2Attackable) mob).setChampion(false);
  484. }
  485. if (Config.L2JMOD_CHAMPION_ENABLE)
  486. {
  487. // Set champion on next spawn
  488. if ((mob instanceof L2MonsterInstance) && !getTemplate().isQuestMonster() && !mob.isRaid() && !((L2MonsterInstance) mob).isRaidMinion() && (Config.L2JMOD_CHAMPION_FREQUENCY > 0) && (mob.getLevel() >= Config.L2JMOD_CHAMP_MIN_LVL) && (mob.getLevel() <= Config.L2JMOD_CHAMP_MAX_LVL) && (Config.L2JMOD_CHAMPION_ENABLE_IN_INSTANCES || (getInstanceId() == 0)))
  489. {
  490. int random = Rnd.get(100);
  491. if (random < Config.L2JMOD_CHAMPION_FREQUENCY)
  492. {
  493. ((L2Attackable) mob).setChampion(true);
  494. }
  495. }
  496. }
  497. // Link the L2NpcInstance to this L2Spawn
  498. mob.setSpawn(this);
  499. // Init other values of the L2NpcInstance (ex : from its L2CharTemplate for INT, STR, DEX...) and add it in the world as a visible object
  500. mob.spawnMe(newlocx, newlocy, newlocz);
  501. L2Spawn.notifyNpcSpawned(mob);
  502. _lastSpawn = mob;
  503. if (Config.DEBUG)
  504. {
  505. _log.finest("Spawned Mob Id: " + _template.getNpcId() + " , at: X: " + mob.getX() + " Y: " + mob.getY() + " Z: " + mob.getZ());
  506. }
  507. // Increase the current number of L2NpcInstance managed by this L2Spawn
  508. _currentCount++;
  509. return mob;
  510. }
  511. public static void addSpawnListener(SpawnListener listener)
  512. {
  513. synchronized (_spawnListeners)
  514. {
  515. _spawnListeners.add(listener);
  516. }
  517. }
  518. public static void removeSpawnListener(SpawnListener listener)
  519. {
  520. synchronized (_spawnListeners)
  521. {
  522. _spawnListeners.remove(listener);
  523. }
  524. }
  525. public static void notifyNpcSpawned(L2Npc npc)
  526. {
  527. synchronized (_spawnListeners)
  528. {
  529. for (SpawnListener listener : _spawnListeners)
  530. {
  531. listener.npcSpawned(npc);
  532. }
  533. }
  534. }
  535. /**
  536. * Set bounds for random calculation and delay for respawn
  537. * @param delay delay in seconds
  538. * @param randomInterval random interval in seconds
  539. */
  540. public void setRespawnDelay(int delay, int randomInterval)
  541. {
  542. if (delay != 0)
  543. {
  544. if (delay < 0)
  545. {
  546. _log.warning("respawn delay is negative for spawn:" + this);
  547. }
  548. int minDelay = delay - randomInterval;
  549. int maxDelay = delay + randomInterval;
  550. _respawnMinDelay = Math.max(10, minDelay) * 1000;
  551. _respawnMaxDelay = Math.max(10, maxDelay) * 1000;
  552. }
  553. else
  554. {
  555. _respawnMinDelay = 0;
  556. _respawnMaxDelay = 0;
  557. }
  558. }
  559. public void setRespawnDelay(int delay)
  560. {
  561. setRespawnDelay(delay, 0);
  562. }
  563. public int getRespawnDelay()
  564. {
  565. return (_respawnMinDelay + _respawnMaxDelay) / 2;
  566. }
  567. public boolean hasRespawnRandom()
  568. {
  569. return _respawnMinDelay != _respawnMaxDelay;
  570. }
  571. public L2Npc getLastSpawn()
  572. {
  573. return _lastSpawn;
  574. }
  575. /**
  576. * @param oldNpc
  577. */
  578. public void respawnNpc(L2Npc oldNpc)
  579. {
  580. if (_doRespawn)
  581. {
  582. oldNpc.refreshID();
  583. initializeNpcInstance(oldNpc);
  584. }
  585. }
  586. public L2NpcTemplate getTemplate()
  587. {
  588. return _template;
  589. }
  590. public int getInstanceId()
  591. {
  592. return _instanceId;
  593. }
  594. public void setInstanceId(int instanceId)
  595. {
  596. _instanceId = instanceId;
  597. }
  598. @Override
  599. public String toString()
  600. {
  601. return "L2Spawn [_template=" + getNpcid() + ", _locX=" + _locX + ", _locY=" + _locY + ", _locZ=" + _locZ + ", _heading=" + _heading + "]";
  602. }
  603. public final boolean isNoRndWalk()
  604. {
  605. return _isNoRndWalk;
  606. }
  607. public final void setIsNoRndWalk(boolean value)
  608. {
  609. _isNoRndWalk = value;
  610. }
  611. }