diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-11 01:30:22 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-11 01:30:22 +0800 |
commit | f1c53390c4817e5f9552588f298808764ef1bc65 (patch) | |
tree | 6410c5100306d7aa816f796ad0f2865a76e64e8b /mbbsd/chc.c | |
parent | 3a13adbea9793d58c961c3fc869fd1f79fdedad3 (diff) | |
download | pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.tar pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.tar.gz pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.tar.bz2 pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.tar.lz pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.tar.xz pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.tar.zst pttbbs-f1c53390c4817e5f9552588f298808764ef1bc65.zip |
GO convertion to chess framework
* versus, personal and watching all work
chess.c framework update
* "pass" and "tie request" are distinguished
* chess-specific key binding
* post-game processing
!!!NOTE!!! Chess protocals are NOT backward compatible
RESTART WHOLE system to ensure correctness
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chc.c')
-rw-r--r-- | mbbsd/chc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c index a6b59da3..77b12c41 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -105,10 +105,12 @@ static const ChessActions chc_actions = { &chc_drawline, &chc_movecur, &chc_prepare_play, + NULL, &chc_select, &chc_prepare_step, (ChessGameResult (*) (void*, const void*)) &chc_movechess, (void (*)(ChessInfo*, const void*)) &chc_drawstep, + NULL, /* post_game */ &chc_gameend, &chc_genlog }; @@ -118,6 +120,7 @@ static const ChessConstants chc_constants = { CHC_TIMEOUT, BRD_ROW, BRD_COL, + 0, "·¡ªeº~¬É", "photo_cchess", #ifdef GLOBAL_CCHESS_LOG @@ -212,8 +215,6 @@ chc_drawline(const ChessInfo* info, int line) board_p board = (board_p) info->board; chc_tag_data_t *tag = info->tag; - move(line, 0); - clrtoeol(); if (line == 0) { prints(ANSI_COLOR(1;46) " ¶H´Ñ¹ï¾Ô " ANSI_COLOR(45) "%30s VS %-20s%10s" ANSI_RESET, @@ -252,7 +253,7 @@ chc_drawline(const ChessInfo* info, int line) prints("%s ", num_str[REDDOWN(info)?1:0][i]); } - ChessDrawExtraInfo(info, line); + ChessDrawExtraInfo(info, line, 8); } /* * End of the drawing function. |