summaryrefslogtreecommitdiff
path: root/include/common.h
blob: 140044d885e180f910194b8eb4861302d8e99bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
struct field;

struct game {
    size_t      level;
    int         started;
    int         paused;
    int         over_wait;
    int         over;
    int         scoreCurrent;
    int         moveLatency;
    int         lines;
    sfClock    *gameTick;
    sfClock    *over_wait_tick;
    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

    struct field *fld;
    struct field *nxt;
    struct idlist *texts;
};