summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-30 23:48:39 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-30 23:48:39 +0800
commit15a7b86bf116a005e7c0f35b03a7a5be034c5479 (patch)
tree2bbe33c71837314d5476e177227cc0025744245b /include
parent715542867ba891acf8c1fd6234f5d6ea2fc285f6 (diff)
downloadpttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.tar
pttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.tar.gz
pttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.tar.bz2
pttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.tar.lz
pttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.tar.xz
pttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.tar.zst
pttbbs-15a7b86bf116a005e7c0f35b03a7a5be034c5479.zip
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
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);