1 /*
2  * xsystem35.h  SYSTEM35 �ǥ�����
3  *
4  * Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp>
5  *               1998-                           <masaki-c@is.aist-nara.ac.jp>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21 */
22 /* $Id: xsystem35.h,v 1.26 2003/04/22 16:34:29 chikama Exp $ */
23 
24 #ifndef __XSYSTEM35__
25 #define __XSYSTEM35__
26 
27 #include "config.h"
28 #include "portab.h"
29 #include "scenario.h"
30 #include "system.h"
31 #include "nact.h"
32 #include "variable.h"
33 #include "ald_manager.h"
34 #include "gametitle.h"
35 
36 /* logfile when debug level >= 5 */
37 #define DEBUGLOGFILE "./xsystem35.log"
38 
39 /*
40  debug level in xsystem35
41   0: critical error message only (output to terminal or message box)
42   1: warning only(output to terminal) [stable release default]
43   2: add not inplement message (output to terminal) [devel relase default]
44   5: add command message (output to terminal or FILE)
45   6: add message(output to terminal or FILE)
46 */
47 
48 #define DEBUG_SHOWSCOADR  sys_message("%d,%x: ", sl_getPage(), sl_getIndex())
49 #ifdef DEBUG
50 #define DEBUG_COMMAND_YET sys_nextdebuglv = 2, DEBUG_SHOWSCOADR, sys_message
51 #define DEBUG_COMMAND     sys_nextdebuglv = 5, DEBUG_SHOWSCOADR, sys_message
52 #define DEBUG_MESSAGE     sys_nextdebuglv = 6, sys_message
53 #else
54 #define DEBUG_MESSAGE
55 #define DEBUG_COMMAND
56 #define DEBUG_COMMAND_YET
57 #endif
58 
59 /* �������ȥ����å�/cali�۾��͸��� */
60 #define DEBUG_CHECKALING
61 
62 /* defined in cali.c */
63 extern int preVarPage;      /* ľ���˥������������ѿ��Υڡ��� */
64 extern int preVarIndex;     /* ľ���˥������������ѿ���INDEX */
65 extern int preVarNo;        /* ľ���˥������������ѿ����ֹ� */
66 
67 #define System_idle(msec) usleep(1000l * (msec));
68 // extern void System_idle(int msec);
69 
70 /* system35 ���̥ǥե���� */
71 #define SYS35_DEFAULT_WIDTH 640
72 #define SYS35_DEFAULT_HEIGHT 480
73 #define SYS35_DEFAULT_DEPTH 8
74 
75 #endif /* !__XSYSTEM35__ */
76