type.h 增加几个定义备用
This commit is contained in:
parent
e0b78a9ad9
commit
41abab1756
src/game
|
@ -40,6 +40,11 @@ enum move_t : int32_t
|
|||
//MOVE_NULL = 65
|
||||
};
|
||||
|
||||
enum color_t
|
||||
{
|
||||
BLACK, WHITE, COLOR_COUNT = 2
|
||||
};
|
||||
|
||||
enum square_t : int32_t
|
||||
{
|
||||
SQ_0 = 0, SQ_1 = 1, SQ_2 = 2, SQ_3 = 3, SQ_4 = 4, SQ_5 = 5, SQ_6 = 6, SQ_7 = 7,
|
||||
|
@ -64,6 +69,18 @@ enum direction_t
|
|||
DIRECTIONS_COUNT = 4 // 移动方向数
|
||||
};
|
||||
|
||||
// 列
|
||||
enum file_t : int
|
||||
{
|
||||
FILE_A, FILE_B, FILE_C, FILE_D, FILE_E, FILE_F, FILE_G, FILE_COUNT
|
||||
};
|
||||
|
||||
// 行
|
||||
enum rank_t : int
|
||||
{
|
||||
RANK_1, RANK_2, RANK_3, RANK_4, RANK_5, RANK_6, RANK_7, RANK_COUNT
|
||||
};
|
||||
|
||||
// 横直斜3个方向,禁止修改!
|
||||
enum line_t
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue