FreeRTOS Tetris
Typedefs | Enumerations
Enumerations

Enumerations that are used throughout the project. More...

Collaboration diagram for Enumerations:

Typedefs

typedef enum game_mode game_mode_t
 Game modes supported by the "opponent".
 
typedef enum rotation rotation_t
 Rotations.
 
typedef enum color color_t
 Tetromino colors.
 
typedef enum tetromino_type tetromino_type_t
 Tetromino types.
 
typedef enum player_mode player_mode_t
 Player modes.
 

Enumerations

enum  game_mode {
  NO_MODE = 0, FAIR = 1, EASY = 2, HARD = 3,
  RANDOM = 4, DETERMINISTIC = 5
}
 Game modes supported by the "opponent". More...
 
enum  rotation { NO_ROTATION = 0, LEFT = 1, RIGHT = 2 }
 Rotations. More...
 
enum  color {
  NO_COLOR = 0, TETRIS_BLUE = 1, TETRIS_GREEN = 2, TETRIS_YELLOW = 3,
  TETRIS_RED = 4, TETRIS_LIGHT_BLUE = 5, TETRIS_PURPLE = 6
}
 Tetromino colors.
 
enum  tetromino_type {
  NO_TYPE = 0, S = 1, Z = 2, J = 3,
  L = 4, T = 5, O = 6, I = 7
}
 Tetromino types.
 
enum  player_mode { NO_PLAYER = 0, SINGLE_PLAYER = 1, MULTI_PLAYER = 2 }
 Player modes.
 

Detailed Description

Enumerations that are used throughout the project.

Authors
Philipp Karg (phili.nosp@m.pp.k.nosp@m.arg@t.nosp@m.um.d.nosp@m.e)
Date
04.02.2021

Enumeration Type Documentation

◆ game_mode

enum game_mode

#include <enum.h>

Game modes supported by the "opponent".

Enumerator
NO_MODE 

No mode selected.

FAIR 

Fair mode, the opponent will produce a fair selection of Tetrominos.

EASY 

Easy mode, the opponent will produce fewer S & Z Tetrominos.

HARD 

Hard mode, the opponent will produce more S & Z Tetrominos.

RANDOM 

Random mode, the opponent will produce random Tetromino types.

DETERMINISTIC 

Deterministic mode, the opponent will produce each Tetromino type at least once every 7 types.

◆ rotation

enum rotation

#include <enum.h>

Rotations.

Enumerator
NO_ROTATION 

No rotation.

LEFT 

Rotating Tetrominos to the left.

RIGHT 

Rotating Tetrominos to the right.