Burp
Macros | Functions
ui.h File Reference
#include <ncurses.h>
#include "../model/game/robot.h"
#include "../model/game/missile.h"
#include "../model/game/arene.h"
#include "../define.h"
Include dependency graph for ui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG_SIZE   60
 

Functions

void init ()
 
int quit ()
 
void anim_begin ()
 
void end_screen (robot *robot)
 
void add_log (char *message)
 
void add_action (char *action, int id)
 
void updateArena (arena *arena)
 

Macro Definition Documentation

◆ LOG_SIZE

#define LOG_SIZE   60
  • ui.c & ui.h supply functions to use the textual interface -

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:

◆ init()

void init ( )

Init function that launch ui

◆ 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: