L2Spawn.java 19 KB

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