发信人hightman@feeling-NOsmthSPAM-org (xtt),
看板Maple
标 题[M3] 俄罗斯方块(单双版) 头文件...
发信站温馨小屋 (Thu Jan 2 12:28:27 2003)
转信站Ptt!news.cs.nthu!news.neu.edu.cn!news.happynet.org!news.feeling.smth.o
由於本游戏程序改动较大,需要改动以下数个头文件。
目录位於 src/include:
::: config.h :::: 增加下行
#define HAVE_TETRIS
::: struct.h :::: 增加下面部分
#ifdef HAVE_TETRIS
/* hightman.030101: 俄罗斯方块有关纪录 */
typedef struct
{
usint maxlines;
usint maxscore;
usint win;
usint total;
int exp;
} TetrisRecord;
#endif
::: attr.h ::: 增加下行
#ifdef HAVE_TETRIS
#define ATTR_TETRIS_REC 0x00002220
#endif
::: modes.h :::
(
请增加 M_TETRIS 和 M_TETRIS2 的定义,
若要让 TETRIS2 接对像,请参考talk.c做相应修改
改过 modes.h 後需要重新编译主程序和所有 .so 文件
即用到 utmp_mode() 的
)
--
※ 来源:.温馨小屋 bbs.feeling.smth.org.[FROM: lib.zju.edu.cn]