bits.h

bits.h · 1.4 KB

From the archive QuestBits.zip

Download the archive   « Back to the archive contents

/* bits.h -- Abits and Qbits for the Rogue Winds by Scion
   Copyright 2000 by Peter Keeler, All Rights Reserved. The content
   of this file may be used by anyone for any purpose so long as this
   original header remains entirely intact and credit is given to the
   original author(s).

   The concept for this was inspired by Mallory's mob scripting system
   from AntaresMUD.

   It is not required, but I'd appreciate hearing back from people
   who use this code. What are you using it for, what have you done
   to it, ideas, comments, etc. So while it's not necessary, I'd love
   to get a note from you at scion@divineright.org. Thanks! -- Scion
*/

typedef struct bit_data BIT_DATA;

#define MAX_xBITS 32000

/* abit and qbit struct */
struct bit_data
{
   BIT_DATA *next;
   BIT_DATA *prev;
   int number;
   char desc[MAX_STRING_LENGTH];
};

extern BIT_DATA *first_abit;
extern BIT_DATA *first_qbit;
extern BIT_DATA *last_abit;
extern BIT_DATA *last_qbit;

BIT_DATA *get_abit( CHAR_DATA * ch, int number );
BIT_DATA *get_qbit( CHAR_DATA * ch, int number );
BIT_DATA *find_qbit( int number );
BIT_DATA *find_abit( int number );
void set_abit( CHAR_DATA *ch, int number );
void set_qbit( CHAR_DATA *ch, int number );
void remove_abit( CHAR_DATA *ch, int number );
void remove_qbit( CHAR_DATA *ch, int number );
void free_questbits( void );
void load_bits( void );

Site Stats

Snippets: 1791
Codebases: 571