diff options
author | Oxore <oxore@protonmail.com> | 2018-12-06 05:24:30 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2018-12-06 07:59:07 +0300 |
commit | 80ff7b315a6b5a9f9c62de5c6b03f52ddf099837 (patch) | |
tree | b8b982e702ac5a64db40116e39fd453e998b3dbd /include/common.h | |
parent | 80325e9dfaece1316fa5cdc2b0551280369c4f7d (diff) |
Add simple documentation in comments, refactor.
Change all `unsigned int` and `unsigned long` types to `size_t`.
Fix names alignment in headers.
Add documentation and simple description:
Painter - painter.h
Main - tetris.c
Unicode - unicode.h
IDList - idlist.h
Engine - engine.c
Minor changes:
tetris.c - fix indentation and code blocks separation with newlines,
remove unused includes.
idlist.h - fix structure field name alignment.
field.h, engine.c - define aliases for ghost and active shapes indexes
in the field.
engine.c - rename menuTick to snake case, fix curly braces style of
functions.
Makefile - switch SFML deprecated warnings off.
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/common.h b/include/common.h index 3273c66..76293c5 100644 --- a/include/common.h +++ b/include/common.h @@ -1,14 +1,14 @@ struct game { - unsigned int level; - int started; - int paused; - int scoreCurrent; - int moveLatency; - int lines; - sfClock *gameTick; - sfClock *putTick; - sfClock *mTick; - sfClock *repPushDown; // repeat latency when hold Down arrow - sfClock *repKeyLeft; // repeat latency when hold Left arrow - sfClock *repKeyRight; // repeat latency when hold Right arrow + size_t level; + int started; + int paused; + int scoreCurrent; + int moveLatency; + int lines; + sfClock *gameTick; + sfClock *putTick; + sfClock *mTick; + sfClock *repPushDown; // repeat latency when hold Down arrow + sfClock *repKeyLeft; // repeat latency when hold Left arrow + sfClock *repKeyRight; // repeat latency when hold Right arrow }; |