1 /* XDigger Copyright (C) 1988-99 Alexander Lang. 2 3 XDigger is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; either version 2, or (at your option) 6 any later version. 7 8 XDigger is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program; see the file COPYING. If not, write to 15 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 17 #ifndef _DEFINES_H 18 19 #define _DEFINES_H 20 21 #define ID_NOTHING 0 22 #define ID_STONE 1 23 #define ID_GROUND 2 24 #define ID_GHOST 3 25 #define ID_LDIGGER 4 26 #define ID_DIAMOND 5 27 #define ID_WALL 6 28 #define ID_FSTODMD 8 29 #define ID_IVSTONE 9 30 #define ID_DIGGER 10 31 #define ID_EXIT 12 32 #define ID_IVDIAMOND 13 33 #define ID_CHANGER 14 34 35 #define F_DIGGER_MOVEMASK 0x1f 36 #define F_DIGGER_DOWN0 0x00 37 #define F_DIGGER_LEFT0 0x05 38 #define F_DIGGER_LEFT1 0x06 39 #define F_DIGGER_LEFT2 0x07 40 #define F_DIGGER_LEFT3 0x08 41 #define F_DIGGER_RIGHT0 0x09 42 #define F_DIGGER_RIGHT1 0x0a 43 #define F_DIGGER_RIGHT2 0x0b 44 #define F_DIGGER_RIGHT3 0x0c 45 #define F_DIGGER_UP1 0x0d 46 #define F_DIGGER_UP2 0x0e 47 #define F_DIGGER_DOWN1 0x0f 48 #define F_DIGGER_DOWN2 0x10 49 #define F_DIGGER_FOOT 0x11 50 #define F_DIGGER_EYE1 0x12 51 #define F_DIGGER_EYE2 0x13 52 #define F_DIGGER_DEATH 0x80 53 54 #define F_GHOST_MOVEMASK 0x03 55 #define F_GHOST_DOWN 0x00 56 #define F_GHOST_UP 0x01 57 #define F_GHOST_RIGHT 0x02 58 #define F_GHOST_LEFT 0x03 59 #define F_GHOST_TYPEMASK 0x1c 60 #define F_GHOST_NOTYPE 0x00 61 #define F_GHOST_TYPE180 0x04 62 #define F_GHOST_TYPEL 0x08 63 #define F_GHOST_TYPER 0x0c 64 #define F_GHOST_TYPELR 0x10 65 66 #define F_DIAMOND_BLINKMASK 0x0f 67 #define F_DIAMOND_NOBLINK 0x00 68 #define F_DIAMOND_BLINK0 0x01 69 #define F_DIAMOND_BLINK1 0x02 70 #define F_DIAMOND_BLINK2 0x03 71 #define F_DIAMOND_BLINK3 0x04 72 #define F_DIAMOND_BLINK4 0x05 73 #define F_DIAMOND_BLINK5 0x06 74 #define F_DIAMOND_BLINK6 0x07 75 #define F_DIAMOND_BLINK7 0x08 76 77 #define ADIGGERN 0 78 #define ADIGGERL 1 79 #define ADIGGERR 2 80 #define ADIGGERU 3 81 #define ADIGGERD 4 82 83 #define AGHOSTD 0 /* lastarrow down */ 84 #define AGHOSTU 1 85 #define AGHOSTR 2 86 #define AGHOSTL 3 87 #define TGHOST180 0 /* ghosttype 180� */ 88 #define TGHOST90L 1 89 #define TGHOST90LR 2 90 #define TGHOST90R 3 91 #define LGHOSTL 0 /* lastturn left */ 92 #define LGHOSTR 1 /* lastturn right */ 93 94 #endif /* _DEFINES_H */ 95