Brick Game v1.0
Implementation of the game Tetris in the C programming language with a terminal user interface.
Loading...
Searching...
No Matches
cli.h
Go to the documentation of this file.
1
3
4#ifndef BRICK_GAME_V1_0_GUI_CLI_CLI_H_
5#define BRICK_GAME_V1_0_GUI_CLI_CLI_H_
6
7#include <stdbool.h>
8
9#include "../../brick_game/brick_game.h"
10#include "view.h"
11
32
36CliController cli_controller_create(void);
37
41void cli_controller_run_main_loop(CliController *controller);
42
46void cli_controller_destroy(CliController controller);
47
48#endif // BRICK_GAME_V1_0_GUI_CLI_CLI_H_
CLI Controller.
Definition cli.h:16
CliView view
CLI View that is responsible for rendering game_info.
Definition cli.h:23
bool running
Flag, signifying if the controller should continue running the main loop, or exit.
Definition cli.h:30
GameInstance * game_instance
An instance of the game data.
Definition cli.h:26
GameInfo game_info
Information about the game.
Definition cli.h:20
CLI View responsible for rendering the game information to the screen.
Definition view.h:13
Information about the current state of the game.
Definition brick_game.h:46
Definition lib.c:11
The CLI View.