muddy/area/
muddy/bin/
muddy/bin/CVS/
muddy/clans/CVS/
muddy/classes/CVS/
muddy/corefiles/
muddy/corefiles/CVS/
muddy/doc/CVS/
muddy/doc/cvsup/
muddy/doc/cvsup/CVS/
muddy/doc/muddy/
muddy/doc/muddy/CVS/
muddy/doc/olc/CVS/
muddy/etc/
muddy/etc/CVS/
muddy/gods/
muddy/gods/CVS/
muddy/lang/CVS/
muddy/msgdb/
muddy/msgdb/CVS/
muddy/notes/
muddy/notes/CVS/
muddy/player/
muddy/races/CVS/
muddy/src/CVS/
muddy/src/comm/CVS/
muddy/src/compat/
muddy/src/compat/CVS/
muddy/src/compat/mkdep/
muddy/src/compat/mkdep/CVS/
muddy/src/compat/regex-win32/CVS/
muddy/src/db/CVS/
muddy/src/mudprogs/CVS/
muddy/src/olc/CVS/
muddy/tmp/CVS/
/*
 * $Id: flag.h,v 1.2 1998/09/17 15:51:19 fjoe Exp $
 */

/***************************************************************************
 *                                                                         *
 *  Much time and thought has gone into this software and you are          *
 *  benefitting.  We hope that you share your changes too.  What goes      *
 *  around, comes around.                                                  *
 *                                                                         *
 *  This code was written by Jason Dinkel and inspired by Russ Taylor,     *
 *  and has been used here for OLC - OLC would not be what it is without   *
 *  all the previous coders who released their source code.                *
 *                                                                         *
 ***************************************************************************/

#ifndef _FLAG_H_
#define _FLAG_H_

/*-------------------------------------------------------------------
 * flag/stat stuff
 *
 * all flags in structures which are edited via OLC MUST BE flag_t
 * (otherwise olced_flag would not work)
 *
 */

struct flag
{
	char *	name;
	flag_t	bit;
	bool	settable;
};

int		is_stat		(const FLAG *flag_table);
const FLAG *	flag_lookup	(const FLAG *flag_table, const char* name);
flag_t		flag_value	(const FLAG *flag_table, const char *argument);
char *		flag_string	(const FLAG *flag_table, flag_t bits);

void show_flags_buf(BUFFER *output, const FLAG *flag_table);
void show_flags(CHAR_DATA *ch, const FLAG *flag_table);

#endif