[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 /secure/simul_efun/modified_efuns.c</h2>
Cotains some simul_efuns.<p>Written by Pinkfish
<h2>Inherits</h2>
This class inherits the following classes /secure/simul_efun/base_name.c<h2>Includes</h2>
This class includes the following files /include/player_handler.h, /include/login_handler.h, /include/login.h and /include/playtesters.h<h2>Method index</h2>
<ul>
<li><a href="#cap_words">cap_words</a>(string)<br/>
This method returns a string with each word capitalized.
<li><a href="#cat">cat</a>(string, int, int)<br/>
Write the file out to the screen.
<li><a href="#db_connect">db_connect</a>(mixed * args)<li><a href="#flush_log_files">flush_log_files</a>()<br/>
This method flushes out all the buffered stuff for the log files.
<li><a href="#log_file">log_file</a>(string, string, mixed * args)<br/>
This method writes a message out ot a log file.
<li><a href="#memory_summary">memory_summary</a>()<li><a href="#mud_name">mud_name</a>()<br/>
This method returns the name of the mud.
<li><a href="#other_call_out">other_call_out</a>(object, string, int, mixed rest)<br/>
This does a call_out on another object.
<li><a href="#query_loggers">query_loggers</a>()<br/>
Return a mapping of what files were the last to write to what log files.
<li><a href="#query_verb">query_verb</a>()<br/>
This returns the current verb name.
<li><a href="#reference_allowed">reference_allowed</a>(object, mixed)<br/>
This method is used to test to see if a reference is allowed to this
object.
<li><a href="#replace">replace</a>(string, mixed, string)<br/>
Replaces all occurances of a set of strings in the input string.
<li><a href="#shout">shout</a>(string, object)<br/>
This method sends a polite shout to everyone on line.
<li><a href="#sob">sob</a>()<br/>
Returns the simul_efun object.
<li><a href="#strcasecmp">strcasecmp</a>(string, string)<br/>
Does a string compare.
<li><a href="#tail">tail</a>(string, int)<br/>
This will print the last bit of a file.
<li><a href="#uniq_array">uniq_array</a>(mixed *)<br/>
This method will return an array that contains no duplicates.
<li><a href="#user_event">user_event</a>(mixed, mixed, mixed args)<br/>
This method calls an event on all the users online.
<li><a href="#wizardp">wizardp</a>(mixed)<br/>
This method tells us if the object is a wizard.
<li><a href="#write">write</a>(string, string)<br/>
This method prints a message to the player.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="cap_words">
cap_words</a><pre class="autodocfuncdef">
string cap_words(string words)
</pre><dd><br />
This method returns a string with each word capitalized.
<p><br />
<br /><dl>
<dd><b>Parameters:</b><br />
words - the string to capitalize<br />
<br />
<dd><b>Returns:</b>
<br />the string with all words capitalized
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="cat">
cat</a><pre class="autodocfuncdef">
void cat(string file,
         int start_line,
         int number)
</pre><dd><br />
Write the file out to the screen.  This should  not be used if possible.
It is an interface to read_file and other things.  You should perhaps
look at using more_string ort more_file.
<br />
<br /><dl>
<dd><b>Parameters:</b><br />
file - the file name to cat<br />
start_line - the line to start on<br />
number - the number of lines to print
<br />
<br />
<dd><b>See also:</b>
<br /><a href="global.more_string.c.shtml#more_string">/global/more_string->more_string()</a> and <a href="global.more_file.c.shtml#more_file">/global/more_file->more_file()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="db_connect">
db_connect</a><pre class="autodocfuncdef">
varargs int db_connect(mixed * args ...)
</pre>
<dt class="autodocfuncname"><a name="flush_log_files">
flush_log_files</a><pre class="autodocfuncdef">
void flush_log_files()
</pre><dd><br />
This method flushes out all the buffered stuff for the log files.
<br />

<dt class="autodocfuncname"><a name="log_file">
log_file</a><pre class="autodocfuncdef">
varargs void log_file(string name,
                      string fmt,
                      mixed * args ...)
</pre><dd><br />
This method writes a message out ot a log file.  The log files are
normally in "/log".  If a file doesn't start with '/ then "/log/" will be
preppended to it.
This does automatic removal of the log files after they get over
a certain length.  The fmt and args parameters are used to print the
actual message.
<p>
If more than one argument is passed to this function, then sprintf will
be used to print out the results.
<p>
ie: log_file("ROGER", "%s: frog and %s\n", ctime(), query_gumboot());
<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the log file<br />
fmt - the format string<br />
args - the arguments to the sprintf
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="memory_summary">
memory_summary</a><pre class="autodocfuncdef">
string memory_summary()
</pre>
<dt class="autodocfuncname"><a name="mud_name">
mud_name</a><pre class="autodocfuncdef">
string mud_name()
</pre><dd><br />
This method returns the name of the mud.
<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the name of the mud
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="other_call_out">
other_call_out</a><pre class="autodocfuncdef">
varargs int other_call_out(object ob,
                           string func,
                           int delay,
                           mixed rest ...)
</pre><dd><br />
This does a call_out on another object.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
object - object the delayed call is in<br />
function - function to call<br />
delay - time to wait
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_loggers">
query_loggers</a><pre class="autodocfuncdef">
mapping query_loggers()
</pre><dd><br />
Return a mapping of what files were the last to write to what log files.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />A mapping of format ([ log file : file that logged ])
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_verb">
query_verb</a><pre class="autodocfuncdef">
string query_verb()
</pre><dd><br />
This returns the current verb name.  This works if the verb is used
through add_command or through add_action.
<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the name of the verb
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="reference_allowed">
reference_allowed</a><pre class="autodocfuncdef">
varargs int reference_allowed(object referree,
                              mixed referrer)
</pre><dd><br />
This method is used to test to see if a reference is allowed to this
object.  It tests things like the allow array and that sort of stuff.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
thing - the object to test<br />
<br />
<dd><b>Returns:</b>
<br />1 if the reference is allowed
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="replace">
replace</a><pre class="autodocfuncdef">
varargs string replace(string str,
                       mixed bing,
                       string rep)
</pre><dd><br />
Replaces all occurances of a set of strings in the input string.  Replaces
an individual or an array of strings with new values.  If the second
argument is an array of strings, then the 1st, 3rd, 5th...  elements will
be the strings to search for and the 2nd, 4th, 6th etc will be the strings
to replace with.  If three arguments are specified then the second is the string
to search for, the third the one to replace.
<p>
Eg:<br>
str = replace(str, ({ "search", "replace", "orange", "apple" });<p>
That will replace all occurances of "search" with "replace" and "orange"
with "apple".
<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str - the string to do the replacement in<br />
bing - the search or array argument<br />
rep - the replacement string, or null
<br />
<br />
<dd><b>Returns:</b>
<br />the string with all the replacements done
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="shout">
shout</a><pre class="autodocfuncdef">
varargs void shout(string words,
                   object avoid)
</pre><dd><br />
This method sends a polite shout to everyone on line.  It checks
for earmuffs and all that sort of stuff.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
words - the message to shout<br />
avoid - who not to tell the message to
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="sob">
sob</a><pre class="autodocfuncdef">
object sob()
</pre><dd><br />
Returns the simul_efun object.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />The simul_efun object
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="strcasecmp">
strcasecmp</a><pre class="autodocfuncdef">
int strcasecmp(string str1,
               string str2)
</pre><dd><br />
Does a string compare...  But case insensative...
<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str1 - the string to compare<br />
str2 - the other string to compare<br />
<br />
<dd><b>Returns:</b>
<br />0 if they are the same, <0 if they are less than each other, >0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#efun::strcmp">efun::strcmp()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="tail">
tail</a><pre class="autodocfuncdef">
varargs string tail(string fname,
                    int nlines)
</pre><dd><br />
This will print the last bit of a file.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
fname - the file to read<br />
<br />
<dd><b>Returns:</b>
<br />1 if it succeeded, 0 if it failed
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="uniq_array">
uniq_array</a><pre class="autodocfuncdef">
mixed * uniq_array(mixed * arr)
</pre><dd><br />
This method will return an array that contains no duplicates.
 uniq_array.c
 Written by: Wodan
<p>
 This function will return an array that contains no duplicates.
 Gotta love them mappings. :)<br />
<br /><dl>
<dd><b>Parameters:</b><br />
arr - the array to convert<br />
<br />
<dd><b>Returns:</b>
<br />an array with no duplicates
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="user_event">
user_event</a><pre class="autodocfuncdef">
void user_event(mixed from,
                mixed first,
                mixed args ...)
</pre><dd><br />
This method calls an event on all the users online.
It does not do any filtering, so it will send messages to people who
are earmuffed and ignoring or lord invisible or whatever.
<br />
<br /><dl>
<dd><b>Parameters:</b><br />
from - the person it is from<br />
name - the name of the event<br />
args - the arguments to the event
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="wizardp">
wizardp</a><pre class="autodocfuncdef">
int wizardp(mixed arg)
</pre><dd><br />
This method tells us if the object is a wizard.
<br />
<br /><dl>
<dd><b>Returns:</b>
<br />is the object a wizard
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="write">
write</a><pre class="autodocfuncdef">
varargs void write(string str,
                   string language)
</pre><dd><br />
This method prints a message to the player.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str - the message to send
<br />
<br />
<br /></dl>

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

