Burp
Functions
cycle.h File Reference
#include "game/arene.h"
#include "file_reader/interpreter.h"
#include "game/robot.h"
#include "game/missile.h"
Include dependency graph for cycle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

short cycle (arena *a, int line[4], Tree syntax_tree[4])
 
char * getNextCommand (int idRobot)
 
void init_next (arena *a, int line[4], Tree syntax_tree[4])
 

Function Documentation

◆ cycle()

short cycle ( arena a,
int  line[4],
Tree  syntax_tree[4] 
)

Realise a cycle of the model. change the result of getNextCommand.

◆ getNextCommand()

char* getNextCommand ( int  idRobot)

Return a string that correspond to the next command that will be executed by the robot of id [ idRobot ]

◆ init_next()

void init_next ( arena a,
int  line[4],
Tree  syntax_tree[4] 
)

Initialise next commands before the execution of cycle.