Brick Game v1.0
Implementation of the game Tetris in the C programming language with a terminal user interface.
|
CLI Controller. More...
#include <cli.h>
Public Member Functions | |
CliController | cli_controller_create (void) |
Create a new CliController. | |
void | cli_controller_run_main_loop (CliController *controller) |
Run the main application loop. | |
void | cli_controller_destroy (CliController controller) |
Destroy CliController and release its resources. | |
Data Fields | |
GameInfo | game_info |
Information about the game. | |
CliView | view |
CLI View that is responsible for rendering game_info. | |
GameInstance * | game_instance |
An instance of the game data. | |
bool | running |
Flag, signifying if the controller should continue running the main loop, or exit. | |
CLI Controller.
Runs the main loop, collects inputs and passes them into the library, passes information about the game to CliView.
GameInfo CliController::game_info |
Information about the game.
This is the "model" that is being rendered.