+/* Whether and why a ship is stuck in a sector */
+enum shp_stuck {
+ SHP_STUCK_NOT, /* not stuck */
+ SHP_STUCK_CONSTRUCTION, /* sector not efficient enough */
+ SHP_STUCK_CANAL, /* ship lacks M_CANAL */
+ SHP_STUCK_IMPASSABLE /* sector type not navigable */
+};
+
+extern int m_armor(struct mchrstr *, int);
+extern int m_speed(struct mchrstr *, int);
+extern int m_visib(struct mchrstr *, int);
+extern int m_frnge(struct mchrstr *, int);
+extern int m_glim(struct mchrstr *, int);
+extern int shp_armor(struct shpstr *);
+extern int shp_speed(struct shpstr *);
+extern int shp_visib(struct shpstr *);
+extern int shp_frnge(struct shpstr *);
+extern int shp_glim(struct shpstr *);
+
+extern int shp_nplane(struct shpstr *, int *, int *, int *);
+extern int shp_nland(struct shpstr *);
+
+extern int shp_dchrg(struct shpstr *);
+extern int shp_fire(struct shpstr *);
+extern int shp_torp(struct shpstr *, int);
+extern double shp_fire_range(struct shpstr *);
+extern int shp_usable_guns(struct shpstr *);
+extern double shp_torp_hitchance(struct shpstr *, int);
+
+/* src/lib/subs/shpsub.c */
+extern int shp_may_nav(struct shpstr *, struct shpstr *, char *);
+extern void shp_sel(struct nstr_item *, struct emp_qelem *);
+extern struct ulist *shp_insque(struct shpstr *, struct emp_qelem *);
+extern void shp_nav_stay_behind(struct emp_qelem *, natid);
+extern void shp_nav_put(struct emp_qelem *, natid);
+extern int shp_sweep(struct emp_qelem *, int, int, natid);
+extern enum shp_stuck shp_check_nav(struct shpstr *, struct sctstr *);
+extern int sect_has_dock(struct sctstr *);
+extern int shp_hardtarget(struct shpstr *);
+extern int shp_nav_dir(struct emp_qelem *, int, natid);
+extern int shp_nav_gauntlet(struct emp_qelem *, int, natid);
+extern int shp_missile_defense(coord, coord, natid, int);
+extern void shp_missdef(struct shpstr *, natid);
+extern double shp_mobcost(struct shpstr *);
+extern void shp_set_tech(struct shpstr *, int);
+