Skip to content

Commit 50fd10e

Browse files
committed
tmp
1 parent a00572e commit 50fd10e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

game/board.h

+12-2
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@ namespace mahjong {
1616
#define ACTION_HU 7
1717
#define ACTION_DISCARDTILE 8
1818

19-
enum BOARD_STATUS {}; //牌局状态机
19+
enum board_status_t {
20+
BOARD_STATUS_WAITING_FOR_START,
21+
}; //牌局状态机
2022

2123
//牌局类
2224
class Board {
2325
public:
2426
Board() {}
27+
void Next() {
28+
switch (_status) {
29+
case BOARD_STATUS_WAITING_FOR_START:
30+
break;
31+
default:
32+
break;
33+
}
34+
}
2535

2636
private:
2737
Fan _fan; //算番器
28-
BOARD_STATUS _status;
38+
board_status_t _status;
2939
};
3040

3141
} // namespace mahjong

0 commit comments

Comments
 (0)