FreeRTOS Tetris
enum.h
Go to the documentation of this file.
1 
20 #ifndef ENUM_H
21 #define ENUM_H
22 
26 typedef enum game_mode
27 {
28  NO_MODE = 0,
29  FAIR = 1,
30  EASY = 2,
31  HARD = 3,
32  RANDOM = 4,
34 } game_mode_t;
35 
39 typedef enum rotation
40 {
42  LEFT = 1,
43  RIGHT = 2
44 } rotation_t;
45 
49 typedef enum color
50 {
51  NO_COLOR = 0,
52  TETRIS_BLUE = 1,
53  TETRIS_GREEN = 2,
54  TETRIS_YELLOW = 3,
55  TETRIS_RED = 4,
56  TETRIS_LIGHT_BLUE = 5,
57  TETRIS_PURPLE = 6
58 } color_t;
59 
63 typedef enum tetromino_type
64 {
65  NO_TYPE = 0,
66  S = 1,
67  Z = 2,
68  J = 3,
69  L = 4,
70  T = 5,
71  O = 6,
72  I = 7
74 
78 typedef enum player_mode
79 {
80  NO_PLAYER = 0,
81  SINGLE_PLAYER = 1,
82  MULTI_PLAYER = 2
84 
86 #endif // ENUM_H
LEFT
@ LEFT
Rotating Tetrominos to the left.
Definition: enum.h:42
tetromino_type_t
enum tetromino_type tetromino_type_t
Tetromino types.
RANDOM
@ RANDOM
Random mode, the opponent will produce random Tetromino types.
Definition: enum.h:32
tetromino_type
tetromino_type
Tetromino types.
Definition: enum.h:63
rotation
rotation
Rotations.
Definition: enum.h:39
EASY
@ EASY
Easy mode, the opponent will produce fewer S & Z Tetrominos.
Definition: enum.h:30
game_mode
game_mode
Game modes supported by the "opponent".
Definition: enum.h:26
RIGHT
@ RIGHT
Rotating Tetrominos to the right.
Definition: enum.h:43
color_t
enum color color_t
Tetromino colors.
DETERMINISTIC
@ DETERMINISTIC
Deterministic mode, the opponent will produce each Tetromino type at least once every 7 types.
Definition: enum.h:33
NO_MODE
@ NO_MODE
No mode selected.
Definition: enum.h:28
HARD
@ HARD
Hard mode, the opponent will produce more S & Z Tetrominos.
Definition: enum.h:31
rotation_t
enum rotation rotation_t
Rotations.
NO_ROTATION
@ NO_ROTATION
No rotation.
Definition: enum.h:41
color
color
Tetromino colors.
Definition: enum.h:49
player_mode
player_mode
Player modes.
Definition: enum.h:78
FAIR
@ FAIR
Fair mode, the opponent will produce a fair selection of Tetrominos.
Definition: enum.h:29
game_mode_t
enum game_mode game_mode_t
Game modes supported by the "opponent".
player_mode_t
enum player_mode player_mode_t
Player modes.