Lines Matching refs:obj

69 static void use_camera(struct obj *);
70 static int in_ice_box(struct obj *);
71 static int ck_ice_box(struct obj *);
72 static int out_ice_box(struct obj *);
73 static void use_ice_box(struct obj *);
75 static void use_whistle(struct obj *);
76 static void use_magic_whistle(struct obj *);
78 static int use_pick_axe(struct obj *);
83 struct obj *obj; in doapply() local
86 obj = getobj("(", "use or apply"); in doapply()
87 if (!obj) in doapply()
90 switch (obj->otyp) { in doapply()
92 use_camera(obj); in doapply()
95 use_ice_box(obj); in doapply()
98 res = use_pick_axe(obj); in doapply()
103 use_magic_whistle(obj); in doapply()
108 use_whistle(obj); in doapply()
118 if (obj != uwep) in doapply()
134 use_camera(struct obj *obj __unused) in use_camera()
181 struct obj *current_ice_box;/* a local variable of use_ice_box, to be
184 in_ice_box(struct obj *obj) in in_ice_box() argument
186 if (obj == current_ice_box || in in_ice_box()
187 (Punished && (obj == uball || obj == uchain))) { in in_ice_box()
191 if (obj->owornmask & (W_ARMOR | W_RING)) { in in_ice_box()
195 if (obj->owt + current_ice_box->owt > 70) { in in_ice_box()
199 if (obj == uwep) { in in_ice_box()
204 setuwep((struct obj *) 0); in in_ice_box()
206 current_ice_box->owt += obj->owt; in in_ice_box()
207 freeinv(obj); in in_ice_box()
208 obj->o_cnt_id = current_ice_box->o_id; in in_ice_box()
209 obj->nobj = fcobj; in in_ice_box()
210 fcobj = obj; in in_ice_box()
211 obj->age = moves - obj->age; /* actual age */ in in_ice_box()
216 ck_ice_box(struct obj *obj) in ck_ice_box() argument
218 return (obj->o_cnt_id == current_ice_box->o_id); in ck_ice_box()
222 out_ice_box(struct obj *obj) in out_ice_box() argument
224 struct obj *otmp; in out_ice_box()
225 if (obj == fcobj) in out_ice_box()
228 for (otmp = fcobj; otmp->nobj != obj; otmp = otmp->nobj) in out_ice_box()
231 otmp->nobj = obj->nobj; in out_ice_box()
233 current_ice_box->owt -= obj->owt; in out_ice_box()
234 obj->age = moves - obj->age; /* simulated point of time */ in out_ice_box()
235 (void) addinv(obj); in out_ice_box()
240 use_ice_box(struct obj *obj) in use_ice_box() argument
243 struct obj *otmp; in use_ice_box()
244 current_ice_box = obj; /* for use by in/out_ice_box */ in use_ice_box()
246 if (otmp->o_cnt_id == obj->o_id) in use_ice_box()
293 use_whistle(struct obj *obj __unused) in use_whistle()
310 use_magic_whistle(struct obj *obj __unused) in use_magic_whistle()
364 struct obj *obj; in dig() local
367 if ((obj = sobj_at(ENORMOUS_ROCK, dpx, dpy)) != NULL) { in dig()
368 fracture_rock(obj); in dig()
432 use_pick_axe(struct obj *obj) in use_pick_axe() argument
440 if (obj != uwep) { in use_pick_axe()
447 pline("You now wield %s.", doname(obj)); in use_pick_axe()
448 setuwep(obj); in use_pick_axe()
483 aobjnam(obj, "clang")); in use_pick_axe()
488 aobjnam(obj, NULL)); in use_pick_axe()