Angband
Functions
ui-map.c File Reference

Writing level map info to the screen. More...

#include "angband.h"
#include "cave.h"
#include "grafmode.h"
#include "init.h"
#include "mon-util.h"
#include "monster.h"
#include "obj-util.h"
#include "player-timed.h"
#include "trap.h"
#include "ui-input.h"
#include "ui-map.h"
#include "ui-obj.h"
#include "ui-output.h"
#include "ui-prefs.h"
#include "ui-term.h"

Functions

static void hallucinatory_monster (int *a, wchar_t *c)
static void hallucinatory_object (int *a, wchar_t *c)
static void get_trap_graphics (struct chunk *c, struct trap *trap, int *a, wchar_t *ch)
 Get the graphics of a listed trap.
static void grid_get_attr (grid_data *g, int *a)
 Apply text lighting effects.
void grid_data_as_text (grid_data *g, int *ap, wchar_t *cp, int *tap, wchar_t *tcp)
static void move_cursor_relative_map (int y, int x)
void move_cursor_relative (int y, int x)
static void print_rel_map (wchar_t c, byte a, int y, int x)
void print_rel (wchar_t c, byte a, int y, int x)
static void prt_map_aux (void)
void prt_map (void)
void display_map (int *cy, int *cx)
void do_cmd_view_map (void)

Detailed Description

Writing level map info to the screen.

Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

void display_map ( int cy,
int cx 
)
void do_cmd_view_map ( void  )
static void get_trap_graphics ( struct chunk c,
struct trap trap,
int a,
wchar_t *  ch 
)
static

Get the graphics of a listed trap.

We should probably have better handling of stacked traps, but that can wait until we do, in fact, have stacked traps under normal conditions.

References trap::flags, trap::kind, trap_kind::tidx, trap_x_attr, trap_x_char, and trf_has.

Referenced by grid_data_as_text().

void grid_data_as_text ( grid_data g,
int ap,
wchar_t *  cp,
int tap,
wchar_t *  tcp 
)
static void grid_get_attr ( grid_data g,
int a 
)
static
static void hallucinatory_monster ( int a,
wchar_t *  c 
)
static
static void hallucinatory_object ( int a,
wchar_t *  c 
)
static
void move_cursor_relative ( int  y,
int  x 
)
static void move_cursor_relative_map ( int  y,
int  x 
)
static
void print_rel ( wchar_t  c,
byte  a,
int  y,
int  x 
)
static void print_rel_map ( wchar_t  c,
byte  a,
int  y,
int  x 
)
static
void prt_map ( void  )
static void prt_map_aux ( void  )
static