X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-error.h;h=fff3c14d4543c45e5e66cf911436b4d16b81d959;hp=3fb1dd915a103b88116ca4c8a5b6d6cfa06dcce4;hb=78c696d4ed9578c3d1ece01b8e4667839ff5fb04;hpb=259558bcd2a5734c9e527b68a301347ea8fc5e25 diff --git a/src/ttt-error.h b/src/ttt-error.h index 3fb1dd9..fff3c14 100644 --- a/src/ttt-error.h +++ b/src/ttt-error.h @@ -26,19 +26,24 @@ typedef enum { TTT_ERROR_NONE, + /* 3.1. Connection setup errors */ TTT_ERROR_NO_NAME_SET, TTT_ERROR_INVALID_NAME, + /* 3.2. Command format errors */ TTT_ERROR_COMMAND, TTT_ERROR_SYNTAX, TTT_ERROR_NOT_NUMBER, TTT_ERROR_NOT_GRID, + /* 3.3. Global command errors */ + /* 3.4. Game management errors */ + TTT_ERROR_NO_INVITE, + TTT_ERROR_NO_GAME, + /* 3.5. User information errors */ TTT_ERROR_NO_USER, - TTT_ERROR_NOT_IN_GAME, + /* 3.6. In-game errors */ TTT_ERROR_NOT_PLAYING, TTT_ERROR_NOT_YOUR_TURN, - TTT_ERROR_NO_INVITE, - TTT_ERROR_NO_GAME, - + TTT_ERROR_NOT_VALID_MOVE, /* Here's a non-protocol pseudo-error used to implement QUIT. */ TTT_ERROR_QUIT_REQUESTED