12 #include "../includes/acquisition.h" 18 static int turn_gun=0;
19 static int turn_radar=0;
21 static double gun_modif=0;
22 static double radar_modif=0;
24 static char me[12]=
"alea_shot.so";
41 gun_modif = 0.15*(double)((rand() % 3) - 1);
45 if (turn_radar == 15){
47 radar_modif = 0.15*(double)((rand() % 3) - 1);
int get_gun_status(char *me)
Get the number of frames needed to reload the gun of the starship piloted by the plugin me...
void decision_frame(Decision_frame *d)
turning gun and radar randomly and shoting everytime it is possible.
void clean_my_AI(void)
Clean this test plugin.
This structure gathers the information needed to pilot a starship each frame.
void initialize_my_AI(void)
Initialization of this test plugin.