summaryrefslogtreecommitdiffstats
path: root/include/context.h
blob: 95580ee9836ddd12362e497cd81c97b935c6444c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdlib.h>

typedef enum {
	ATM_1,
	ATM_2
} ATM_MODEL;

typedef struct {
	float scope_angle;
	float bullet_mass;
	float bore_height;
	float muzzle_vel;
	float ballistic_coef;
	size_t drag_model;
	float twist_dir;
} gun_config;

typedef struct {
	float termperature;
	float bar_pressure;
	float rel_humidity;
	float wind_speed;
	size_t wind_dir;
	ATM_MODEL atmosphere_model;
} atmo_context;

typedef struct {
	float target_speed;
	float target_range;
} target_context;

typedef struct {
	gun_config gun;
} ATragMXSolution;