Go to the documentation of this file.
33 #define MODE_EASY_WIDTH 60
34 #define MODE_FAIR_WIDTH 61
35 #define MODE_HARD_WIDTH 60
36 #define MODE_RANDOM_WIDTH 90
37 #define MODE_DETERMINISTIC_WIDTH 198
38 #define MODES_HEIGHT 500
void vGUIDrawLanded(const color_t landed[ROWS][COLS], const image_handle_t squares[])
Draw the array of landed tetrominos.
Definition: gui.c:575
void vGUIDrawNextTetromino(const tetromino_t *tetromino, const image_handle_t squares[])
Draw the upcoming Tetromino in the upper right corner.
Definition: gui.c:588
bool bGUIDrawPlayerModeSelection(player_mode_t *playerMode)
Draw the player-mode selection in Main Menu.
Definition: gui.c:411
void vGUIDrawFPS(void)
Draw an FPS counter.
Definition: gui.c:620
void vGUIDrawStatic(const image_handle_t squares[], const score_t *score)
Draw the wall, score, level & number of lines completed.
Definition: gui.c:286
void vGUIDrawMainMenu(game_mode_t mode, player_mode_t playerMode, rotation_t rotationMode, bool isConnected)
Draw the main menu.
Definition: gui.c:68
#define ROWS
Number of rows, that the board contains.
Definition: tetrisConfig.h:80
enum color color_t
Tetromino colors.
File containing some game configurations.
#define COLS
Number of columns, that the board contains.
Definition: tetrisConfig.h:79
enum rotation rotation_t
Rotations.
void vGUIDrawTetromino(const tetromino_t *tetromino, const image_handle_t squares[])
Draw the current Tetromino.
Definition: gui.c:562
bool bGUIDrawLevelMenuSelection(void)
Draws & let the player switch to the level selection/highscores screen.
Definition: gui.c:488
Structure representing a Tetromino.
Definition: logic.h:52
bool bGUIDrawLevelScreen(uint8_t *currentLevel, const score_t highScores[])
Draw the level selection & highscores screen.
Definition: gui.c:164
Structure for the score.
Definition: logic.h:70
void vGUIDrawPauseMenu(bool isConnected)
Draw the Pause Menu.
Definition: gui.c:326
void vGUISetImageHandle(image_handle_t squares[])
Takes an image_handle_t array & initializes it with the correct images.
Definition: gui.c:661
void * image_handle_t
Handle used to reference loaded images, an invalid image will have a NULL handle.
Definition: TUM_Draw.h:130
bool bGUIDrawRotationSelection(rotation_t *rotationMode)
Draw rotation-mode selection in Main Menu.
Definition: gui.c:446
enum game_mode game_mode_t
Game modes supported by the "opponent".
enum player_mode player_mode_t
Player modes.
void vGUIDrawGameOverMenu(score_t *score, char *lastUserName)
Draw the Game-Over Menu.
Definition: gui.c:370