Difference between revisions of "NetHack 3.6.0 source code"

From NetHackWiki
Jump to navigation Jump to search
(source code page, with red links for each file in nethack/src and nethack/include)
 
m (DizzyBot moved page Source code to NetHack 3.6.0 source code over a redirect without leaving a redirect: New NetHack version)
 
(53 intermediate revisions by 21 users not shown)
Line 1: Line 1:
The '''source code''' of NetHack is the form in which the [[DevTeam]] programs NetHack. It tells the computer what to do when you play NetHack. The source code describes how the computer generates the dungeon. It describes each monster and item in the game.
+
{{NetHack source code}}
 +
''Source code'' is the code of a program that is not yet [[Compiling|compiled]] into an OS-usable binary. NetHack is programmed in [[wikipedia:C programming language|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 http://www.nethack.org/v360/download-src.html]). Earlier versions are available at ([http://www.nethack.org/common/index.html http://www.nethack.org/common/index.html]).
  
Wikihack provides annotated versions of some of the source code. The original source code uses the [[NetHack General Public License]]; our annotations use the [[GNU Free Documentation License]]; see [[Project:Copyrights]] for the detailed copyright information.
+
NetHackWiki provides an annotated version of the NetHack 3.6.0 source code. The original source code is distributed under the [[Project:NetHack General Public License|NetHack General Public License]]; our annotations use the [[GNU Free Documentation License]]. Read [[Project:Copyrights]] for detailed copyright information.
  
Here at Wikihack (http://nethack.wikicities.c]]om/), anyone, including you, can annotate the source code. To copy in a source file that Wikihack is missing, you need copy and paste that file from NetHack 3.4.3.
+
Here at [[NetHackWiki:About|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|Beginner's Guide To NetHack Sources]] or just [[Source diving|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!)
  The {| introduces table syntax. The MediaWiki Handbook
+
 
  explains how that works. The intent here is to make two columns.
+
'''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. [[User:Dizzylizzy|Dizzylizzy]] ([[User talk:Dizzylizzy|talk]]) 22:24, 3 January 2016 (UTC)
 +
 
 +
__TOC__
 
{|style="width: 100%;"
 
{|style="width: 100%;"
 
|style="width: 50%; vertical-align: top;"|
 
|style="width: 50%; vertical-align: top;"|
=== nethack-3.4.3/include ===
+
=== nethack-3.6.0/include ===
* [[align.h]]
+
* [[Source:NetHack_3.6.0/include/align.h|align.h]]
* [[amiconf.h]]
+
* [[Source:NetHack_3.6.0/include/amiconf.h|amiconf.h]]
* [[artifact.h]]
+
* [[Source:NetHack_3.6.0/include/artifact.h|artifact.h]]
* [[artilist.h]]
+
* [[Source:NetHack_3.6.0/include/artilist.h|artilist.h]]
* [[attrib.h]]
+
* [[Source:NetHack_3.6.0/include/attrib.h|attrib.h]]
* [[beconf.h]]
+
* [[Source:NetHack_3.6.0/include/beconf.h|beconf.h]]
* [[bitmfile.h]]
+
* [[Source:NetHack_3.6.0/include/bitmfile.h|bitmfile.h]]
* [[config.h]]
+
* [[Source:NetHack_3.6.0/include/botl.h|botl.h]]
* [[config1.h]]
+
* [[Source:NetHack_3.6.0/include/color.h|color.h]]
* [[coord.h]]
+
* [[Source:NetHack_3.6.0/include/config.h|config.h]]
* [[decl.h]]
+
* [[Source:NetHack_3.6.0/include/config1.h|config1.h]]
* [[def_os2.h]]
+
* [[Source:NetHack_3.6.0/include/context.h|context.h]]
* [[dgn_comp.h]]
+
* [[Source:NetHack_3.6.0/include/coord.h|coord.h]]
* [[dgn_file.h]]
+
* [[Source:NetHack_3.6.0/include/decl.h|decl.h]]
* [[display.h]]
+
* [[Source:NetHack_3.6.0/include/def_os2.h|def_os2.h]]
* [[dlb.h]]
+
* [[Source:NetHack_3.6.0/include/dgn_file.h|dgn_file.h]]
* [[dungeon.h]]
+
* [[Source:NetHack_3.6.0/include/display.h|display.h]]
* [[edog.h]]
+
* [[Source:NetHack_3.6.0/include/dlb.h|dlb.h]]
* [[emin.h]]
+
* [[Source:NetHack_3.6.0/include/dungeon.h|dungeon.h]]
* [[engrave.h]]
+
* [[Source:NetHack_3.6.0/include/engrave.h|engrave.h]]
* [[epri.h]]
+
* [[Source:NetHack_3.6.0/include/extern.h|extern.h]]
* [[eshk.h]]
+
* [[Source:NetHack_3.6.0/include/flag.h|flag.h]]
* [[extern.h]]
+
* [[Source:NetHack_3.6.0/include/func_tab.h|func_tab.h]]
* [[flag.h]]
+
* [[Source:NetHack_3.6.0/include/gem_rsc.h|gem_rsc.h]]
* [[func_tab.h]]
+
* [[Source:NetHack_3.6.0/include/global.h|global.h]]
* [[global.h]]
+
* [[Source:NetHack_3.6.0/include/hack.h|hack.h]]
* [[hack.h]]
+
* [[Source:NetHack_3.6.0/include/lev.h|lev.h]]
* [[lev.h]]
+
* [[Source:NetHack_3.6.0/include/lint.h|lint.h]]
* [[lev_comp.h]]
+
* [[Source:NetHack_3.6.0/include/load_img.h|load_img.h]]
* [[macconf.h]]
+
* [[Source:NetHack_3.6.0/include/mac-carbon.h|mac-carbon.h]]
* [[macpopup.h]]
+
* [[Source:NetHack_3.6.0/include/macconf.h|macconf.h]]
* [[mactty.h]]
+
* [[Source:NetHack_3.6.0/include/macpopup.h|macpopup.h]]
* [[macwin.h]]
+
* [[Source:NetHack_3.6.0/include/mac-qt.h|mac-qt.h]]
* [[mail.h]]
+
* [[Source:NetHack_3.6.0/include/mac-term.h|mac-term.h]]
* [[mfndpos.h]]
+
* [[Source:NetHack_3.6.0/include/mactty.h|mactty.h]]
* [[micro.h]]
+
* [[Source:NetHack_3.6.0/include/macwin.h|macwin.h]]
* [[mkroom.h]]
+
* [[Source:NetHack_3.6.0/include/mail.h|mail.h]]
* [[mondata.h]]
+
* [[Source:NetHack_3.6.0/include/mextra.h|mextra.h]]
* [[monflag.h]]
+
* [[Source:NetHack_3.6.0/include/mfndpos.h|mfndpos.h]]
* [[monst.h]]
+
* [[Source:NetHack_3.6.0/include/micro.h|micro.h]]
* [[monsym.h]]
+
* [[Source:NetHack_3.6.0/include/mkroom.h|mkroom.h]]
* [[mttypriv.h]]
+
* [[Source:NetHack_3.6.0/include/monattk.h|monattk.h]]
* [[nhlan.h]]
+
* [[Source:NetHack_3.6.0/include/mondata.h|mondata.h]]
* [[ntconf.h]]
+
* [[Source:NetHack_3.6.0/include/monflag.h|monflag.h]]
* [[obj.h]]
+
* [[Source:NetHack_3.6.0/include/monst.h|monst.h]]
* [[objclass.h]]
+
* [[Source:NetHack_3.6.0/include/monsym.h|monsym.h]]
* [[onames.h]]
+
* [[Source:NetHack_3.6.0/include/mttypriv.h|mttypriv.h]]
* [[os2conf.h]]
+
* [[Source:NetHack_3.6.0/include/ntconf.h|ntconf.h]]
* [[pcconf.h]]
+
* [[Source:NetHack_3.6.0/include/obj.h|obj.h]]
* [[permonst.h]]
+
* [[Source:NetHack_3.6.0/include/objclass.h|objclass.h]]
* [[pm.h]]
+
* [[Source:NetHack_3.6.0/include/os2conf.h|os2conf.h]]
* [[prop.h]]
+
* [[Source:NetHack_3.6.0/include/patchlevel.h|patchlevel.h]]
* [[qt_clust.h]]
+
* [[Source:NetHack_3.6.0/include/pcconf.h|pcconf.h]]
* [[qtext.h]]
+
* [[Source:NetHack_3.6.0/include/permonst.h|permonst.h]]
* [[quest.h]]
+
* [[Source:NetHack_3.6.0/include/prop.h|prop.h]]
* [[rect.h]]
+
* [[Source:NetHack_3.6.0/include/qt_clust.h|qt_clust.h]]
* [[region.h]]
+
* [[Source:NetHack_3.6.0/include/qt_kde0.h|qt_kde0.h]]
* [[skills.h]]
+
* [[Source:NetHack_3.6.0/include/qt_win.h|qt_win.h]]
* [[spell.h]]
+
* [[Source:NetHack_3.6.0/include/qt_xpms.h|qt_xpms.h]]
* [[system.h]]
+
** [[List of qt_xpms.h images]]
* [[tcap.h]]
+
* [[Source:NetHack_3.6.0/include/qtext.h|qtext.h]]
* [[tile.h]]
+
* [[Source:NetHack_3.6.0/include/qttableview.h|qttableview.h]]
* [[tile2x11.h]]
+
* [[Source:NetHack_3.6.0/include/quest.h|quest.h]]
* [[timeout.h]]
+
* [[Source:NetHack_3.6.0/include/rect.h|rect.h]]
* [[tosconf.h]]
+
* [[Source:NetHack_3.6.0/include/region.h|region.h]]
* [[tradstdc.h]]
+
* [[Source:NetHack_3.6.0/include/rm.h|rm.h]]
* [[trampoli.h]]
+
* [[Source:NetHack_3.6.0/include/skills.h|skills.h]]
* [[trap.h]]
+
* [[Source:NetHack_3.6.0/include/sp_lev.h|sp_lev.h]]
* [[unixconf.h]]
+
* [[Source:NetHack_3.6.0/include/spell.h|spell.h]]
* [[vault.h]]
+
* [[Source:NetHack_3.6.0/include/sys.h|sys.h]]
* [[vis_tab.h]]
+
* [[Source:NetHack_3.6.0/include/system.h|system.h]]
* [[vision.h]]
+
* [[Source:NetHack_3.6.0/include/tcap.h|tcap.h]]
* [[vmsconf.h]]
+
* [[Source:NetHack_3.6.0/include/tile2x11.h|tile2x11.h]]
* [[wceconf.h]]
+
* [[Source:NetHack_3.6.0/include/timeout.h|timeout.h]]
* [[winami.h]]
+
* [[Source:NetHack_3.6.0/include/tosconf.h|tosconf.h]]
* [[wingem.h]]
+
* [[Source:NetHack_3.6.0/include/tradstdc.h|tradstdc.h]]
* [[winGnome.h]]
+
* [[Source:NetHack_3.6.0/include/trampoli.h|trampoli.h]]
* [[winprocs.h]]
+
* [[Source:NetHack_3.6.0/include/trap.h|trap.h]]
* [[wintty.h]]
+
* [[Source:NetHack_3.6.0/include/unixconf.h|unixconf.h]]
* [[wintype.h]]
+
* [[Source:NetHack_3.6.0/include/vision.h|vision.h]]
* [[winX.h]]
+
* [[Source:NetHack_3.6.0/include/vmsconf.h|vmsconf.h]]
* [[xwindow.h]]
+
* [[Source:NetHack_3.6.0/include/wceconf.h|wceconf.h]]
* [[xwindowp.h]]
+
* [[Source:NetHack_3.6.0/include/winami.h|winami.h]]
* [[you.h]]
+
* [[Source:NetHack_3.6.0/include/wingem.h|wingem.h]]
* [[youprop.h]]
+
* [[Source:NetHack_3.6.0/include/winGnome.h|winGnome.h]]
 +
* [[Source:NetHack_3.6.0/include/winprocs.h|winprocs.h]]
 +
* [[Source:NetHack_3.6.0/include/wintty.h|wintty.h]]
 +
* [[Source:NetHack_3.6.0/include/wintype.h|wintype.h]]
 +
* [[Source:NetHack_3.6.0/include/winX.h|winX.h]]
 +
* [[Source:NetHack_3.6.0/include/xwindow.h|xwindow.h]]
 +
* [[Source:NetHack_3.6.0/include/xwindowp.h|xwindowp.h]]
 +
* [[Source:NetHack_3.6.0/include/you.h|you.h]]
 +
* [[Source:NetHack_3.6.0/include/youprop.h|youprop.h]]
 +
 
 +
 
 +
=== nethack-3.6.0/dat ===
 +
* [[Source:NetHack_3.6.0/dat/Arch.des|Arch.des]]
 +
* [[Source:NetHack_3.6.0/dat/Barb.des|Barb.des]]
 +
* [[Source:NetHack_3.6.0/dat/bigroom.des|bigroom.des]]
 +
* [[Source:NetHack_3.6.0/dat/castle.des|castle.des]]
 +
* [[Source:NetHack_3.6.0/dat/Caveman.des|Caveman.des]]
 +
* [[Source:NetHack_3.6.0/dat/endgame.des|endgame.des]]
 +
* [[Source:NetHack_3.6.0/dat/gehennom.des|gehennom.des]]
 +
* [[Source:NetHack_3.6.0/dat/Healer.des|Healer.des]]
 +
* [[Source:NetHack_3.6.0/dat/Knight.des|Knight.des]]
 +
* [[Source:NetHack_3.6.0/dat/knox.des|knox.des]]
 +
* [[Source:NetHack_3.6.0/dat/medusa.des|medusa.des]]
 +
* [[Source:NetHack_3.6.0/dat/mines.des|mines.des]]
 +
* [[Source:NetHack_3.6.0/dat/Monk.des|Monk.des]]
 +
* [[Source:NetHack_3.6.0/dat/oracle.des|oracle.des]]
 +
* [[Source:NetHack_3.6.0/dat/Priest.des|Priest.des]]
 +
* [[Source:NetHack_3.6.0/dat/Ranger.des|Ranger.des]]
 +
* [[Source:NetHack_3.6.0/dat/Rogue.des|Rogue.des]]
 +
* [[Source:NetHack_3.6.0/dat/Samurai.des|Samurai.des]]
 +
* [[Source:NetHack_3.6.0/dat/sokoban.des|sokoban.des]]
 +
* [[Source:NetHack_3.6.0/dat/Tourist.des|Tourist.des]]
 +
* [[Source:NetHack_3.6.0/dat/tower.des|tower.des]]
 +
* [[Source:NetHack_3.6.0/dat/Valkyrie.des|Valkyrie.des]]
 +
* [[Source:NetHack_3.6.0/dat/Wizard.des|Wizard.des]]
 +
* [[Source:NetHack_3.6.0/dat/yendor.des|yendor.des]]
 
|style="width: 50%; vertical-align: top;"|
 
|style="width: 50%; vertical-align: top;"|
=== nethack-3.4.3/src ===
+
 
* [[allmain.c]]
+
=== nethack-3.6.0/src ===
* [[alloc.c]]
+
* [[Source:NetHack_3.6.0/src/allmain.c|allmain.c]]
* [[apply.c]]
+
* [[Source:NetHack_3.6.0/src/alloc.c|alloc.c]]
* [[artifact.c]]
+
* [[Source:NetHack_3.6.0/src/apply.c|apply.c]]
* [[attrib.c]]
+
* [[Source:NetHack_3.6.0/src/artifact.c|artifact.c]]
* [[ball.c]]
+
* [[Source:NetHack_3.6.0/src/attrib.c|attrib.c]]
* [[bones.c]]
+
* [[Source:NetHack_3.6.0/src/ball.c|ball.c]]
* [[botl.c]]
+
* [[Source:NetHack_3.6.0/src/bones.c|bones.c]]
* [[cmd.c]]
+
* [[Source:NetHack_3.6.0/src/botl.c|botl.c]]
* [[dbridge.c]]
+
* [[Source:NetHack_3.6.0/src/cmd.c|cmd.c]]
* [[decl.c]]
+
* [[Source:NetHack_3.6.0/src/dbridge.c|dbridge.c]]
* [[detect.c]]
+
* [[Source:NetHack_3.6.0/src/decl.c|decl.c]]
* [[dig.c]]
+
* [[Source:NetHack_3.6.0/src/detect.c|detect.c]]
* [[display.c]]
+
* [[Source:NetHack_3.6.0/src/dig.c|dig.c]]
* [[dlb.c]]
+
* [[Source:NetHack_3.6.0/src/display.c|display.c]]
* [[do.c]]
+
* [[Source:NetHack_3.6.0/src/dlb.c|dlb.c]]
* [[do_name.c]]
+
* [[Source:NetHack_3.6.0/src/do.c|do.c]]
* [[do_wear.c]]
+
* [[Source:NetHack_3.6.0/src/do_name.c|do_name.c]]
* [[dog.c]]
+
* [[Source:NetHack_3.6.0/src/do_wear.c|do_wear.c]]
* [[dogmove.c]]
+
* [[Source:NetHack_3.6.0/src/dog.c|dog.c]]
* [[dokick.c]]
+
* [[Source:NetHack_3.6.0/src/dogmove.c|dogmove.c]]
* [[dothrow.c]]
+
* [[Source:NetHack_3.6.0/src/dokick.c|dokick.c]]
* [[drawing.c]]
+
* [[Source:NetHack_3.6.0/src/dothrow.c|dothrow.c]]
* [[dungeon.c]]
+
* [[Source:NetHack_3.6.0/src/drawing.c|drawing.c]]
* [[eat.c]]
+
* [[Source:NetHack_3.6.0/src/dungeon.c|dungeon.c]]
* [[end.c]]
+
* [[Source:NetHack_3.6.0/src/eat.c|eat.c]]
* [[engrave.c]]
+
* [[Source:NetHack_3.6.0/src/end.c|end.c]]
* [[exper.c]]
+
* [[Source:NetHack_3.6.0/src/engrave.c|engrave.c]]
* [[explode.c]]
+
* [[Source:NetHack_3.6.0/src/exper.c|exper.c]]
* [[extralev.c]]
+
* [[Source:NetHack_3.6.0/src/explode.c|explode.c]]
* [[files.c]]
+
* [[Source:NetHack_3.6.0/src/extralev.c|extralev.c]]
* [[fountain.c]]
+
* [[Source:NetHack_3.6.0/src/files.c|files.c]]
* [[hack.c]]
+
* [[Source:NetHack_3.6.0/src/fountain.c|fountain.c]]
* [[hacklib.c]]
+
* [[Source:NetHack_3.6.0/src/hack.c|hack.c]]
* [[invent.c]]
+
* [[Source:NetHack_3.6.0/src/hacklib.c|hacklib.c]]
* [[light.c]]
+
* [[Source:NetHack_3.6.0/src/invent.c|invent.c]]
* [[lock.c]]
+
* [[Source:NetHack_3.6.0/src/light.c|light.c]]
* [[mail.c]]
+
* [[Source:NetHack_3.6.0/src/lock.c|lock.c]]
* [[makemon.c]]
+
* [[Source:NetHack_3.6.0/src/mail.c|mail.c]]
* [[mapglyph.c]]
+
* [[Source:NetHack_3.6.0/src/makemon.c|makemon.c]]
* [[mcastu.c]]
+
* [[Source:NetHack_3.6.0/src/mapglyph.c|mapglyph.c]]
* [[mhitm.c]]
+
* [[Source:NetHack_3.6.0/src/mcastu.c|mcastu.c]]
* [[mhitu.c]]
+
* [[Source:NetHack_3.6.0/src/mhitm.c|mhitm.c]]
* [[minion.c]]
+
* [[Source:NetHack_3.6.0/src/mhitu.c|mhitu.c]]
* [[mklev.c]]
+
* [[Source:NetHack_3.6.0/src/minion.c|minion.c]]
* [[mkmap.c]]
+
* [[Source:NetHack_3.6.0/src/mklev.c|mklev.c]]
* [[mkmaze.c]]
+
* [[Source:NetHack_3.6.0/src/mkmap.c|mkmap.c]]
* [[mkobj.c]]
+
* [[Source:NetHack_3.6.0/src/mkmaze.c|mkmaze.c]]
* [[mkroom.c]]
+
* [[Source:NetHack_3.6.0/src/mkobj.c|mkobj.c]]
* [[mon.c]]
+
* [[Source:NetHack_3.6.0/src/mkroom.c|mkroom.c]]
* [[mondata.c]]
+
* [[Source:NetHack_3.6.0/src/mon.c|mon.c]]
* [[monmove.c]]
+
* [[Source:NetHack_3.6.0/src/mondata.c|mondata.c]]
* [[monst.c]]
+
* [[Source:NetHack_3.6.0/src/monmove.c|monmove.c]]
* [[monstr.c]]
+
* [[Source:NetHack_3.6.0/src/monst.c|monst.c]]
* [[mplayer.c]]
+
* [[Source:NetHack_3.6.0/src/mplayer.c|mplayer.c]]
* [[mthrowu.c]]
+
* [[Source:NetHack_3.6.0/src/mthrowu.c|mthrowu.c]]
* [[muse.c]]
+
* [[Source:NetHack_3.6.0/src/muse.c|muse.c]]
* [[music.c]]
+
* [[Source:NetHack_3.6.0/src/music.c|music.c]]
* [[o_init.c]]
+
* [[Source:NetHack_3.6.0/src/o_init.c|o_init.c]]
* [[objects.c]]
+
* [[Source:NetHack_3.6.0/src/objects.c|objects.c]]
* [[objnam.c]]
+
* [[Source:NetHack_3.6.0/src/objnam.c|objnam.c]]
* [[options.c]]
+
* [[Source:NetHack_3.6.0/src/options.c|options.c]]
* [[pager.c]]
+
* [[Source:NetHack_3.6.0/src/pager.c|pager.c]]
* [[pickup.c]]
+
* [[Source:NetHack_3.6.0/src/pickup.c|pickup.c]]
* [[pline.c]]
+
* [[Source:NetHack_3.6.0/src/pline.c|pline.c]]
* [[polyself.c]]
+
* [[Source:NetHack_3.6.0/src/polyself.c|polyself.c]]
* [[potion.c]]
+
* [[Source:NetHack_3.6.0/src/potion.c|potion.c]]
* [[pray.c]]
+
* [[Source:NetHack_3.6.0/src/pray.c|pray.c]]
* [[priest.c]]
+
* [[Source:NetHack_3.6.0/src/priest.c|priest.c]]
* [[quest.c]]
+
* [[Source:NetHack_3.6.0/src/quest.c|quest.c]]
* [[questpgr.c]]
+
* [[Source:NetHack_3.6.0/src/questpgr.c|questpgr.c]]
* [[read.c]]
+
* [[Source:NetHack_3.6.0/src/read.c|read.c]]
* [[rect.c]]
+
* [[Source:NetHack_3.6.0/src/rect.c|rect.c]]
* [[region.c]]
+
* [[Source:NetHack_3.6.0/src/region.c|region.c]]
* [[restore.c]]
+
* [[Source:NetHack_3.6.0/src/restore.c|restore.c]]
* [[rip.c]]
+
* [[Source:NetHack_3.6.0/src/rip.c|rip.c]]
* [[role.c]]
+
* [[Source:NetHack_3.6.0/src/rnd.c|rnd.c]]
* [[rumors.c]]
+
* [[Source:NetHack_3.6.0/src/role.c|role.c]]
* [[save.c]]
+
* [[Source:NetHack_3.6.0/src/rumors.c|rumors.c]]
* [[shk.c]]
+
* [[Source:NetHack_3.6.0/src/save.c|save.c]]
* [[shknam.c]]
+
* [[Source:NetHack_3.6.0/src/shk.c|shk.c]]
* [[sit.c]]
+
* [[Source:NetHack_3.6.0/src/shknam.c|shknam.c]]
* [[sounds.c]]
+
* [[Source:NetHack_3.6.0/src/sit.c|sit.c]]
* [[sp_lev.c]]
+
* [[Source:NetHack_3.6.0/src/sounds.c|sounds.c]]
* [[spell.c]]
+
* [[Source:NetHack_3.6.0/src/sp_lev.c|sp_lev.c]]
* [[steal.c]]
+
* [[Source:NetHack_3.6.0/src/spell.c|spell.c]]
* [[steed.c]]
+
* [[Source:NetHack_3.6.0/src/steal.c|steal.c]]
* [[teleport.c]]
+
* [[Source:NetHack_3.6.0/src/steed.c|steed.c]]
* [[tile.c]]
+
* [[Source:NetHack_3.6.0/src/sys.c|sys.c]]
* [[timeout.c]]
+
* [[Source:NetHack_3.6.0/src/teleport.c|teleport.c]]
* [[topten.c]]
+
* [[Source:NetHack_3.6.0/src/timeout.c|timeout.c]]
* [[track.c]]
+
* [[Source:NetHack_3.6.0/src/topten.c|topten.c]]
* [[trap.c]]
+
* [[Source:NetHack_3.6.0/src/track.c|track.c]]
* [[u_init.c]]
+
* [[Source:NetHack_3.6.0/src/trap.c|trap.c]]
* [[uhitm.c]]
+
* [[Source:NetHack_3.6.0/src/u_init.c|u_init.c]]
* [[vault.c]]
+
* [[Source:NetHack_3.6.0/src/uhitm.c|uhitm.c]]
* [[version.c]]
+
* [[Source:NetHack_3.6.0/src/vault.c|vault.c]]
* [[vis_tab.c]]
+
* [[Source:NetHack_3.6.0/src/version.c|version.c]]
* [[vision.c]]
+
* [[Source:NetHack_3.6.0/src/vision.c|vision.c]]
* [[weapon.c]]
+
* [[Source:NetHack_3.6.0/src/weapon.c|weapon.c]]
* [[were.c]]
+
* [[Source:NetHack_3.6.0/src/were.c|were.c]]
* [[wield.c]]
+
* [[Source:NetHack_3.6.0/src/wield.c|wield.c]]
* [[windows.c]]
+
* [[Source:NetHack_3.6.0/src/windows.c|windows.c]]
* [[wizard.c]]
+
* [[Source:NetHack_3.6.0/src/wizard.c|wizard.c]]
* [[worm.c]]
+
* [[Source:NetHack_3.6.0/src/worm.c|worm.c]]
* [[worn.c]]
+
* [[Source:NetHack_3.6.0/src/worn.c|worn.c]]
* [[write.c]]
+
* [[Source:NetHack_3.6.0/src/write.c|write.c]]
* [[zap.c]]
+
* [[Source:NetHack_3.6.0/src/zap.c|zap.c]]
 +
 
 +
=== Other files ===
 +
 
 +
* [[Source:NetHack_3.6.0/dat/bogusmon.txt|bogusmon.txt]]
 +
* [[Source:NetHack_3.6.0/dat/data.base|data.base]]
 +
* [[Source:NetHack_3.6.0/dat/dungeon.def|dungeon.def]]
 +
* [[Source:NetHack_3.6.0/dat/engrave.txt|engrave.txt]]
 +
* [[Source:NetHack_3.6.0/dat/epitaph.txt|epitaph.txt]]
 +
* [[Source:NetHack_3.6.0/dat/oracles.txt|oracles.txt]]
 +
* [[Source:NetHack_3.6.0/dat/quest.txt|quest.txt]]
 +
* [[Source:NetHack_3.6.0/dat/rumors.tru|rumors.tru]]
 +
* [[Source:NetHack_3.6.0/dat/rumors.fal|rumors.fal]]
 +
* [[Source:NetHack_3.6.0/dat/symbols|symbols]]
 +
* [[Source:NetHack_3.6.0/dat/tribute|tribute]]
 
|}
 
|}
  
[[Category:Source code]]
+
==SLASH'EM==
 +
See [[SLASH'EM_0.0.7E7F2_source_code]].
 +
[[Category:NetHack 3.6.0 source code| ]]
 +
[[Category:Source code| ]]

Latest revision as of 10:19, 12 May 2018

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)

nethack-3.6.0/include


nethack-3.6.0/dat

nethack-3.6.0/src

Other files

SLASH'EM

See SLASH'EM_0.0.7E7F2_source_code.