Starship Code Contest  0.1
A real student nightmare...
acquisition.h
Go to the documentation of this file.
1 
10 #ifndef _ACQUISITION_
11 #define _ACQUISITION_
12 
21 typedef struct{
22  int move;
23  double angle_starship;
24  double angle_gun;
25  double angle_radar;
26  int shot;
28 
38 typedef struct{
39  double x;
40  double y;
41  double angle_move;
42  int speed;
43  int nb_team;
45 
46 
55 typedef struct{
56  double x;
57  double y;
58  double angle_move;
60 
68 typedef void (*AI)(Decision_frame* f);
69 
83 double get_x(char* me);
84 
98 double get_y(char* me);
99 
111 int get_life(char* me);
112 
124 int get_speed(char* me);
125 
138 int get_nb_team(char* me);
139 
150 int get_gun_status(char* me);
151 
165 double get_move_angle(char* me);
166 
180 double get_gun_angle(char* me);
181 
195 double get_radar_angle(char* me);
196 
214 void get_scan_from_radar(char* me, View_starship** S, int* nb_starship, View_missile** M, int* nb_missile);
215 
216 #endif
double angle_gun
Definition: acquisition.h:24
double get_radar_angle(char *me)
Get the angle of the radar of the starship piloted by the plugin me.
double angle_move
Definition: acquisition.h:58
int get_gun_status(char *me)
Get the number of frames needed to reload the gun of the starship piloted by the plugin me...
The core objet on an A.I. handling the decision making.
double get_y(char *me)
Get the position in ordinate of the starship piloted by the plugin me.
double angle_radar
Definition: acquisition.h:25
This structure gathers information scaned by the radar about other starships.
Definition: acquisition.h:38
double get_x(char *me)
Get the position in absicca of the starship piloted by the plugin me.
double angle_move
Definition: acquisition.h:41
int get_nb_team(char *me)
Get the number of the team of the starship piloted by the plugin me.
void get_scan_from_radar(char *me, View_starship **S, int *nb_starship, View_missile **M, int *nb_missile)
Set information that the radar can get in its current position.
This structure gathers the information needed to pilot a starship each frame.
Definition: acquisition.h:21
double get_gun_angle(char *me)
Get the angle of the gun of the starship piloted by the plugin me.
int get_speed(char *me)
Get the gear of the starship piloted by the plugin me.
double angle_starship
Definition: acquisition.h:23
This structure gathers information scaned by the radar about missiles.
Definition: acquisition.h:55
double get_move_angle(char *me)
Get the moving angle of the starship piloted by the plugin me.
int get_life(char *me)
Get the life of the starship piloted by the plugin me.