[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 /std/basic/virtual_quit_control.c</h2>
This method handles problems where players log out in places which are
virtually controlled.  It does the effort to put them back in, but does
it in a way that is recursive.  So if they are on a horse in a
terrain it will work properly.<p>Written by Pinkfish<p>Started Wed Sep 22 18:24:40 PDT 1999<h3>Example</h3>
<pre>inherit "/std/basic/virtual_quit_control";

void player_quitting(object player, object place) {
   string pos;

   pos = check_start_pos(environment(place));
   // Doesn't need to last long since we save immediately.
   player->add_property(START_PLACE, pos, 10);
   ::player_quitting(player, environment(place));
} /* player_quitting() */

// Move the player to the right spot when they login.
void event_enter(object player) {
   player->move(player->query_property(START_PLACE));
} /* move_player_to_real_location() */
</pre>
<h2>Method index</h2>
<dl><ul>
<li><a href="#find_start_coord">find_start_coord</a>(object, object)<br/>
This method is called on the quit handler when a player quits.
<li><a href="#find_start_pos">find_start_pos</a>(object, object)<br/>
This method is called on the quit handler when a player quits.
</ul><h2>Protected Functions</h2>
These are functions that only objects inheriting the class can access.<p>
<ul><a name="find_start_coord">
find_start_coord</a><pre>
int * find_start_coord(object player,
                       object place)
</pre></br>
This method is called on the quit handler when a player quits.
<br/><ul>
<li><b>Parameters:</b>
<br/>player - the player
<br/>place - the place they quit from
<li><b>Returns:</b>
<br/>the last position (if that needs to be saved).

</dl>

<ul><a name="find_start_pos">
find_start_pos</a><pre>
string find_start_pos(object player,
                      object place)
</pre></br>
This method is called on the quit handler when a player quits.
<br/><ul>
<li><b>Parameters:</b>
<br/>player - the player
<br/>place - the place they quit from
<li><b>Returns:</b>
<br/>the last position (if that needs to be saved).

</dl>


[an error occurred while processing this directive]

