From 15a7b86bf116a005e7c0f35b03a7a5be034c5479 Mon Sep 17 00:00:00 2001 From: scw Date: Wed, 30 May 2007 15:48:39 +0000 Subject: Fix last commit -- forgot to check in header file modification git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3524 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/chess.h | 2 +- include/modes.h | 4 +++- include/proto.h | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/chess.h b/include/chess.h index f51dfa5b..e1a50777 100644 --- a/include/chess.h +++ b/include/chess.h @@ -127,7 +127,7 @@ typedef struct ChessActions { /* playing */ void (*drawline) (const ChessInfo* info, int line); void (*movecur) (int r, int c); - void (*prepare_play)(ChessInfo* info); + int (*prepare_play)(ChessInfo* info); int (*process_key) (ChessInfo* info, int key, ChessGameResult* result); int (*select) (ChessInfo* info, rc_t location, ChessGameResult* result); diff --git a/include/modes.h b/include/modes.h index 6a4ef66e..b5bc9833 100644 --- a/include/modes.h +++ b/include/modes.h @@ -102,7 +102,8 @@ #define UMODE_GO 82 #define DEBUGSLEEPING 83 #define UMODE_CONN6 84 -#define MODE_MAX 85 /* 所有其他選單動態須在此之前 */ +#define REVERSI 85 +#define MODE_MAX 86 /* 所有其他選單動態須在此之前 */ /* menu.c 中的模式 */ #define QUIT 0x666 /* Return value to abort recursive functions */ @@ -169,6 +170,7 @@ enum {STRIP_ALL = 0, ONLY_COLOR, NO_RELOAD}; #define SIG_CHC 4 #define SIG_DARK 5 #define SIG_GO 6 +#define SIG_REVERSI 7 /* talk.c 中的模式 */ #define WATERBALL_GENERAL 0 diff --git a/include/proto.h b/include/proto.h index 1d482e55..c5afa9b2 100644 --- a/include/proto.h +++ b/include/proto.h @@ -543,6 +543,12 @@ void check_register(void); char *genpasswd(char *pw); int setupnewuser(const userec_t *user); +/* reversi */ +void reversi(int s, ChessGameMode mode); +int reversi_main(void); +int reversi_personal(void); +int reversi_watch(void); +ChessInfo* reversi_replay(FILE* fp); /* screen */ void mouts(int y, int x, const char *str); -- cgit v1.2.3