vault.h

Go to the documentation of this file.
00001 /*      SCCS Id: @(#)vault.h    3.4     1997/05/01      */
00002 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
00003 /* NetHack may be freely redistributed.  See license for details. */
00004 
00005 #ifndef VAULT_H
00006 #define VAULT_H
00007 
00008 #define FCSIZ   (ROWNO+COLNO)
00009 struct fakecorridor {
00010         xchar fx,fy,ftyp;
00011 };
00012 
00013 struct egd {
00014         int fcbeg, fcend;       /* fcend: first unused pos */
00015         int vroom;              /* room number of the vault */
00016         xchar gdx, gdy;         /* goal of guard's walk */
00017         xchar ogx, ogy;         /* guard's last position */
00018         d_level gdlevel;        /* level (& dungeon) guard was created in */
00019         xchar warncnt;          /* number of warnings to follow */
00020         Bitfield(gddone,1);     /* true iff guard has released player */
00021         Bitfield(unused,7);
00022         struct fakecorridor fakecorr[FCSIZ];
00023 };
00024 
00025 #define EGD(mon)        ((struct egd *)&(mon)->mextra[0])
00026 
00027 #endif /* VAULT_H */