Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ functions
Functions
8,785 in github.com/NetHack/NetHack
⨍
Functions
8,785
◇
Types & classes
2,379
↓ 19 callers
Function
curses_set_wid_colors
win/curses/curswins.c:177
↓ 19 callers
Function
dunlev
return the level number for lev in *this* dungeon */
src/dungeon.c:1324
↓ 19 callers
Function
locomotion
src/mondata.c:1379
↓ 19 callers
Function
more_experienced
src/exper.c:168
↓ 19 callers
Function
ok_role
is rolenum compatible with any racenum/gendnum/alignnum constraints? */
src/role.c:970
↓ 19 callers
Function
rank_of
src/botl.c:331
↓ 19 callers
Function
uncurse
src/mkobj.c:1821
↓ 19 callers
Function
useupf
* uses up an object that's on the floor, charging for it as necessary */
src/invent.c:4762
↓ 18 callers
Function
E_phrase
* Generates capitalized entity name, makes 2nd -> 3rd person conversion on * verb, where necessary. */
src/dbridge.c:360
↓ 18 callers
Function
SelectMenuItem
outdated/sys/wince/mhmenu.c:1417
↓ 18 callers
Method
Widget
win/Qt/qt_map.cpp:629
↓ 18 callers
Function
add_to_container
* Add obj to container, make sure obj is "free". Returns (merged) obj. * The input obj may be deleted in the process. * * Caveat: this does not u
src/mkobj.c:2675
↓ 18 callers
Function
chdir
sys/amiga/amidos.c:452
↓ 18 callers
Function
christen_monst
historical note: this returns a monster pointer because it used to allocate a new bigger block of memory to hold the monster and its name */
src/do_name.c:132
↓ 18 callers
Function
extract_nobj
Extract the given object from the chain, following nobj chain. */
src/mkobj.c:2595
↓ 18 callers
Function
findgold
* Find the first (and hopefully only) gold object in a chain. * Used when leprechaun (or you as leprechaun) looks for * someone else's gold. Return
src/steal.c:44
↓ 18 callers
Function
ftell
outdated/sys/wince/celib.c:901
↓ 18 callers
Function
get_table_int
src/nhlua.c:1013
↓ 18 callers
Function
getpos
have the player use movement keystrokes to position the cursor at a particular map location, then use one of [.,:;] to pick the spot */
src/getpos.c:770
↓ 18 callers
Function
hideunder
monster/hero tries to hide under something at the current location; if used by monster creation, should only happen during level creation, other
src/mon.c:4725
↓ 18 callers
Function
key2txt
returns the text for a one-byte encoding; * must be shorter than a tab for proper formatting */
src/cmd.c:3224
↓ 18 callers
Function
msmsg
outdated/sys/mac/mttymain.c:497
↓ 18 callers
Function
mswin_get_color
outdated/sys/wince/mhcolor.c:167
↓ 18 callers
Function
oname
src/do_name.c:371
↓ 18 callers
Function
randalign
src/role.c:915
↓ 18 callers
Function
randrace
src/role.c:786
↓ 18 callers
Function
rloc_to
src/teleport.c:1770
↓ 18 callers
Function
set_corpsenm
* Several areas of the code made direct reassignments * to obj->corpsenm. Because some special handling is * required in certain cases, place that
src/mkobj.c:1317
↓ 18 callers
Function
setuwep
Functions that place a given item in a slot ***/ Proper usage includes: * 1. Initializing the slot during character generation or a * restore.
src/wield.c:99
↓ 18 callers
Function
somexyspace
like somexy(), but returns an accessible location */
src/mkroom.c:743
↓ 18 callers
Function
strNsubst
substitute the Nth occurrence of a substring within a string (in place); if N is 0, substitute all occurrences; returns the number of substitutions
src/hacklib.c:556
↓ 18 callers
Function
vesa_WritePixel
sys/msdos/vidvesa.c:452
↓ 18 callers
Function
weapon_type
src/weapon.c:1516
↓ 17 callers
Method
Empty
outdated/win/Qt3/qt3_win.cpp:795
↓ 17 callers
Function
SelectMenuItem
-----------------------------------------------------------------------------*/
win/win32/mhmenu.c:1618
↓ 17 callers
Function
bare_artifactname
artifact's name without any object type or known/dknown/&c feedback */
src/objnam.c:2501
↓ 17 callers
Function
begin_burn
* Start a burn timeout on the given object. If not "already lit" then * create a light source for the vision system. There had better not * be a bu
src/timeout.c:1711
↓ 17 callers
Function
bind_key
src/cmd.c:2661
↓ 17 callers
Function
blessorcurse
src/mkobj.c:1840
↓ 17 callers
Function
block_point
* block_point() * * Make the location opaque to light. */
src/vision.c:864
↓ 17 callers
Function
delete_savefile
delete savefile */
src/files.c:1258
↓ 17 callers
Function
dprintf
outdated/sys/mac/dprintf.c:17
↓ 17 callers
Function
explode
Note: I had to choose one of three possible kinds of "type" when writing * this function: a wand type (like in zap.c), an adtyp, or an object type.
src/explode.c:198
↓ 17 callers
Function
float_vs_flight
Levitation overrides Flying; set or clear BFlying|I_SPECIAL */
src/polyself.c:130
↓ 17 callers
Function
ignite_items
Ignite ignitable items (limited to light sources) in the given object chain, due to some external source of fire. The object chain should be so
src/trap.c:7160
↓ 17 callers
Function
l_obj_check
src/nhlobj.c:34
↓ 17 callers
Function
make_sick
Sick is overloaded with both fatal illness and food poisoning (via u.usick_type bit mask), but delayed killer can only support one or the other
src/potion.c:136
↓ 17 callers
Function
makesingular
* Singularize a string the user typed in; this helps reduce the complexity * of readobjnam, and is also used in pager.c to singularize the string *
src/objnam.c:3036
↓ 17 callers
Function
migrate_to_level
src/dog.c:886
↓ 17 callers
Function
mon_adjust_speed
src/worn.c:487
↓ 17 callers
Function
monnear
Is the square close enough for the monster to move or attack into? */
src/mon.c:2475
↓ 17 callers
Function
pick_role
pick a random role subject to any racenum/gendnum/alignnum constraints */ If pickhow == PICK_RIGID a role is returned only if there is */ a single po
src/role.c:1014
↓ 17 callers
Function
precheck
win/share/tilemap.c:1478
↓ 17 callers
Function
qsort
(base, count, size, compare)
sys/vms/oldcrtl.c:174
↓ 17 callers
Function
randgend
src/role.c:852
↓ 17 callers
Function
rndmonnam
return a random monster name, for hallucination */
src/do_name.c:1388
↓ 17 callers
Function
root_plselection_prompt
src/role.c:1430
↓ 17 callers
Function
selection_getbounds
get boundary rect of selection sel into b */
src/selvar.c:76
↓ 17 callers
Function
set_levelfile_name
Construct a file name for a level-type file, which is of the form * something.level (with any old level stripped off). * This assumes there is space
src/files.c:605
↓ 17 callers
Function
set_occupation
If a time is given, use it to timeout this function, otherwise the * function times out by its own means. */
src/cmd.c:205
↓ 17 callers
Function
setmangry
Called whenever the player attacks mtmp; also called in other situations where mtmp gets annoyed at the player. Handles mtmp getting annoyed at the
src/mon.c:4264
↓ 17 callers
Function
singular
* Used if only one of a collection of objects is named (e.g. in eat.c). */
src/objnam.c:2090
↓ 17 callers
Function
start_timer
* Start a timer. Return TRUE if successful. */
src/timeout.c:2246
↓ 17 callers
Function
str2race
src/role.c:812
↓ 17 callers
Function
string_for_env_opt
src/options.c:6682
↓ 17 callers
Function
u_gname
returns the name of the hero's deity */
src/pray.c:2523
↓ 17 callers
Function
u_on_newpos
src/dungeon.c:1567
↓ 17 callers
Function
unpunish
remove the ball and chain */
src/read.c:3065
↓ 17 callers
Function
wake_nearby
Wake up nearby monsters without angering them. */
src/mon.c:4366
↓ 17 callers
Function
xcrypt
trivial text encryption routine (see makedefs) */
src/hacklib.c:399
↓ 16 callers
Function
YMonnam
y_monnam() for start of sentence */
src/do_name.c:1132
↓ 16 callers
Function
accessible
src/monmove.c:2187
↓ 16 callers
Function
addtobill
src/shk.c:3489
↓ 16 callers
Function
ansimpleoname
"a scroll" or "scrolls"; "a silver bell" or "the Bell of Opening" */
src/objnam.c:2445
↓ 16 callers
Function
bless
src/mkobj.c:1744
↓ 16 callers
Function
cmdbind_get
src/cmd.c:2109
↓ 16 callers
Function
colortable_to_bgr_int32
GDI typically represents color as BGR (Blue-Green-Red) in memory */
sys/windows/consoletty.c:361
↓ 16 callers
Function
consume_obj_charge
use one charge from an item and possibly incur shop debt for it */
src/invent.c:1336
↓ 16 callers
Function
cursed
Check if something worn is cursed _and_ unremovable. */
src/do_wear.c:1892
↓ 16 callers
Function
flash_str
Fills buf with the appropriate string for this ray. * In the hallucination case, insert "blast of <silly thing>". * Assumes that the caller will spe
src/zap.c:6428
↓ 16 callers
Function
formatkiller
"killed by",&c ["an"] 'svk.killer.name' */
src/topten.c:89
↓ 16 callers
Function
get_table_xy_or_coord
Get x and y values from a table (which the caller has already checked for * the existence of), handling both a table with x= and y= specified and a
src/sp_lev.c:3187
↓ 16 callers
Function
getnow
src/calendar.c:31
↓ 16 callers
Function
golemeffects
src/mon.c:5679
↓ 16 callers
Function
menu_class_present
check valid_menu_classes[] for an entry; also used by askchain() */
src/pickup.c:468
↓ 16 callers
Function
mkzoo
src/mkroom.c:243
↓ 16 callers
Function
mswin_putstr_ex
win/win32/mswproc.c:1011
↓ 16 callers
Function
nextobuf
src/objnam.c:141
↓ 16 callers
Function
noit_mon_nam
print the name as if mon_nam() (y_monnam() if tame) was called, but assume that the player can always see the monster--used for probing and for
src/do_name.c:1053
↓ 16 callers
Function
onscary
src/monmove.c:240
↓ 16 callers
Function
paranoid_query
for paranoid_confirm:quit,die,attack,&c prompting; allows yes or n|no; result is True for yes; n|no and ESC yield False */
src/cmd.c:5654
↓ 16 callers
Function
putsyms
win/tty/topl.c:346
↓ 16 callers
Method
setCompareMode
set comp_mode to one of NoCompare or {Bigger,Smaller,Neither}IsBetter
win/Qt/qt_icon.cpp:190
↓ 16 callers
Function
setuhpmax
update u.uhpmax or u.mhmax and values of other things that depend upon whichever of them is relevant */
src/attrib.c:1156
↓ 16 callers
Function
setuswapwep
src/wield.c:284
↓ 16 callers
Function
tomb_text
sys/amiga/amirip.c:285
↓ 16 callers
Function
u_locomotion
return an appropriate locomotion word for hero */
src/hack.c:1816
↓ 16 callers
Function
useupall
src/invent.c:1308
↓ 16 callers
Function
vpline
src/pline.c:152
↓ 16 callers
Function
xtp2i
win/X11/winmisc.c:133
← previous
next →
401–500 of 8,785, ranked by callers