MCPcopy Create free account
hub / github.com/NetHack/NetHack / init_primary_symbols

Function init_primary_symbols

src/symbols.c:166–183  ·  view source on GitHub ↗

initialize defaults for the primary symset */

Source from the content-addressed store, hash-verified

164
165/* initialize defaults for the primary symset */
166void
167init_primary_symbols(void)
168{
169 int i;
170
171 for (i = 0; i < MAXPCHARS; i++)
172 gp.primary_syms[i + SYM_OFF_P] = defsyms[i].sym;
173 for (i = 0; i < MAXOCLASSES; i++)
174 gp.primary_syms[i + SYM_OFF_O] = def_oc_syms[i].sym;
175 for (i = 0; i < MAXMCLASSES; i++)
176 gp.primary_syms[i + SYM_OFF_M] = def_monsyms[i].sym;
177 for (i = 0; i < WARNCOUNT; i++)
178 gp.primary_syms[i + SYM_OFF_W] = def_warnsyms[i].sym;
179 for (i = 0; i < MAXOTHER; i++)
180 gp.primary_syms[i + SYM_OFF_X] = get_othersym(i, PRIMARYSET);
181
182 clear_symsetentry(PRIMARYSET, FALSE);
183}
184
185/* initialize defaults for the rogue symset */
186void

Callers 4

init_symbolsFunction · 0.85
switch_symbolsFunction · 0.85
parse_sym_lineFunction · 0.85
do_symsetFunction · 0.85

Calls 2

get_othersymFunction · 0.85
clear_symsetentryFunction · 0.85

Tested by

no test coverage detected