Burp
Functions
ui.c File Reference
#include "ui.h"
Include dependency graph for ui.c:

Functions

void eraseArena ()
 
void printRobot (robot *rob)
 
void printRocket (missile *rocket)
 
void printInfoRobot (robot *rob)
 
void add_action (char *action, int id)
 
void anim_begin ()
 
void end_screen (robot *robot)
 
void add_log (char *message)
 
void updateArena (arena *arena)
 
void init ()
 
int quit ()
 

Function Documentation

◆ add_action()

void add_action ( char *  action,
int  id 
)

Add an action

◆ add_log()

void add_log ( char *  message)

Add a message to the log

◆ anim_begin()

void anim_begin ( )

Launch the begin animation

◆ end_screen()

void end_screen ( robot robot)

Draw the end screen

Here is the call graph for this function:

◆ eraseArena()

void eraseArena ( )

Erase the arena

◆ init()

void init ( )

Init function that launch ui

◆ printInfoRobot()

void printInfoRobot ( robot rob)

Print a robot information

Here is the call graph for this function:

◆ printRobot()

void printRobot ( robot rob)

Print a robot in the arena If the case is already used, then write on another case following this order : 5 4#2 3

Here is the call graph for this function:

◆ printRocket()

void printRocket ( missile rocket)

Print a rocket in the arena Works the same as printRobot()

Here is the call graph for this function:

◆ quit()

int quit ( )

Quit Ncurses

◆ updateArena()

void updateArena ( arena arena)

Update the arena, and the info with data in the arena

Here is the call graph for this function: