From b8e44818ca32575fce76ecd90d770411734b1e1e Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 22 Aug 2003 08:24:17 +0000 Subject: merge from my branch git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1125 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/modes.h | 7 ++++++- include/proto.h | 6 +++--- include/pttstruct.h | 10 +++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/modes.h b/include/modes.h index 3606cb1a..a70e7047 100644 --- a/include/modes.h +++ b/include/modes.h @@ -1,4 +1,4 @@ -/* $Id: modes.h,v 1.3 2003/05/26 05:23:13 in2 Exp $ */ +/* $Id$ */ #ifndef INCLUDE_MODES_H #define INCLUDE_MODES_H @@ -97,6 +97,11 @@ #define REEDIT 79 #define BLOGGING 80 +/* 象棋 */ +#define CHC_VERSUS 0 /* 雙人 */ +#define CHC_WATCH 1 /* 觀棋 */ +#define CHC_PERSONAL 2 /* 打譜 */ + /* menu.c 中的模式 */ #define QUIT 0x666 /* Return value to abort recursive functions */ #define XEASY 0x333 /* Return value to un-redraw screen */ diff --git a/include/proto.h b/include/proto.h index 5e902289..84db664c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -165,16 +165,16 @@ int card_99(); int t_chat(); /* chc_draw */ -void chc_drawline(board_t board, int line); +void chc_drawline(board_t board, chcusr_t *user1, chcusr_t *user2, int line); void chc_movecur(int r, int c); -void chc_redraw(board_t board); +void chc_redraw(chcusr_t *user1, chcusr_t *user2, board_t board); /* chc_net */ void chc_sendmove(int s); int chc_recvmove(int s); /* chc_play */ -void chc(int s); +void chc(int s, int mode); /* chc_rule */ void chc_movechess(board_t board); diff --git a/include/pttstruct.h b/include/pttstruct.h index 2401c26b..1cb59f85 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -1,4 +1,4 @@ -/* $Id: pttstruct.h,v 1.43 2003/07/20 00:55:34 in2 Exp $ */ +/* $Id$ */ #ifndef INCLUDE_STRUCT_H #define INCLUDE_STRUCT_H @@ -425,4 +425,12 @@ typedef struct int recno; } TagItem; +/* 象棋 */ +typedef struct chcusr_t{ + char userid[IDLEN + 1]; + int uid; + int win; + int lose; + int tie; +} chcusr_t; #endif -- cgit v1.2.3