diff options
author | Oxore <oxore@protonmail.com> | 2019-07-28 22:34:08 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2019-07-28 23:28:36 +0300 |
commit | b11514e729b5b82f2d1b7f91f5ac10508bec8795 (patch) | |
tree | dcc1212ffea811e7946e238f09e4876fbef96015 /include | |
parent | 1a0886d852bb8a0d9428dc6f54c1e503d06073a0 (diff) |
Make game states exclusive trough one enum var only
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h index 140044d..36a2d21 100644 --- a/include/common.h +++ b/include/common.h @@ -1,11 +1,17 @@ struct field; +struct idlist; + +enum game_state { + GS_MAIN_MENU, + GS_STARTED, + GS_GAME_OVER, + GS_GAME_OVER_WAIT, + GS_PAUSED +}; struct game { + enum game_state state; size_t level; - int started; - int paused; - int over_wait; - int over; int scoreCurrent; int moveLatency; int lines; |