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

Functions

char * getNextCommand (int idRobot)
 
void init_next (arena *a, int line[4], Tree syntax_tree[4])
 
short cycle (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.