extern void pln_dropoff(struct emp_qelem *, struct ichrstr *,
coord, coord, void *, int);
extern void pln_mine(struct emp_qelem *list, struct sctstr *sectp);
-extern int pln_wanted(struct plnstr *, int, int);
+extern int pln_capable(struct plnstr *, int, int);
extern void pln_sel(struct nstr_item *, struct emp_qelem *,
struct sctstr *, int, int, int, int);
extern int pln_arm(struct emp_qelem *, int, char, struct ichrstr *,
}
/*
- * Is a plane of PP's type wanted?
- * A plane type is wanted unless
- * - it lacks all of the P_F, P_ESC in wantflags, or
- * - it lacks all of the P_E, P_L, P_K in wantflags, or
- * - it lacks any of the other flags in wantflags, or
- * - it has any of the flags in nowantflags.
+ * Has PP's type capabilities satisfying WANTFLAGS and NOWANTFLAGS?
+ * A plane type is capable unless
+ * - it lacks all of the P_F, P_ESC in WANTFLAGS, or
+ * - it lacks all of the P_E, P_L, P_K in WANTFLAGS, or
+ * - it lacks any of the other capabilities in WANTFLAGS, or
+ * - it has any of the capabilities in NOWANTFLAGS.
*/
int
-pln_wanted(struct plnstr *pp, int wantflags, int nowantflags)
+pln_capable(struct plnstr *pp, int wantflags, int nowantflags)
{
int flags = plchr[(int)pp->pln_type].pl_flags;
range += ap_to_target;
range *= rangemult;
pcp = &plchr[(int)plane.pln_type];
- if (!pln_wanted(&plane, wantflags, nowantflags))
+ if (!pln_capable(&plane, wantflags, nowantflags))
continue;
if (plane.pln_range < range) {
pr("%s out of range (%d:%d)\n",