From 2f345b1d6e130177efe4fa47d5b2bd11f352ce85 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Thu, 25 Feb 2021 16:36:55 +0100 Subject: guillotined dead code --- gst/info.h | 86 +------------------------------------------------------------- 1 file changed, 1 insertion(+), 85 deletions(-) (limited to 'gst/info.h') diff --git a/gst/info.h b/gst/info.h index 1e22ea6..eab1a51 100644 --- a/gst/info.h +++ b/gst/info.h @@ -77,102 +77,18 @@ typedef struct { int8_t levels[35]; } info_unit; -typedef struct { - char name[32]; - int damage_type; - float weight[MAXLEVEL]; - float cooldown[MAXLEVEL]; - float damage[MAXLEVEL]; - float range[MAXLEVEL]; - float aoe[MAXLEVEL]; - int knockback[MAXLEVEL]; - float damage_battery[MAXLEVEL]; - int stun[MAXLEVEL]; - float reduce_armor[7][MAXLEVEL]; - float upkeep[MAXLEVEL]; - float charge_per_shot[MAXLEVEL]; -} info_weapon; - -typedef struct { - char name[32]; - int slot_weapon[MAXLEVEL]; - int slot_armor[MAXLEVEL]; - int slot_aug[MAXLEVEL]; - float weight_max[MAXLEVEL]; - float hp[MAXLEVEL]; - float speed[MAXLEVEL]; - float upkeep[MAXLEVEL]; -} info_chassis; - -typedef struct { - char name[32]; - float weight[MAXLEVEL]; - float capacity[MAXLEVEL]; - int recharge[MAXLEVEL]; -} info_battery; - -typedef struct { - char name[32]; - float weight[MAXLEVEL]; - float armor[7][MAXLEVEL]; - float upkeep[MAXLEVEL]; -} info_armor; - -typedef struct { - char name[32]; - float weight[MAXLEVEL]; - float add_damage[7][MAXLEVEL]; - float add_armor[7][MAXLEVEL]; - float add_range[MAXLEVEL]; - float add_cooldown[MAXLEVEL]; - float add_speed[MAXLEVEL]; - float add_hp[MAXLEVEL]; - float add_capacity[MAXLEVEL]; - float upkeep[MAXLEVEL]; -} info_aug; - -typedef struct { - char name[32]; - float upkeep[MAXLEVEL]; -} info_brain; typedef struct { char damage_types[7][32]; info_unit templates[MAXTEMPLATES]; int templateslen; - info_weapon weapons[64]; - int weaponslen; - info_chassis chassis[32]; - int chassislen; - info_battery batteries[32]; - int batterieslen; - info_armor armors[32]; - int armorslen; - info_aug augs[32]; - int augslen; - info_brain brains[32]; - int brainslen; stats_comp *stats[6]; int statslen[6]; } infos; void info_unit_init (info_unit *u); -float info_unit_get_capacity (infos *info, info_unit *u); -float info_unit_get_upkeep (infos *info, info_unit *u); -float info_unit_get_weight (infos *info, info_unit *u); -float info_unit_get_dps (infos *info, info_unit *u); -float info_unit_get_health(infos *info, info_unit *u); -float info_unit_get_speed(infos *info, info_unit *u); -float info_unit_get_damage(infos *info, info_unit *u, int w); -float info_unit_get_charge_per_shot(infos *info, info_unit *u, int w); -float info_unit_get_damage_target(infos *info, info_unit *u, int w, - info_unit *t); -float info_unit_get_cooldown(infos *info, info_unit *u, int w); -float info_unit_get_range(infos *info, info_unit *u, int w); -float info_unit_get_maxrange(infos *info, info_unit *u); -float info_unit_get_armor(infos *info, info_unit *u, int d); -float info_unit_get_cost(infos *info, 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]); -- cgit v1.2.3-54-g00ecf