mux/src/misc.h

Go to the documentation of this file.
00001 // misc.h -- miscellaneous structures that are needed in more than one file.
00002 //
00003 // $Id: misc.h,v 1.2 2003/02/05 06:20:59 jake Exp $
00004 //
00005 
00006 #include "copyright.h"
00007 
00008 #ifndef _MISC_H
00009 #define _MISC_H
00010 
00011 #include "powers.h"
00012 
00013 /* Search structure, used by @search and search(). */
00014 
00015 typedef struct search_type SEARCH;
00016 struct search_type {
00017     int s_wizard;
00018     dbref   s_owner;
00019     dbref   s_rst_owner;
00020     int s_rst_type;
00021     FLAGSET s_fset;
00022     POWERSET s_pset;
00023     dbref   s_parent;
00024     dbref   s_zone;
00025     char    *s_rst_name;
00026     char    *s_rst_eval;
00027     int low_bound;
00028     int high_bound;
00029 };
00030 
00031 /* Stats structure, used by @stats and stats(). */
00032 
00033 typedef struct stats_type STATS;
00034 struct stats_type {
00035     int s_total;
00036     int s_rooms;
00037     int s_exits;
00038     int s_things;
00039     int s_players;
00040     int s_garbage;
00041 };
00042 
00043 extern bool search_setup(dbref, char *, SEARCH *);
00044 extern void search_perform(dbref executor, dbref caller, dbref enactor, SEARCH *);
00045 extern bool get_stats(dbref, dbref, STATS *);
00046 
00047 #endif // !_MISC_H

Generated on Mon May 28 04:40:10 2007 for MUX by  doxygen 1.4.7