Lines Matching refs:offset

67 	register int offset;
80 if ((offset = (glyph - GLYPH_WARNING_OFF)) >= 0) { /* a warning flash */
81 ch = warnsyms[offset];
87 warn_color(offset);
88 } else if ((offset = (glyph - GLYPH_SWALLOW_OFF)) >= 0) { /* swallow */
90 ch = (uchar) showsyms[S_sw_tl + (offset & 0x7)];
96 mon_color(offset >> 3);
97 } else if ((offset = (glyph - GLYPH_ZAP_OFF)) >= 0) { /* zap beam */
99 ch = showsyms[S_vbeam + (offset & 0x3)];
105 zap_color((offset >> 2));
106 } else if ((offset = (glyph - GLYPH_EXPLODE_OFF)) >= 0) { /* explosion */
107 ch = showsyms[(offset % MAXEXPCHARS) + S_explode1];
108 explode_color(offset / MAXEXPCHARS);
109 } else if ((offset = (glyph - GLYPH_CMAP_OFF)) >= 0) { /* cmap */
110 ch = showsyms[offset];
113 if (offset >= S_vwall && offset <= S_hcdoor)
115 else if (offset >= S_arrow_trap && offset <= S_polymorph_trap)
117 else if (offset == S_corr || offset == S_litcorr)
119 else if (offset >= S_room && offset <= S_water)
129 offset == S_litcorr && ch == showsyms[S_corr])
133 cmap_color(offset);
134 } else if ((offset = (glyph - GLYPH_OBJ_OFF)) >= 0) { /* object */
135 if (offset == BOULDER && iflags.bouldersym) ch = iflags.bouldersym;
136 else ch = oc_syms[(int)objects[offset].oc_class];
139 switch(objects[offset].oc_class) {
146 obj_color(offset);
147 } else if ((offset = (glyph - GLYPH_RIDDEN_OFF)) >= 0) { /* mon ridden */
148 ch = monsyms[(int)mons[offset].mlet];
157 mon_color(offset);
159 } else if ((offset = (glyph - GLYPH_BODY_OFF)) >= 0) { /* a corpse */
166 mon_color(offset);
168 } else if ((offset = (glyph - GLYPH_DETECT_OFF)) >= 0) { /* mon detect */
169 ch = monsyms[(int)mons[offset].mlet];
175 mon_color(offset);
179 } else if ((offset = (glyph - GLYPH_INVIS_OFF)) >= 0) { /* invisible */
186 invis_color(offset);
188 } else if ((offset = (glyph - GLYPH_PET_OFF)) >= 0) { /* a pet */
189 ch = monsyms[(int)mons[offset].mlet];
195 pet_color(offset);