spell.h

Go to the documentation of this file.
00001 /*      SCCS Id: @(#)spell.h    3.4     1995/06/01      */
00002 /* Copyright 1986, M. Stephenson                                  */
00003 /* NetHack may be freely redistributed.  See license for details. */
00004 
00005 #ifndef SPELL_H
00006 #define SPELL_H
00007 
00008 struct spell {
00009     short       sp_id;                  /* spell id (== object.otyp) */
00010     xchar       sp_lev;                 /* power level */
00011     int         sp_know;                /* knowlege of spell */
00012 };
00013 
00014 /* levels of memory destruction with a scroll of amnesia */
00015 #define ALL_MAP         0x1
00016 #define ALL_SPELLS      0x2
00017 
00018 #define decrnknow(spell)        spl_book[spell].sp_know--
00019 #define spellid(spell)          spl_book[spell].sp_id
00020 #define spellknow(spell)        spl_book[spell].sp_know
00021 
00022 #endif /* SPELL_H */