(nxtitemp, trade_getitem, trade_desc, trade_check_item_ok, nxtitem,
oprange, show_mission, nameofitem, build_mission_list_type, unit_map, xdvisible, trdswitchown, ontradingblock, trad, check_trade, unit_type_name, start_stop_unit, scut, scra, mission, multifire, perform_mission, fuel, NSC_GENITEM): Replace struct genitem with struct empobj. Remove genitem.h and create a new file empobj.h. Replace multiple instances of unions of ef_type structures with one standard union empobj_storage which is a superset of the individual instances.
This commit is contained in:
parent
9e75e5e009
commit
79ee88f7c6
29 changed files with 191 additions and 270 deletions
|
@ -488,14 +488,14 @@ extern int num_shipsatxy(coord, coord, int, int);
|
|||
extern int islist(char *);
|
||||
/* src/lib/subs/mission.c */
|
||||
extern char *mission_name(short);
|
||||
extern char *nameofitem(struct genitem *, int);
|
||||
extern char *nameofitem(struct empobj *, int);
|
||||
extern int collateral_damage(coord, coord, int, struct emp_qelem *);
|
||||
extern int mission_pln_equip(struct plist *, struct ichrstr *, int, char);
|
||||
extern int ground_interdict(coord, coord, natid, char *);
|
||||
extern int unit_interdict(coord, coord, natid, char *, int, int);
|
||||
extern int off_support(coord, coord, natid, natid);
|
||||
extern int def_support(coord, coord, natid, natid);
|
||||
extern int oprange(struct genitem *, int, int *);
|
||||
extern int oprange(struct empobj *, int, int *);
|
||||
extern int cando(int, int);
|
||||
extern void show_mission(int, struct nstr_item *);
|
||||
extern int air_defense(coord, coord, natid, struct emp_qelem *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue