# NetHack 3.6.0 source code

Source code

1.0 - 1.3d - 1.4f - 2.2a - 2.3e - 3.0.0 - 3.1.0 - 3.2.0 - 3.3.0 - 3.4.0 - 3.4.3 - 3.6.0 - 3.6.1 - 3.6.2

Statistics - Source diving - Annotations

Source code is the code of a program that is not yet compiled into an OS-usable binary. NetHack is programmed in C, a portable language that compiles on many systems. The NetHack programmers, the DevTeam, are a dedicated but conservative bunch, releasing new versions very infrequently. The latest NetHack sources are available at (http://www.nethack.org/v360/download-src.html). Earlier versions are available at (http://www.nethack.org/common/index.html).
NetHackWiki provides an annotated version of the NetHack 3.6.0 source code. The original source code is distributed under the NetHack General Public License; our annotations use the GNU Free Documentation License. Read Project:Copyrights for detailed copyright information.
Here at NetHackWiki, anyone, including you, can annotate the source code. You can get an overview of the sources by reading the Beginner's Guide To NetHack Sources or just dive in!
An indicator like "(20% annotated)" indicates that someone has documented about 20% of the code for that file. All others are not yet annotated. (Please help!)
Note:
As of now, automatic function name links redirect to 3.4.3 source functions. A fix in in progress for automatic function citations with Source:Ref to link to 3.6.0 functions. Dizzylizzy (talk) 22:24, 3 January 2016 (UTC)

Contents

1 nethack-3.6.0/include
2 nethack-3.6.0/dat
3 nethack-3.6.0/src
4 Other files
5 SLASH'EM

nethack-3.6.0/include
align.h
amiconf.h
artifact.h
artilist.h
attrib.h
beconf.h
bitmfile.h
botl.h
color.h
config.h
config1.h
context.h
coord.h
decl.h
def_os2.h
dgn_file.h
display.h
dlb.h
dungeon.h
engrave.h
extern.h
flag.h
func_tab.h
gem_rsc.h
global.h
hack.h
lev.h
lint.h
load_img.h
mac-carbon.h
macconf.h
macpopup.h
mac-qt.h
mac-term.h
mactty.h
macwin.h
mail.h
mextra.h
mfndpos.h
micro.h
mkroom.h
monattk.h
mondata.h
monflag.h
monst.h
monsym.h
mttypriv.h
ntconf.h
obj.h
objclass.h
os2conf.h
patchlevel.h
pcconf.h
permonst.h
prop.h
qt_clust.h
qt_kde0.h
qt_win.h
qt_xpms.h
List of qt_xpms.h images
qtext.h
qttableview.h
quest.h
rect.h
region.h
rm.h
skills.h
sp_lev.h
spell.h
sys.h
system.h
tcap.h
tile2x11.h
timeout.h
tosconf.h
tradstdc.h
trampoli.h
trap.h
unixconf.h
vision.h
vmsconf.h
wceconf.h
winami.h
wingem.h
winGnome.h
winprocs.h
wintty.h
wintype.h
winX.h
xwindow.h
xwindowp.h
you.h
youprop.h

nethack-3.6.0/dat
Arch.des
Barb.des
bigroom.des
castle.des
Caveman.des
endgame.des
gehennom.des
Healer.des
Knight.des
knox.des
medusa.des
mines.des
Monk.des
oracle.des
Priest.des
Ranger.des
Rogue.des
Samurai.des
sokoban.des
Tourist.des
tower.des
Valkyrie.des
Wizard.des
yendor.des

nethack-3.6.0/src
allmain.c
alloc.c
apply.c
artifact.c
attrib.c
ball.c
bones.c
botl.c
cmd.c
dbridge.c
decl.c
detect.c
dig.c
display.c
dlb.c
do.c
do_name.c
do_wear.c
dog.c
dogmove.c
dokick.c
dothrow.c
drawing.c
dungeon.c
eat.c
end.c
engrave.c
exper.c
explode.c
extralev.c
files.c
fountain.c
hack.c
hacklib.c
invent.c
light.c
lock.c
mail.c
makemon.c
mapglyph.c
mcastu.c
mhitm.c
mhitu.c
minion.c
mklev.c
mkmap.c
mkmaze.c
mkobj.c
mkroom.c
mon.c
mondata.c
monmove.c
monst.c
mplayer.c
mthrowu.c
muse.c
music.c
o_init.c
objects.c
objnam.c
options.c
pager.c
pickup.c
pline.c
polyself.c
potion.c
pray.c
priest.c
quest.c
questpgr.c
read.c
rect.c
region.c
restore.c
rip.c
rnd.c
role.c
rumors.c
save.c
shk.c
shknam.c
sit.c
sounds.c
sp_lev.c
spell.c
steal.c
steed.c
sys.c
teleport.c
timeout.c
topten.c
track.c
trap.c
u_init.c
uhitm.c
vault.c
version.c
vision.c
weapon.c
were.c
wield.c
windows.c
wizard.c
worm.c
worn.c
write.c
zap.c
Other files
bogusmon.txt
data.base
dungeon.def
engrave.txt
epitaph.txt
oracles.txt
quest.txt
rumors.tru
rumors.fal
symbols
tribute

SLASH'EM
See SLASH'EM_0.0.7E7F2_source_code.