[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/wander_handler.c</h2>
Handles npcs wanderting randomly around the place and npcs
following a route to a destination.<p><b>See also:</b><br><a href="obj.monster.c.shtml#move_me_to">/obj/monster->move_me_to()</a> and /std/effects/npc/goto_destination.c<br /><p>Written by Wodan and Pinkfish
<h2>Includes</h2>
This class includes the following files /include/playtesters.h and /include/player.h<h2>Class Index</h2>
<ul><li><a href="#class_route_traveller">route_traveller</a>
<li><a href="#class_wander_group">wander_group</a>
</ul><h2>Method index</h2>
<ul>
<li><a href="#delete_move_after">delete_move_after</a>(object)<br/>
Stops an npc wanderering aimlessly around the place.
<li><a href="#has_monsters">has_monsters</a>(class wander_group)<li><a href="#move_after">move_after</a>(int)<br/>
Put an npc into the random movement group.
<li><a href="#move_me_please">move_me_please</a>(int, string)<br/>
Called from the npc to start them mmoving.
<li><a href="#query_moving_monster">query_moving_monster</a>(object)<br/>
Is this npc a moving npc?
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="delete_move_after">
delete_move_after</a><pre class="autodocfuncdef">
void delete_move_after(object monster)
</pre><dd><br />
Stops an npc wanderering aimlessly around the place.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
monster - the npc to stop wandering
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="has_monsters">
has_monsters</a><pre class="autodocfuncdef">
int has_monsters(class wander_group thing)
</pre>
<dt class="autodocfuncname"><a name="move_after">
move_after</a><pre class="autodocfuncdef">
void move_after(int runaway)
</pre><dd><br />
Put an npc into the random movement group.  This is called from
the set_move_after code in the npc object.  You should not need
to call this function directrly.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
runaway - is this a wimpy attempt?
<br />
<br />
<dd><b>See also:</b>
<br /><a href="obj.monster.c.shtml#set_move_after">/obj/monster->set_move_after()</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="move_me_please">
move_me_please</a><pre class="autodocfuncdef">
int move_me_please(int delay,
                   string dest)
</pre><dd><br />
Called from the npc to start them mmoving.  This should not need to
be called inside your code.  It is called from the function
move_me_to in the npc code.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
delay - the delay between each move<br />
dest - the destination room for the npc<br />
<br />
<dd><b>Returns:</b>
<br />0 if it failed and 1 on success
<br /><br />
<dd><b>See also:</b>
<br /><a href="obj.monster.c.shtml#move_me_to">/obj/monster->move_me_to()</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_moving_monster">
query_moving_monster</a><pre class="autodocfuncdef">
int query_moving_monster(object ob)
</pre><dd><br />
Is this npc a moving npc?<br />
<br /><dl>
<dd><b>Parameters:</b><br />
ob - the npc to check to see if it moves<br />
<br />
<dd><b>Returns:</b>
<br />1 if it is moving, 0 if it is not.
<br /><br />
<br /></dl>

</dl>
<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_route_traveller">
route_traveller</a><pre>
class route_traveller {
                        object monster;
                        int movetime;
                        int delay;
                        string dest;
}

</pre>
<li><a name="class_wander_group">
wander_group</a><pre>
class wander_group {
                     object * monsters;
                     int movetime;
}

</pre>
</ul>
[an error occurred while processing this directive]

