diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-03-02 18:26:39 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-03-02 18:26:39 +0100 |
commit | a988df656b4d37dfa2472a4cde390185cfcea8b5 (patch) | |
tree | 262b48644a5aff086b6ead687d0f2297bf946c2b /gst/info.h | |
parent | 7932daa7e308b1c92ab97dde00fcc0ed790895a6 (diff) |
test foundation and functional reimplementation of cost function
Diffstat (limited to 'gst/info.h')
-rw-r--r-- | gst/info.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -80,6 +80,8 @@ typedef struct { typedef struct { char damage_types[7][32]; + stats_unit cost_weights; + info_unit templates[MAXTEMPLATES]; int templateslen; @@ -89,13 +91,14 @@ typedef struct { void info_unit_init (info_unit *u); - int stats_frame_sprintf (infos *info, stats_frame *frame, char arr[][64]); int stats_weapon_sprintf (infos *info, stats_weapon *weap, char arr[][64]); void stats_unit_compute (infos *info, info_unit *u, stats_unit *base); float stats_compute_damage (stats_weapon *weapon, stats_frame *frame, float *red); + +float stats_compute_cost (stats_unit *w, stats_unit *base); void info_load (infos *info); |