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

Function br_string

src/dungeon.c:2239–2253  ·  view source on GitHub ↗

Convert a branch type to a string usable by print_dungeon(). */

Source from the content-addressed store, hash-verified

2237
2238/* Convert a branch type to a string usable by print_dungeon(). */
2239staticfn const char *
2240br_string(int type)
2241{
2242 switch (type) {
2243 case BR_PORTAL:
2244 return "Portal";
2245 case BR_NO_END1:
2246 return "Connection";
2247 case BR_NO_END2:
2248 return "One way stair";
2249 case BR_STAIR:
2250 return "Stair";
2251 }
2252 return " (unknown)";
2253}
2254
2255staticfn char
2256chr_u_on_lvl(d_level *dlev)

Callers 2

print_branchFunction · 0.85
print_dungeonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected