#ifndef _STRUCTS_H_6742ac09_ #define _STRUCTS_H_6742ac09_ #include #include #include "param.h" #define L_EARTH (-1) /* level numbers of special levels */ #define L_AIR (-2) #define L_FIRE (-3) #define L_WATER (-4) #define L_UNDERWORLD (-5) #define L_HELL (-6) #define L__FIRSTELEM (-4) #define L__NELEM 4 #define LEVEL_OFFSET 6 /* negative of highest special level number */ #define N_LEVELS (DUNGEON_LEVELS+LEVEL_OFFSET) typedef enum { IT_MON = 1, IT_LOC } INVTYPE; typedef enum { TRAP_ARROW = 1, TRAP_TRAPDOOR, TRAP_PIT } TRAPTYPE; typedef enum { PIK_END = 1, PIK_LEV, PIK_DEFAULT } PIKIND; typedef enum { LOC_ROCK = 1, LOC_WALL, LOC_SDOOR, LOC_CAVE, LOC_GATE, LOC_DOOR } LOCTYPE; typedef enum { /* subtypes of LOC_CAVE */ LOC_JUSTCAVE = 1, LOC_STAIRS_U, LOC_STAIRS_D } CAVETYPE; typedef enum { /* subtypes of LOC_GATE */ LOC_GATE_IN = 1, LOC_GATE_OUT } GATETYPE; typedef struct invobj INVOBJ; typedef struct level LEVEL; typedef struct loc LOC; typedef struct monops MONOPS; typedef struct monst MONST; typedef struct montype MONTYPE; typedef struct mtinfo MTINFO; typedef struct obj OBJ; typedef struct objops OBJOPS; typedef struct objtype OBJTYPE; typedef struct shop SHOP; typedef struct time TIME; typedef struct trail TRAIL; typedef struct trap TRAP; typedef struct invent INVENT; typedef struct xy XY; typedef struct jmp JMP; typedef struct probinit PROBINIT; struct jmp { jmp_buf b; } ; struct xy { short int x; short int y; } ; /* there are 1<