MCPcopy Create free account

hub / github.com/NetHack/NetHack / functions

Functions8,785 in github.com/NetHack/NetHack

↓ 2,040 callersFunctionpline
src/pline.c:101
↓ 1,717 callersFunctionrn2
0 <= rn2(x) < x */
src/rnd.c:94
↓ 1,238 callersFunctionYou
src/pline.c:365
↓ 651 callersFunctionimpossible
src/pline.c:583
↓ 581 callersFunctionMonnam
src/do_name.c:1073
↓ 501 callersFunctionrnd
1 <= rnd(x) <= x */
src/rnd.c:154
↓ 457 callersFunctionGetNHApp
win/win32/NetHackW.c:254
↓ 437 callersFunctioneos
return the end of a string (pointing at '\0') */
src/hacklib.c:193
↓ 420 callersFunctionnewsym
* newsym() * * Possibly put a new glyph at the given location. */
src/display.c:916
↓ 322 callersFunctionpline_The
src/pline.c:413
↓ 317 callersFunctionisok
src/cmd.c:4325
↓ 308 callersFunctionstrncmpi
case-insensitive counted string comparison */ { aka strncasecmp }*/
src/hacklib.c:716
↓ 283 callersFunctionalloc
src/alloc.c:65
↓ 280 callersFunctionpanic
sys/vms/vmsmail.c:537
↓ 279 callersFunctionmon_nam
src/do_name.c:1041
↓ 274 callersFunctionpline_mon
src/pline.c:137
↓ 271 callersFunctionGetNHApp
outdated/sys/wince/winhack.c:153
↓ 266 callersFunctioncanseemon
src/display.c:200
↓ 262 callersFunctionexercise
src/attrib.c:488
↓ 239 callersFunctionadd_menu
* Common code point leading into the interface-specific * add_menu() to allow single-spot adjustments to the parameters, * such as those done
src/windows.c:1784
↓ 230 callersFunctionYou_feel
src/pline.c:387
↓ 228 callersFunctionYour
src/pline.c:376
↓ 209 callersFunctionfprintf
outdated/sys/wince/celib.c:761
↓ 200 callersFunctionbody_part
src/polyself.c:2142
↓ 200 callersFunctionxname
src/objnam.c:574
↓ 182 callersFunctiond
d(N,X) == NdX == dX+dX+...+dX N times; n <= d(n,x) <= (n*x) */
src/rnd.c:174
↓ 175 callersFunctionan
src/objnam.c:2144
↓ 172 callersFunctionconfig_error_add
src/cfgfiles.c:1862
↓ 172 callersFunctiont_at
src/trap.c:6501
↓ 161 callersFunctiondupstr
strdup() which uses our alloc() rather than libc's malloc(); not used when MONITOR_HEAP is enabled, but included unconditionally in case utility
src/alloc.c:237
↓ 159 callersFunctions_suffix
return a name converted to possessive */
src/hacklib.c:344
↓ 149 callersFunctionstrstri
case-insensitive substring search */
src/hacklib.c:739
↓ 145 callersFunctionverbalize
Print a message inside double-quotes. * The caller is responsible for checking deafness. * Gods can speak directly to you in spite of deafness. */
src/pline.c:475
↓ 138 callersFunctionmakeplural
Plural routine; once upon a time it may have been chiefly used for * user-defined fruits, but it is now used extensively throughout the * program.
src/objnam.c:2835
↓ 137 callersFunctionYou_hear
src/pline.c:435
↓ 137 callersFunctionmongets
src/makemon.c:2180
↓ 132 callersFunctionsgn
src/hacklib.c:646
↓ 123 callersFunctionupdate_inventory
persistent inventory window is maintained by interface code; 'update_inventory' used to be a macro for (*windowprocs.win_update_inventory) but t
src/invent.c:2781
↓ 122 callersFunctionin_rooms
src/hack.c:3497
↓ 120 callersFunctionprintf
outdated/sys/wince/celib.c:822
↓ 118 callersFunctionis_pool
src/dbridge.c:45
↓ 113 callersFunctionnomul
src/hack.c:4160
↓ 112 callersFunctionthe
* Prepend "the" if necessary; assumes str is a subject derived from xname. * Use type_is_pname() for monster names, not the(). the() is idempotent.
src/objnam.c:2170
↓ 112 callersFunctionwhich_armor
src/worn.c:1005
↓ 110 callersFunctionvisctrl
make a displayable string from a character */
src/hacklib.c:468
↓ 109 callersFunctionobj_extract_self
* Free obj from whatever list it is on in preparation for deleting it * or moving it elsewhere; obj->where will end up set to OBJ_FREE unless * it i
src/mkobj.c:2556
↓ 108 callersFunctionraw_print
sys/vms/vmsmail.c:544
↓ 108 callersFunctionraw_printf
src/pline.c:548
↓ 106 callersFunctionfclose
outdated/sys/wince/celib.c:861
↓ 106 callersFunctionselect_menu
src/windows.c:1855
↓ 101 callersFunctionlosehp
src/hack.c:4255
↓ 101 callersFunctionnhl_add_table_entry_int
src/nhlua.c:290
↓ 100 callersFunctioncmdq_add_ec
add extended command function to the command queue */
src/cmd.c:253
↓ 100 callersFunctionnhl_error
src/nhlua.c:198
↓ 100 callersFunctionsobj_at
try to find a particular type of object at designated map location */
src/invent.c:1465
↓ 98 callersFunctionYou_cant
src/pline.c:402
↓ 98 callersMethodwidth
win/Qt/qt_glyph.h:23
↓ 97 callersFunctionweight
* Calculate the weight of the given object. This will recursively follow * and calculate the weight of any containers. * * Note: It is possibl
src/mkobj.c:1887
↓ 93 callersFunctionlivelog_printf
src/pline.c:513
↓ 93 callersFunctionsurface
src/dungeon.c:1749
↓ 91 callersFunctionmakemon
* called with [x,y] = coordinates; * [0,0] means anyplace * [u.ux,u.uy] means: near player (if !gi.in_mklev) * * In case we make a
src/makemon.c:1146
↓ 89 callersFunctionhliquid
if hallucinating, return a random liquid instead of 'liquidpref' */
src/do_name.c:1492
↓ 89 callersFunctionlowc
force 'c' into lowercase */
src/hacklib.c:82
↓ 87 callersMethodheight
win/Qt/qt_glyph.h:24
↓ 87 callersFunctionplace_object
put the object at the given location */
src/mkobj.c:2304
↓ 86 callersFunctiontmp_at
src/display.c:1173
↓ 85 callersFunctionadd_menu_str
insert a non-selectable, unhighlighted line of text into a menu */
src/windows.c:1831
↓ 83 callersFunctionpmname
src/do_name.c:1302
↓ 82 callersFunctionon_level
are "lev1" and "lev2" actually the same? */
src/dungeon.c:1438
↓ 81 callersFunctionvtense
return form of the verb (input plural) for present tense 3rd person subj */
src/objnam.c:2562
↓ 79 callersFunctiondoname
src/objnam.c:1753
↓ 78 callersFunctionupstart
convert first character of a string to uppercase */
src/hacklib.c:113
↓ 76 callersFunctionTobjnam
like aobjnam, but prepend "The", not count, and use xname */
src/objnam.c:2289
↓ 75 callersFunctiondepth
returns the depth of a level, in floors below the surface (note levels in different dungeons can have the same depth) */
src/dungeon.c:1430
↓ 75 callersFunctionhighc
force 'c' into uppercase */
src/hacklib.c:75
↓ 75 callersFunctionotense
return form of the verb (input plural) if xname(otmp) were the subject */
src/objnam.c:2530
↓ 74 callersFunctiondist2
square of Euclidean distance between pair of pts */
src/hacklib.c:672
↓ 73 callersFunctionuseup
an item in inventory is going away after being used */
src/invent.c:1320
↓ 73 callersMethodwidth
outdated/win/Qt3/qt3_win.h:276
↓ 72 callersFunctionfqname
ARGSUSED*/
src/files.c:353
↓ 72 callersFunctionstrsubst
substitute a word or phrase in a string (in place); caller is responsible for ensuring that bp points to big enough buffer */
src/hacklib.c:535
↓ 71 callersMethodheight
outdated/win/Qt3/qt3_win.h:281
↓ 70 callersFunctionshieldeff
* shieldeff() * * Put magic shield pyrotechnics at the given location. This *could* be * pulled into a platform dependent routine for fancier grap
src/display.c:1109
↓ 69 callersFunctionmksobj
mksobj(): create a specific type of object; result is always non-Null */
src/mkobj.c:1178
↓ 68 callersFunctionia_addmenu
src/iactions.c:126
↓ 68 callersFunctionpanic
sys/amiga/winchar.c:333
↓ 66 callersFunctiondone
Be careful not to call panic from here! */
src/end.c:1019
↓ 66 callersFunctionglyph_at
* Utility routine for dowhatis() used to find out the glyph displayed at * the location. This isn't necessarily the same as the glyph in the levl *
src/display.c:2477
↓ 65 callersFunctionsimpleonames
"scroll" or "scrolls" */
src/objnam.c:2427
↓ 64 callersFunctionShknam
version of shkname() for beginning of sentence */
src/shknam.c:842
↓ 64 callersFunctioncurrency
src/invent.c:1545
↓ 63 callersFunctionfrom_what
src/attrib.c:902
↓ 63 callersFunctionhcolor
src/do_name.c:1460
↓ 63 callersFunctionyname
returns "[your ]xname(obj)" or "Foobar's xname(obj)" or "the xname(obj)" */
src/objnam.c:2358
↓ 62 callersFunctionshop_keeper
return the shopkeeper for rooms[rmno-2]; returns Null if there isn't one */
src/shk.c:1051
↓ 61 callersFunctioncostly_spot
called in dokick.c when we kick an object that might be in a store */
src/shk.c:5349
↓ 61 callersFunctionstop_occupation
src/allmain.c:683
↓ 60 callersFunctionadjalign
avoid possible problems with alignment overflow, and provide a centralized location for any future alignment limits */
src/attrib.c:1297
↓ 60 callersFunctionmonstunseesu
Monsters in line of sight forget hero resistance to M_SEEN_foo */
src/mondata.c:1571
↓ 60 callersFunctionobfree
called with two args on merge */
src/shk.c:1186
next →1–100 of 8,785, ranked by callers