engrave.h

Go to the documentation of this file.
00001 /*      SCCS Id: @(#)engrave.h  3.4     1991/07/31      */
00002 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
00003 /* NetHack may be freely redistributed.  See license for details. */
00004 
00005 #ifndef ENGRAVE_H
00006 #define ENGRAVE_H
00007 
00008 struct engr {
00009         struct engr *nxt_engr;
00010         char *engr_txt;
00011         xchar engr_x, engr_y;
00012         unsigned engr_lth;      /* for save & restore; not length of text */
00013         long engr_time;         /* moment engraving was (will be) finished */
00014         xchar engr_type;
00015 #define DUST       1
00016 #define ENGRAVE    2
00017 #define BURN       3
00018 #define MARK       4
00019 #define ENGR_BLOOD 5
00020 #define HEADSTONE  6
00021 #define N_ENGRAVE  6
00022 };
00023 
00024 #define newengr(lth) (struct engr *)alloc((unsigned)(lth) + sizeof(struct engr))
00025 #define dealloc_engr(engr) free((genericptr_t) (engr))
00026 
00027 #endif /* ENGRAVE_H */