Defines | Functions | Variables

drawing.c File Reference

#include "hack.h"
#include "tcap.h"
Include dependency graph for drawing.c:

Defines

#define C(n)
#define g_FILLER(symbol)   0

Functions

int def_char_to_objclass (char ch)
int def_char_to_monclass (char ch)
void assign_graphics (uchar *graph_chars, int glth, int maxlen, int offset)
void switch_graphics (int gr_set_flag)

Variables

uchar oc_syms [MAXOCLASSES] = DUMMY
uchar showsyms [MAXPCHARS] = DUMMY
uchar monsyms [MAXMCLASSES] = DUMMY
uchar warnsyms [WARNCOUNT] = DUMMY
const char def_oc_syms [MAXOCLASSES]
const char invisexplain [] = "remembered, unseen, creature"
const char *const objexplain []
const char *const oclass_names []
const char def_monsyms [MAXMCLASSES]
const char *const monexplain [MAXMCLASSES]
struct symdef def_warnsyms [WARNCOUNT]
struct symdef defsyms [MAXPCHARS]

Define Documentation

#define C (   n )
#define g_FILLER (   symbol )    0

Function Documentation

void assign_graphics ( uchar graph_chars,
int  glth,
int  maxlen,
int  offset 
)

References showsyms, and symdef::sym.

Referenced by graphics_opts(), parse_config_line(), and switch_graphics().

Here is the caller graph for this function:

int def_char_to_monclass ( char  ch )

References def_monsyms, and MAXMCLASSES.

Referenced by choose_classes_menu(), do_class_genocide(), parseoptions(), spo_mon_generation(), spo_object(), and use_crystal_ball().

Here is the caller graph for this function:

int def_char_to_objclass ( char  ch )
void switch_graphics ( int  gr_set_flag )

References ASCII_GRAPHICS, assign_graphics(), CURS_GRAPHICS, DEC_GRAPHICS, instance_flags::DECgraphics, FALSE, IBM_GRAPHICS, instance_flags::IBMgraphics, iflags, MAC_GRAPHICS, MAXPCHARS, SIZE, and TRUE.

Referenced by initoptions(), and parseoptions().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char def_monsyms[MAXMCLASSES]
const char def_oc_syms[MAXOCLASSES]
struct symdef def_warnsyms[WARNCOUNT]
Initial value:
 {
        {'0', "unknown creature causing you worry", C(CLR_WHITE)},      
        {'1', "unknown creature causing you concern", C(CLR_RED)},      
        {'2', "unknown creature causing you anxiety", C(CLR_RED)},      
        {'3', "unknown creature causing you disquiet", C(CLR_RED)},     
        {'4', "unknown creature causing you alarm",
                                                C(CLR_MAGENTA)},        
        {'5', "unknown creature causing you dread",
                                                C(CLR_BRIGHT_MAGENTA)}  
}

Referenced by do_look(), initoptions(), and warning_opts().

struct symdef defsyms[MAXPCHARS]
const char invisexplain[] = "remembered, unseen, creature"

Referenced by do_look().

const char* const monexplain[MAXMCLASSES]
Initial value:
 {
    0,
    "ant or other insect",      "blob",                 "cockatrice",
    "dog or other canine",      "eye or sphere",        "cat or other feline",
    "gremlin",                  "humanoid",             "imp or minor demon",
    "jelly",                    "kobold",               "leprechaun",
    "mimic",                    "nymph",                "orc",
    "piercer",                  "quadruped",            "rodent",
    "arachnid or centipede",    "trapper or lurker above", "unicorn or horse",
    "vortex",           "worm", "xan or other mythical/fantastic insect",
    "light",                    "zruty",

    "angelic being",            "bat or bird",          "centaur",
    "dragon",                   "elemental",            "fungus or mold",
    "gnome",                    "giant humanoid",       0,
    "jabberwock",               "Keystone Kop",         "lich",
    "mummy",                    "naga",                 "ogre",
    "pudding or ooze",          "quantum mechanic",     "rust monster, disenchanter or disintegrator",
    "snake",                    "troll",                "umber hulk",
    "vampire",                  "wraith",               "xorn",
    "apelike creature",         "zombie",

    "human or elf",             "ghost",                "golem",
    "major demon",              "sea monster",          "lizard",
    "long worm tail",           "mimic"
}

Referenced by choose_classes_menu(), do_class_genocide(), and do_look().

uchar monsyms[MAXMCLASSES] = DUMMY
const char* const objexplain[]
Initial value:
 {      
        0,
        "strange object",
        "weapon",
        "suit or piece of armor",
        "ring",
        "amulet",
        "useful item (pick-axe, key, lamp...)",
        "piece of food",
        "potion",
        "scroll",
        "spellbook",
        "wand",
        "pile of coins",
        "gem or rock",
        "boulder or statue",
        "iron ball",
        "iron chain",
        "splash of venom"
}

Referenced by choose_classes_menu(), and do_look().

uchar oc_syms[MAXOCLASSES] = DUMMY
const char* const oclass_names[]
Initial value:
 {
        0,
        "illegal objects",
        "weapons",
        "armor",
        "rings",
        "amulets",
        "tools",
        "food",
        "potions",
        "scrolls",
        "spellbooks",
        "wands",
        "coins",
        "rocks",
        "large stones",
        "iron balls",
        "chains",
        "venoms"
}

Referenced by glibr().

uchar showsyms[MAXPCHARS] = DUMMY
uchar warnsyms[WARNCOUNT] = DUMMY