1 /* 2 * This file defines everything to do with error-handling 3 * that is unique to 3Dc. 4 */ 5 /* 6 7 3Dc, a game of 3-Dimensional Chess 8 Copyright (C) 1995 Paul Hicks 9 10 This program is free software; you can redistribute it and/or modify 11 it under the terms of the GNU General Public License as published by 12 the Free Software Foundation; either version 2 of the License, or 13 (at your option) any later version. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, write to the Free Software 22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 24 E-Mail: paulh@euristix.ie 25 */ 26 #ifndef __3DcErr_h 27 #define __3DcErr_h 28 extern int n3DcErr; 29 30 typedef enum 31 { 32 E3DcSIMPLE, E3DcLEVEL, E3DcCHECK, E3DcDIST, E3DcINVIS, 33 E3DcBLOCK, E3DcMOVED 34 } Error; 35 36 typedef struct 37 { 38 Error nErrNum; 39 char *pszErrStr; 40 } error_t; 41 42 /* 43 * All strings are designed to be printed thus: 44 * printf("That piece %s.\n"); 45 */ 46 /* To be defined by interface */ 47 extern int Err3Dc(const GfxInfo *, const char *, const Boolean); 48 49 #endif /* __3DcErr_h */ 50 51