Stendhal Testing: Difference between revisions
Content deleted Content added
imported>AntumDeluge |
imported>AntumDeluge |
||
Line 44:
* <player>deluge|AntumDeluge</player>: When trying to implement random paths for PassiveNPCs I ran across a problem of the NPC stopping after the path cycle was complete. PassiveNPC fixes this by overriding <span style="color:red">onFinishedPath()</span> and calling <span style="color:red">setRandomPathFrom()</span>. <span style="color:red">setRandomPathFrom()</span> has been moved up to <span style="color:blue">GuidedEntity</span>.
* NPCs can now pause for a determined amount of turns on path completion <span style="color:blue; font-weight:bold;">TESTED BY:</span> <player>deluge|AntumDeluge</player>
** <span style="color:orange; font-weight:bold;">TODO</span>:
*** Apply to SpeakerNPC (uses prelogic instead of logic) and other sub-classes of GuidedEntity.
* <b><span style="color:orange">TODO</span>:</b>
** Fix paths to work in collision areas
* Replaced reversiblePath methods in <b><i>GuidedEntity</i></b> with methods for setting and getting CollisionAction.
** Two options for collsion actions:
| |||