Combined struct llist and struct mlist into superset struct ulist.
(assa, set_leader, switch_leader, set_flagship, switch_flagship, take_move_in_mob, get_land, ask_olist, att_get_defense, get_dlist, get_ototal, get_dtotal, kill_land, att_infect_units, put_land, att_reacting_units, count_bodies, att_fight, send_reacting_units_home, take_def, ask_move_in, move_in_land, lnd_print, lnd_delete, lnd_take_casualty, lnd_takemob, lnd_sel, lnd_mar, lnd_put, lnd_sweep, contains_engineer, lnd_check_mines, lnd_list, lnd_mess, lnd_damage, lnd_easiest_target, lnd_mar_one_sector, shp_sel, shp_nav, shp_put, shp_sweep, shp_check_one_mines, shp_check_mines, shp_list, shp_mess, shp_count, shp_damage_one, shp_damage, shp_contains, most_valuable_ship, shp_easiest_target, shp_missile_interdiction, notify_coastguard, shp_view, shp_nav_one_sector, shp_missdef, nav_ship, fltp_to_list): Switch to struct ulist from either struct mlist or struct llist.
This commit is contained in:
parent
7d90028f20
commit
cd8d742392
11 changed files with 514 additions and 471 deletions
|
@ -179,16 +179,6 @@ struct lchrstr {
|
|||
|
||||
extern struct lchrstr lchr[LND_TYPE_MAX + 2];
|
||||
|
||||
struct llist {
|
||||
struct emp_qelem queue; /* list of units */
|
||||
coord x, y; /* x,y it came from */
|
||||
struct lchrstr *lcp; /* pointer to desc of land unit */
|
||||
struct lndstr land; /* struct land unit */
|
||||
int eff;
|
||||
double mobil;
|
||||
int supplied;
|
||||
};
|
||||
|
||||
enum {
|
||||
LND_AIROPS_EFF = 50 /* min. efficiency for air ops */
|
||||
};
|
||||
|
@ -205,9 +195,9 @@ extern char *lnd_path(int, struct lndstr *, char *);
|
|||
|
||||
extern double attack_val(int, struct lndstr *);
|
||||
extern double defense_val(struct lndstr *);
|
||||
extern void lnd_print(struct llist *, char *);
|
||||
extern void lnd_delete(struct llist *, char *);
|
||||
extern int lnd_take_casualty(int, struct llist *, int);
|
||||
extern void lnd_print(struct ulist *, char *);
|
||||
extern void lnd_delete(struct ulist *, char *);
|
||||
extern int lnd_take_casualty(int, struct ulist *, int);
|
||||
extern void lnd_submil(struct lndstr *, int);
|
||||
extern void lnd_takemob(struct emp_qelem *, double);
|
||||
extern int lnd_spyval(struct lndstr *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue