Corewar documentation 1.0.0
Loading...
Searching...
No Matches
display.c File Reference

The file containing the display functions. More...

Functions

void init_display (corewar_t *corewar)
 Initialize the display.
 
void set_color (int address, char *owner)
 Set the color of the texte.
 
void display_register (int *champion_register)
 Display the register of the champion.
 
void display_champions (corewar_t *corewar)
 Display the champions.
 
void display_corewar (corewar_t *corewar)
 Display the corewar.
 

Detailed Description

The file containing the display functions.

Function Documentation

◆ display_champions()

void display_champions ( corewar_t * corewar)

Display the champions.

Parameters
corewarThe corewar structure
Returns
void

◆ display_corewar()

void display_corewar ( corewar_t * corewar)

Display the corewar.

Parameters
corewarThe corewar structure
Returns
void

◆ display_register()

void display_register ( int * champion_register)

Display the register of the champion.

Parameters
champion_registerThe register of the champion
Returns
void

◆ init_display()

void init_display ( corewar_t * corewar)

Initialize the display.

Parameters
corewarThe corewar structure
Returns
void

◆ set_color()

void set_color ( int address,
char * owner )

Set the color of the texte.

Parameters
addressThe address of the cell
ownerThe owner of the cell
Returns
void