Lines Matching refs:glyph

21  * The display system deals with an abstraction called a glyph.  Anything
22 * that could possibly be displayed has a unique glyph identifier.
28 * associated glyph. This is the hero's _memory_ of what he or she has
101 * glyph - What the hero remembers. This will never be a monster.
172 int glyph = back_to_glyph(x,y); /* assumes hero can see x,y */
181 if (lev->typ == ROOM && glyph == cmap_to_glyph(S_room))
182 glyph = cmap_to_glyph(S_stone);
183 else if (lev->typ == CORR && glyph == cmap_to_glyph(S_litcorr))
184 glyph = cmap_to_glyph(S_corr);
187 lev->glyph = glyph;
188 if (show) show_glyph(x,y, glyph);
195 * map_glyph(x,y,glyph,show)
217 register int glyph = back_to_glyph(x,y);
220 levl[x][y].glyph = glyph;
221 if (show) show_glyph(x,y, glyph);
236 register int glyph = trap_to_glyph(trap);
239 levl[x][y].glyph = glyph;
240 if (show) show_glyph(x, y, glyph);
255 register int glyph = obj_to_glyph(obj);
258 levl[x][y].glyph = glyph;
259 if (show) show_glyph(x, y, glyph);
277 levl[x][y].glyph = GLYPH_INVISIBLE;
307 if (!lev->waslit && lev->glyph == cmap_to_glyph(S_room) &&
309 lev->glyph = cmap_to_glyph(S_stone);
311 levl[x][y].glyph = cmap_to_glyph(S_stone); /* default val */
390 * be (x,y,glyph) instead of just (x,y).
395 register int glyph = cmap_to_glyph(mon->mappearance);
396 levl[x][y].glyph = glyph;
397 if (!sensed) show_glyph(x,y, glyph);
461 int glyph;
468 glyph = warning_to_glyph(wl);
470 glyph = mon_to_glyph(mon);
475 show_glyph(x, y, glyph);
501 if (glyph_is_invisible(levl[x][y].glyph) && m_at(x,y)) return;
549 * embedded in the wall, the glyph will probably already
559 if (lev->glyph == objnum_to_glyph(BOULDER)) {
563 lev->glyph = lev->waslit ? cmap_to_glyph(S_room) :
565 show_glyph(x,y,lev->glyph);
567 } else if ((lev->glyph >= cmap_to_glyph(S_stone) &&
568 lev->glyph < cmap_to_glyph(S_room)) ||
569 glyph_is_invisible(levl[x][y].glyph)) {
570 lev->glyph = lev->waslit ? cmap_to_glyph(S_room) :
572 show_glyph(x,y,lev->glyph);
580 lev->glyph == cmap_to_glyph(S_litcorr) && !lev->waslit)
581 show_glyph(x, y, lev->glyph = cmap_to_glyph(S_corr));
592 * the wrong glyph.
610 lev->glyph == cmap_to_glyph(S_room) && !lev->waslit)
611 show_glyph(x,y, lev->glyph = cmap_to_glyph(S_stone));
613 lev->glyph == cmap_to_glyph(S_litcorr) && !lev->waslit)
614 show_glyph(x,y, lev->glyph = cmap_to_glyph(S_corr));
626 * Possibly put a new glyph at the given location.
700 /* also gets rid of any invisibility glyph */
705 else if (glyph_is_invisible(levl[x][y].glyph))
725 /* This also gets rid of any invisibility glyph */
735 * and lit (glyph is a lit room or lit corridor) then it was either:
756 if (lev->glyph == cmap_to_glyph(S_litcorr) && lev->typ == CORR)
757 show_glyph(x, y, lev->glyph = cmap_to_glyph(S_corr));
758 else if (lev->glyph == cmap_to_glyph(S_room) && lev->typ == ROOM)
759 show_glyph(x, y, lev->glyph = cmap_to_glyph(S_stone));
764 show_glyph(x, y, lev->glyph);
787 flush_screen(1); /* make sure the glyph shows up */
803 * (DISP_BEAM, glyph) open, initialize glyph
804 * (DISP_FLASH, glyph) open, initialize glyph
805 * (DISP_ALWAYS, glyph) open, initialize glyph
806 * (DISP_CHANGE, glyph) change glyph
811 * (x, y) display the glyph at the location
813 * DISP_BEAM - Display the given glyph at each location, but do not erase
815 * DISP_FLASH - Display the given glyph at each location, but erase the
816 * previous location's glyph.
824 int glyph; /* glyph to use when printing */
847 tglyph->glyph = y;
867 tglyph->glyph = y;
905 show_glyph(x, y, tglyph->glyph); /* show it */
1124 int glyph;
1127 glyph = glyph_at(trap->tx, trap->ty);
1128 if (glyph_is_trap(glyph))
1176 * + clears the glyph buffer
1184 if (lev->glyph != cmap_to_glyph(S_stone))
1185 show_glyph(x,y,lev->glyph);
1203 int glyph;
1211 * Store the glyph in the 3rd screen for later flushing.
1214 show_glyph(x,y,glyph)
1215 int x, y, glyph;
1232 if (glyph >= GLYPH_WARNING_OFF) { /* a warning */
1233 text = "warning"; offset = glyph - GLYPH_WARNING_OFF;
1234 } else if (glyph >= GLYPH_SWALLOW_OFF) { /* swallow border */
1235 text = "swallow border"; offset = glyph - GLYPH_SWALLOW_OFF;
1236 } else if (glyph >= GLYPH_ZAP_OFF) { /* zap beam */
1237 text = "zap beam"; offset = glyph - GLYPH_ZAP_OFF;
1238 } else if (glyph >= GLYPH_EXPLODE_OFF) { /* explosion */
1239 text = "explosion"; offset = glyph - GLYPH_EXPLODE_OFF;
1240 } else if (glyph >= GLYPH_CMAP_OFF) { /* cmap */
1241 text = "cmap_index"; offset = glyph - GLYPH_CMAP_OFF;
1242 } else if (glyph >= GLYPH_OBJ_OFF) { /* object */
1243 text = "object"; offset = glyph - GLYPH_OBJ_OFF;
1244 } else if (glyph >= GLYPH_RIDDEN_OFF) { /* ridden mon */
1245 text = "ridden mon"; offset = glyph - GLYPH_RIDDEN_OFF;
1246 } else if (glyph >= GLYPH_BODY_OFF) { /* a corpse */
1247 text = "corpse"; offset = glyph - GLYPH_BODY_OFF;
1248 } else if (glyph >= GLYPH_DETECT_OFF) { /* detected mon */
1249 text = "detected mon"; offset = glyph - GLYPH_DETECT_OFF;
1250 } else if (glyph >= GLYPH_INVIS_OFF) { /* invisible mon */
1251 text = "invisible mon"; offset = glyph - GLYPH_INVIS_OFF;
1252 } else if (glyph >= GLYPH_PET_OFF) { /* a pet */
1253 text = "pet"; offset = glyph - GLYPH_PET_OFF;
1255 text = "monster"; offset = glyph;
1258 impossible("show_glyph: bad pos %d %d with glyph %d [%s %d].",
1259 x, y, glyph, text, offset);
1263 if (glyph >= MAX_GLYPH) {
1264 impossible("show_glyph: bad glyph %d [max %d] at (%d,%d).",
1265 glyph, MAX_GLYPH, x, y);
1269 if (gbuf[y][x].glyph != glyph) {
1270 gbuf[y][x].glyph = glyph;
1279 * Reset the changed glyph borders so that none of the 3rd screen has
1322 if (gbuf[y][x].glyph != cmap_to_glyph(S_stone))
1323 print_glyph(WIN_MAP,x,y,gbuf[y][x].glyph);
1359 print_glyph(WIN_MAP,x,y,gptr->glyph);
1377 * a glyph of a background.
1481 * Convert a monster number and a swallow location into the correct glyph.
1502 * Change the given zap direction and beam type into a glyph. Each beam
1527 * Utility routine for dowhatis() used to find out the glyph displayed at
1528 * the location. This isn't necessarily the same as the glyph in the levl
1537 return gbuf[y][x].glyph;