src/misc.h

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

Generated on Mon May 28 04:25:25 2007 for BattletechMUX by  doxygen 1.4.7