Brick Game v1.0
Implementation of the game Tetris in the C programming language with a terminal user interface.
Loading...
Searching...
No Matches
CliController Struct Reference

CLI Controller. More...

#include <cli.h>

+ Collaboration diagram for CliController:

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.
 
GameInstancegame_instance
 An instance of the game data.
 
bool running
 Flag, signifying if the controller should continue running the main loop, or exit.
 

Detailed Description

CLI Controller.

Runs the main loop, collects inputs and passes them into the library, passes information about the game to CliView.

Field Documentation

◆ game_info

GameInfo CliController::game_info

Information about the game.

This is the "model" that is being rendered.


The documentation for this struct was generated from the following file: