[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/hide_invis.c</h2>
This method returns the current hide/invisible states on the object.
The mapping is of the format:\n
<pre>
([ <hide type name> :
    ({
       who,
       see,
       ({ obj, method }), // Remove method
     }),
...
])
</pre><h2>Method index</h2>
<dl><ul>
<li><a href="#add_hide_invis">add_hide_invis</a>(string, object, mixed, string *)<br/>
This method adds a hide/invis state to the object.
<li><a href="#hide_invis_string">hide_invis_string</a>()<br/>
This method returns an extra bit to stick on the end of the players
name to show when they are hiding and so on.
<li><a href="#perception_check">perception_check</a>(object)<br/>
This does a perception check to see if the person can be seen.
<li><a href="#query_hide_invis">query_hide_invis</a>()<li><a href="#query_visible">query_visible</a>(object)<br/>
This is the method called to check to see if the person is visible or
not.
<li><a href="#remove_hide_invis">remove_hide_invis</a>(string, int)<br/>
This method removed the hiding of the specified type off the object.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="add_hide_invis">
add_hide_invis</a><pre>
int add_hide_invis(string type,
                   object who,
                   mixed see,
                   string * gone)
</pre></br>
This method adds a hide/invis state to the object.
<br/><ul>
<li><b>Parameters:</b>
<br/>type - the name of the type of hiding
<br/>who - no idea
<br/>see - no idea
<br/>gone - the method and object to call when the hiding is removed
<li><b>Returns:</b>
<br/>1 on success, 0 on failure

</dl>

<ul><a name="hide_invis_string">
hide_invis_string</a><pre>
string hide_invis_string()
</pre></br>
This method returns an extra bit to stick on the end of the players
name to show when they are hiding and so on.
<br/><ul>
<li><b>Returns:</b>
<br/>the extra bit to stick after a person's name based on the state

</dl>

<ul><a name="perception_check">
perception_check</a><pre>
int perception_check(object thing)
</pre></br>
This does a perception check to see if the person can be seen.
This is variable on light level, amongst other things.
<br/><ul>
<li><b>Parameters:</b>
<br/>thing - the person doing the looking

</dl>

<ul><a name="query_hide_invis">
query_hide_invis</a><pre>
mapping query_hide_invis()
</pre>
<ul><a name="query_visible">
query_visible</a><pre>
int query_visible(object thing)
</pre></br>
This is the method called to check to see if the person is visible or
not.
This is masked in /global/wiz_file_comm to handle
creator invisibility.
<br/><ul>
<li><b>Parameters:</b>
<br/>thing - the object doing the looking
<li><b>Returns:</b>
<br/>1 if visible, 0 if not

</dl>

<ul><a name="remove_hide_invis">
remove_hide_invis</a><pre>
varargs int remove_hide_invis(string type,
                              int quiet)
</pre></br>
This method removed the hiding of the specified type off the object.
This method will call the function setup when the hiding was added
when the hiding is removed. If you pass 1 as the second argument, it
will send the 'quiet' flag to the callback function.
<br/><ul>
<li><b>Parameters:</b>
<br/>type - the type of hiding to remove
<br/>quiet - flag to pass along to the callback function
<li><b>Returns:</b>
<br/>1 on success, 0 on failure

</dl>


[an error occurred while processing this directive]

