zim/area/
zim/bin/
zim/clans/plists/
zim/corefiles/
zim/doc/muddy/
zim/gods/
zim/log/
zim/player/
zim/skill_tree/
zim/tmp/
/*
 * $Id: flag.h 871 2006-05-31 04:08:21Z zsuzsu $
 */

/***************************************************************************
 *                                                                         *
 *  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_t_H_
#define _flag_t_H_

enum {
	TABLE_BITVAL,	/* table contains bit values		*/
	TABLE_INTVAL	/* table contains integer values	*/
};

struct flag_t
{
	const char *	name;
	flag64_t	bit;
	bool		settable;
};

const flag_t *	flag_lookup	(const flag_t *flag64_table, const char* name);
flag64_t	flag_value	(const flag_t *flag64_table, const char *argument);
const char *	flag_string	(const flag_t *flag64_table, flag64_t bits);
bool		flag_settable	(const flag_t *flag64_table, flag64_t bit);

void show_flags_buf(BUFFER *output, const flag_t *flag64_table);
void show_flags(CHAR_DATA *ch, const flag_t *flag64_table);

#endif