PixelWars/orange.c

23 lines
376 B
C

#include "team.h"
#include "stdlib.h"
// Hello World
typedef struct{
int plop; // custom info
} t_data;
int get_orange_size(){
return sizeof(t_data);
}
t_action orange_update(void* my_info, void* com_data, int my_id, int success){
t_data* data = (t_data*)my_info;
t_action action;
action.type = MOVE;
action.dir = rand()%4;
action.data = NULL;
return action;
}