summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/chess.h2
-rw-r--r--include/modes.h4
-rw-r--r--include/proto.h6
3 files changed, 10 insertions, 2 deletions
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);