├── .gitignore ├── COPYING ├── Classes ├── AsciiTileSet.h ├── AsciiTileSet.m ├── DMath.h ├── DMath.m ├── DirectionInputView.h ├── DirectionInputView.m ├── DirectionInputViewController.h ├── DirectionInputViewController.m ├── ExtendedCommandViewController.h ├── ExtendedCommandViewController.m ├── FileLogger.h ├── FileLogger.m ├── Hearse.h ├── Hearse.m ├── HearseFileRegistry.h ├── HearseFileRegistry.m ├── ItemAmountView.xib ├── ItemAmountViewController.h ├── ItemAmountViewController.m ├── MainMenuView.xib ├── MainMenuViewController.h ├── MainMenuViewController.m ├── MainView.h ├── MainView.m ├── MainViewController.h ├── MainViewController.m ├── MenuItem.h ├── MenuItem.m ├── MenuViewController.h ├── MenuViewController.m ├── NSString+NetHack.h ├── NSString+NetHack.m ├── NSString+Regexp.h ├── NSString+Regexp.m ├── NethackEvent.h ├── NethackEvent.m ├── NethackEventQueue.h ├── NethackEventQueue.m ├── NethackMenuItem.h ├── NethackMenuItem.m ├── NethackMenuViewController.h ├── NethackMenuViewController.m ├── NethackYnFunction.h ├── NethackYnFunction.m ├── RoleSelectionController.h ├── RoleSelectionController.m ├── Shortcut.h ├── Shortcut.m ├── ShortcutView.h ├── ShortcutView.m ├── TextDisplayViewController.h ├── TextDisplayViewController.m ├── TextInputViewController.h ├── TextInputViewController.m ├── TilePosition.h ├── TilePosition.m ├── TileSet.h ├── TileSet.m ├── TouchInfo.h ├── TouchInfo.m ├── TouchInfoStore.h ├── TouchInfoStore.m ├── Window.h ├── Window.m ├── iNethackAppDelegate.h └── iNethackAppDelegate.m ├── DirectionInputView.xib ├── Entitlements.plist ├── ExtendedCommandView.xib ├── Icon-152x152.png ├── Icon-76x76.png ├── Icon.png ├── Info.plist ├── MainView.xib ├── MainWindow.xib ├── MenuView.xib ├── MenuViewLeaf.xib ├── NethackMenuView.xib ├── README.md ├── Settings.bundle ├── Root.plist ├── advancedgameplay.plist ├── en.lproj │ └── Root.strings └── hearse.plist ├── TextInputView.xib ├── Tilesets ├── absurd32.png ├── chozo32.png ├── chozo32b.png ├── dawnhack32.png ├── nevanda32.png ├── nevanda32black.png ├── nextstep.png ├── nhtiles.png └── tiles32.png ├── credits.html ├── gfx ├── nethack logo 512.png ├── screenshot landscape.png ├── screenshot portrait 002.png ├── screenshot portrait 003.png └── screenshot portrait.png ├── iNetHack.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── iNetHack.xccheckout ├── iNetHack2 ├── Images-2.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-60.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-72.png │ │ ├── Icon-72@2x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small-40.png │ │ ├── Icon-Small-40@2x.png │ │ ├── Icon-Small-40@3x.png │ │ ├── Icon-Small-50.png │ │ ├── Icon-Small-50@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Icon.png │ │ ├── Icon@2x.png │ │ └── iTunesArtwork@2x.png └── Images.xcassets │ ├── Contents.json │ ├── Icon-60.imageset │ ├── Contents.json │ ├── Icon-60.png │ ├── Icon-60@2x.png │ └── Icon-60@3x.png │ ├── Icon-72.imageset │ ├── Contents.json │ ├── Icon-72.png │ └── Icon-72@2x.png │ ├── Icon-76.imageset │ ├── Contents.json │ ├── Icon-76.png │ └── Icon-76@2x.png │ ├── Icon-Small-40.imageset │ ├── Contents.json │ ├── Icon-Small-40.png │ ├── Icon-Small-40@2x.png │ └── Icon-Small-40@3x.png │ ├── Icon-Small-50.imageset │ ├── Contents.json │ ├── Icon-Small-50.png │ └── Icon-Small-50@2x.png │ ├── Icon-Small.imageset │ ├── Contents.json │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ └── Icon-Small@3x.png │ ├── Icon.imageset │ ├── Contents.json │ ├── Icon.png │ └── Icon@2x.png │ ├── LaunchImage.launchimage │ ├── Contents.json │ ├── launch-640-1136.png │ └── launch-640-960.png │ └── iTunesArtwork.imageset │ ├── Contents.json │ └── iTunesArtwork@2x.png ├── iNethack_Prefix.pch ├── main.m ├── manual.html ├── nethack ├── 64bit.diff ├── Files ├── Porting ├── README ├── dat │ ├── Arc-fila.lev │ ├── Arc-filb.lev │ ├── Arc-goal.lev │ ├── Arc-loca.lev │ ├── Arc-strt.lev │ ├── Arch.des │ ├── Bar-fila.lev │ ├── Bar-filb.lev │ ├── Bar-goal.lev │ ├── Bar-loca.lev │ ├── Bar-strt.lev │ ├── Barb.des │ ├── Cav-fila.lev │ ├── Cav-filb.lev │ ├── Cav-goal.lev │ ├── Cav-loca.lev │ ├── Cav-strt.lev │ ├── Caveman.des │ ├── Hea-fila.lev │ ├── Hea-filb.lev │ ├── Hea-goal.lev │ ├── Hea-loca.lev │ ├── Hea-strt.lev │ ├── Healer.des │ ├── Kni-fila.lev │ ├── Kni-filb.lev │ ├── Kni-goal.lev │ ├── Kni-loca.lev │ ├── Kni-strt.lev │ ├── Knight.des │ ├── Mon-fila.lev │ ├── Mon-filb.lev │ ├── Mon-goal.lev │ ├── Mon-loca.lev │ ├── Mon-strt.lev │ ├── Monk.des │ ├── Pri-fila.lev │ ├── Pri-filb.lev │ ├── Pri-goal.lev │ ├── Pri-loca.lev │ ├── Pri-strt.lev │ ├── Priest.des │ ├── Ran-fila.lev │ ├── Ran-filb.lev │ ├── Ran-goal.lev │ ├── Ran-loca.lev │ ├── Ran-strt.lev │ ├── Ranger.des │ ├── Rog-fila.lev │ ├── Rog-filb.lev │ ├── Rog-goal.lev │ ├── Rog-loca.lev │ ├── Rog-strt.lev │ ├── Rogue.des │ ├── Sam-fila.lev │ ├── Sam-filb.lev │ ├── Sam-goal.lev │ ├── Sam-loca.lev │ ├── Sam-strt.lev │ ├── Samurai.des │ ├── Tou-fila.lev │ ├── Tou-filb.lev │ ├── Tou-goal.lev │ ├── Tou-loca.lev │ ├── Tou-strt.lev │ ├── Tourist.des │ ├── Val-fila.lev │ ├── Val-filb.lev │ ├── Val-goal.lev │ ├── Val-loca.lev │ ├── Val-strt.lev │ ├── Valkyrie.des │ ├── Wiz-fila.lev │ ├── Wiz-filb.lev │ ├── Wiz-goal.lev │ ├── Wiz-loca.lev │ ├── Wiz-strt.lev │ ├── Wizard.des │ ├── air.lev │ ├── asmodeus.lev │ ├── astral.lev │ ├── baalz.lev │ ├── bigrm-1.lev │ ├── bigrm-2.lev │ ├── bigrm-3.lev │ ├── bigrm-4.lev │ ├── bigrm-5.lev │ ├── bigroom.des │ ├── castle.des │ ├── castle.lev │ ├── cmdhelp │ ├── data │ ├── data.base │ ├── dungeon │ ├── dungeon.def │ ├── dungeon.pdf │ ├── earth.lev │ ├── endgame.des │ ├── fakewiz1.lev │ ├── fakewiz2.lev │ ├── fire.lev │ ├── gehennom.des │ ├── help │ ├── hh │ ├── history │ ├── juiblex.lev │ ├── knox.des │ ├── knox.lev │ ├── license │ ├── medusa-1.lev │ ├── medusa-2.lev │ ├── medusa.des │ ├── minefill.lev │ ├── minend-1.lev │ ├── minend-2.lev │ ├── minend-3.lev │ ├── mines.des │ ├── minetn-1.lev │ ├── minetn-2.lev │ ├── minetn-3.lev │ ├── minetn-4.lev │ ├── minetn-5.lev │ ├── minetn-6.lev │ ├── minetn-7.lev │ ├── news │ ├── opthelp │ ├── options │ ├── oracle.des │ ├── oracle.lev │ ├── oracles │ ├── oracles.txt │ ├── orcus.lev │ ├── quest.dat │ ├── quest.txt │ ├── quest_levs │ ├── rumors │ ├── rumors.fal │ ├── rumors.tru │ ├── sanctum.lev │ ├── soko1-1.lev │ ├── soko1-2.lev │ ├── soko2-1.lev │ ├── soko2-2.lev │ ├── soko3-1.lev │ ├── soko3-2.lev │ ├── soko4-1.lev │ ├── soko4-2.lev │ ├── sokoban.des │ ├── spec_levs │ ├── tower.des │ ├── tower1.lev │ ├── tower2.lev │ ├── tower3.lev │ ├── valley.lev │ ├── water.lev │ ├── wizard1.lev │ ├── wizard2.lev │ ├── wizard3.lev │ ├── wizhelp │ └── yendor.des ├── doc │ ├── Guidebook.mn │ ├── Guidebook.tex │ ├── Guidebook.txt │ ├── dgn_comp.6 │ ├── dgn_comp.txt │ ├── dlb.6 │ ├── dlb.txt │ ├── fixes22.0 │ ├── fixes30.0 │ ├── fixes31.1 │ ├── fixes31.2 │ ├── fixes31.3 │ ├── fixes32.0 │ ├── fixes32.1 │ ├── fixes32.2 │ ├── fixes32.3 │ ├── fixes33.0 │ ├── fixes33.1 │ ├── fixes34.0 │ ├── fixes34.1 │ ├── fixes34.2 │ ├── fixes34.3 │ ├── lev_comp.6 │ ├── lev_comp.txt │ ├── nethack.6 │ ├── nethack.txt │ ├── recover.6 │ ├── recover.txt │ ├── tmac.n │ └── window.doc ├── include │ ├── align.h │ ├── amiconf.h │ ├── artifact.h │ ├── artilist.h │ ├── attrib.h │ ├── beconf.h │ ├── bitmfile.h │ ├── color.h │ ├── config.h │ ├── config1.h │ ├── coord.h │ ├── date.h │ ├── decl.h │ ├── def_os2.h │ ├── dgn_file.h │ ├── display.h │ ├── dlb.h │ ├── dungeon.h │ ├── edog.h │ ├── emin.h │ ├── engrave.h │ ├── epri.h │ ├── eshk.h │ ├── extern.h │ ├── flag.h │ ├── func_tab.h │ ├── gem_rsc.h │ ├── global.h │ ├── hack.h │ ├── lev.h │ ├── load_img.h │ ├── mac-carbon.h │ ├── mac-qt.h │ ├── mac-term.h │ ├── macconf.h │ ├── macpopup.h │ ├── mactty.h │ ├── macwin.h │ ├── mail.h │ ├── mfndpos.h │ ├── micro.h │ ├── mkroom.h │ ├── monattk.h │ ├── mondata.h │ ├── monflag.h │ ├── monst.h │ ├── monsym.h │ ├── mttypriv.h │ ├── nhlan.h │ ├── ntconf.h │ ├── obj.h │ ├── objclass.h │ ├── onames.h │ ├── os2conf.h │ ├── patchlevel.h │ ├── pcconf.h │ ├── permonst.h │ ├── pm.h │ ├── prop.h │ ├── qt_clust.h │ ├── qt_kde0.h │ ├── qt_win.h │ ├── qt_xpms.h │ ├── qtext.h │ ├── qttableview.h │ ├── quest.h │ ├── rect.h │ ├── region.h │ ├── rm.h │ ├── skills.h │ ├── sp_lev.h │ ├── spell.h │ ├── system.h │ ├── tcap.h │ ├── tile2x11.h │ ├── timeout.h │ ├── tosconf.h │ ├── tradstdc.h │ ├── trampoli.h │ ├── trap.h │ ├── unixconf.h │ ├── vault.h │ ├── vis_tab.h │ ├── vision.h │ ├── vmsconf.h │ ├── wceconf.h │ ├── winGnome.h │ ├── winX.h │ ├── winami.h │ ├── wingem.h │ ├── winprocs.h │ ├── wintty.h │ ├── wintype.h │ ├── xwindow.h │ ├── xwindowp.h │ ├── you.h │ └── youprop.h ├── 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 │ ├── monstr.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 │ ├── teleport.c │ ├── tile.c │ ├── timeout.c │ ├── topten.c │ ├── track.c │ ├── trap.c │ ├── u_init.c │ ├── uhitm.c │ ├── vault.c │ ├── version.c │ ├── vis_tab.c │ ├── vision.c │ ├── weapon.c │ ├── were.c │ ├── wield.c │ ├── windows.c │ ├── wizard.c │ ├── worm.c │ ├── worn.c │ ├── write.c │ └── zap.c ├── sys │ ├── amiga │ │ ├── Build.ami │ │ ├── Install.ami │ │ ├── Makefile.agc │ │ ├── Makefile.ami │ │ ├── NetHack.cnf │ │ ├── amidos.c │ │ ├── amidos.p │ │ ├── amifont.uu │ │ ├── amifont8.uu │ │ ├── amigst.c │ │ ├── amii.hlp │ │ ├── amimenu.c │ │ ├── amirip.c │ │ ├── amisnd.c │ │ ├── amistack.c │ │ ├── amitty.c │ │ ├── amiwind.c │ │ ├── amiwind.p │ │ ├── clipwin.c │ │ ├── colorwin.c │ │ ├── cvtsnd.c │ │ ├── grave16.xpm │ │ ├── ifchange │ │ ├── mkdmake │ │ ├── txt2iff.c │ │ ├── winami.c │ │ ├── winami.p │ │ ├── winchar.c │ │ ├── windefs.h │ │ ├── winext.h │ │ ├── winfuncs.c │ │ ├── winkey.c │ │ ├── winmenu.c │ │ ├── winproto.h │ │ ├── winreq.c │ │ ├── winstr.c │ │ └── xpm2iff.c │ ├── atari │ │ ├── Install.tos │ │ ├── atarifnt.uue │ │ ├── nethack.mnu │ │ ├── setup.g │ │ ├── tos.c │ │ └── unx2atar.sed │ ├── be │ │ ├── README │ │ └── bemain.c │ ├── mac │ │ ├── Files.r │ │ ├── Install.mw │ │ ├── MacHelp │ │ ├── NHDeflts │ │ ├── NetHack.rsrc │ │ ├── News │ │ ├── README │ │ ├── Sounds.rsrc │ │ ├── dprintf.c │ │ ├── maccurs.c │ │ ├── macerrs.c │ │ ├── macfile.c │ │ ├── machelp.bh │ │ ├── macmain.c │ │ ├── macmenu.c │ │ ├── macsnd.c │ │ ├── mactopl.c │ │ ├── mactty.c │ │ ├── macunix.c │ │ ├── macwin.c │ │ ├── mgetline.c │ │ ├── mmodal.c │ │ ├── mrecover.c │ │ ├── mrecover.rsrc │ │ └── mttymain.c │ ├── msdos │ │ ├── Install.dos │ │ ├── Makefile.BC │ │ ├── Makefile.GCC │ │ ├── Makefile.MSC │ │ ├── NHAccess.nh │ │ ├── moveinit.pat │ │ ├── msdos.c │ │ ├── msdoshlp.txt │ │ ├── nhico.uu │ │ ├── nhpif.uu │ │ ├── ovlinit.c │ │ ├── pckeys.c │ │ ├── pctiles.c │ │ ├── pctiles.h │ │ ├── pcvideo.h │ │ ├── portio.h │ │ ├── schema1.BC │ │ ├── schema2.BC │ │ ├── schema3.MSC │ │ ├── setup.bat │ │ ├── sound.c │ │ ├── tile2bin.c │ │ ├── video.c │ │ ├── vidtxt.c │ │ └── vidvga.c │ ├── os2 │ │ ├── Install.os2 │ │ ├── Makefile.os2 │ │ ├── nhpmico.uu │ │ └── os2.c │ ├── share │ │ ├── Makefile.lib │ │ ├── NetHack.cnf │ │ ├── dgn_comp.h │ │ ├── dgn_lex.c │ │ ├── dgn_yacc.c │ │ ├── ioctl.c │ │ ├── lev_comp.h │ │ ├── lev_lex.c │ │ ├── lev_yacc.c │ │ ├── nhlan.c │ │ ├── pcmain.c │ │ ├── pcsys.c │ │ ├── pctty.c │ │ ├── pcunix.c │ │ ├── random.c │ │ ├── sounds │ │ │ ├── README │ │ │ ├── bell.uu │ │ │ ├── bugle.uu │ │ │ ├── erthdrum.uu │ │ │ ├── firehorn.uu │ │ │ ├── frsthorn.uu │ │ │ ├── lethdrum.uu │ │ │ ├── mgcflute.uu │ │ │ ├── mgcharp.uu │ │ │ ├── toolhorn.uu │ │ │ ├── wdnflute.uu │ │ │ └── wdnharp.uu │ │ ├── tclib.c │ │ ├── termcap │ │ ├── termcap.uu │ │ ├── unixtty.c │ │ └── uudecode.c │ ├── unix │ │ ├── Install.unx │ │ ├── Makefile.dat │ │ ├── Makefile.doc │ │ ├── Makefile.src │ │ ├── Makefile.top │ │ ├── Makefile.utl │ │ ├── README.linux │ │ ├── cpp1.shr │ │ ├── cpp2.shr │ │ ├── cpp3.shr │ │ ├── depend.awk │ │ ├── nethack.sh │ │ ├── setup.sh │ │ ├── snd86unx.shr │ │ ├── unixmain.c │ │ ├── unixres.c │ │ └── unixunix.c │ ├── vms │ │ ├── Install.vms │ │ ├── Makefile.dat │ │ ├── Makefile.doc │ │ ├── Makefile.src │ │ ├── Makefile.top │ │ ├── Makefile.utl │ │ ├── install.com │ │ ├── lev_lex.h │ │ ├── nethack.com │ │ ├── oldcrtl.c │ │ ├── spec_lev.com │ │ ├── vmsbuild.com │ │ ├── vmsfiles.c │ │ ├── vmsmail.c │ │ ├── vmsmain.c │ │ ├── vmsmisc.c │ │ ├── vmstty.c │ │ └── vmsunix.c │ ├── wince │ │ ├── Install.ce │ │ ├── bootstrp.mak │ │ ├── ceinc │ │ │ ├── assert.h │ │ │ ├── errno.h │ │ │ ├── fcntl.h │ │ │ └── sys │ │ │ │ └── stat.h │ │ ├── celib.c │ │ ├── cesetup.bat │ │ ├── cesound.c │ │ ├── defaults.nh │ │ ├── keypad.uu │ │ ├── menubar.uu │ │ ├── mhaskyn.c │ │ ├── mhaskyn.h │ │ ├── mhcmd.c │ │ ├── mhcmd.h │ │ ├── mhcolor.c │ │ ├── mhcolor.h │ │ ├── mhdlg.c │ │ ├── mhdlg.h │ │ ├── mhfont.c │ │ ├── mhfont.h │ │ ├── mhinput.c │ │ ├── mhinput.h │ │ ├── mhmain.c │ │ ├── mhmain.h │ │ ├── mhmap.c │ │ ├── mhmap.h │ │ ├── mhmenu.c │ │ ├── mhmenu.h │ │ ├── mhmsg.h │ │ ├── mhmsgwnd.c │ │ ├── mhmsgwnd.h │ │ ├── mhrip.c │ │ ├── mhrip.h │ │ ├── mhstatus.c │ │ ├── mhstatus.h │ │ ├── mhtext.c │ │ ├── mhtext.h │ │ ├── mhtxtbuf.c │ │ ├── mhtxtbuf.h │ │ ├── mswproc.c │ │ ├── newres.h │ │ ├── resource.h │ │ ├── winMS.h │ │ ├── winhack.c │ │ ├── winhack.rc │ │ ├── winhcksp.rc │ │ └── winmain.c │ └── winnt │ │ ├── Install.nt │ │ ├── Makefile.bcc │ │ ├── Makefile.gcc │ │ ├── Makefile.msc │ │ ├── console.rc │ │ ├── defaults.nh │ │ ├── mapimail.c │ │ ├── nethack.def │ │ ├── nh340key.c │ │ ├── nhdefkey.c │ │ ├── nhico.uu │ │ ├── nhraykey.c │ │ ├── nhsetup.bat │ │ ├── ntsound.c │ │ ├── nttty.c │ │ ├── porthelp │ │ ├── win32api.h │ │ └── winnt.c ├── util │ ├── dgn_comp.l │ ├── dgn_comp.y │ ├── dgn_main.c │ ├── dlb_main.c │ ├── lev_comp.l │ ├── lev_comp.y │ ├── lev_main.c │ ├── makedefs.c │ ├── panic.c │ └── recover.c └── win │ ├── Qt │ ├── Info.plist │ ├── Install.Qt │ ├── knethack.lnk │ ├── knh-mini.xpm │ ├── knh.xpm │ ├── nhicns.uu │ ├── nhsplash.xpm │ ├── qpe-nethack.control │ ├── qt_clust.cpp │ ├── qt_win.cpp │ ├── qttableview.cpp │ ├── tileedit.cpp │ └── tileedit.h │ ├── X11 │ ├── Install.X11 │ ├── NetHack.ad │ ├── Window.c │ ├── dialogs.c │ ├── ibm.bdf │ ├── nethack.rc │ ├── nh10.bdf │ ├── nh32icon │ ├── nh56icon │ ├── nh72icon │ ├── nh_icon.xpm │ ├── pet_mark.xbm │ ├── rip.xpm │ ├── tile2x11.c │ ├── winX.c │ ├── winmap.c │ ├── winmenu.c │ ├── winmesg.c │ ├── winmisc.c │ ├── winstat.c │ ├── wintext.c │ └── winval.c │ ├── gem │ ├── Install.gem │ ├── bitmfile.c │ ├── gem_rsc.uu │ ├── gem_rso.uu │ ├── gr_rect.c │ ├── gr_rect.h │ ├── load_img.c │ ├── tile2img.c │ ├── title.uu │ ├── wingem.c │ ├── wingem1.c │ └── xpm2img.c │ ├── gnome │ ├── README │ ├── gn_xpms.h │ ├── gnaskstr.c │ ├── gnaskstr.h │ ├── gnbind.c │ ├── gnbind.h │ ├── gnglyph.c │ ├── gnglyph.h │ ├── gnmain.c │ ├── gnmain.h │ ├── gnmap.c │ ├── gnmap.h │ ├── gnmenu.c │ ├── gnmenu.h │ ├── gnmesg.c │ ├── gnmesg.h │ ├── gnomeprv.h │ ├── gnopts.c │ ├── gnopts.h │ ├── gnplayer.c │ ├── gnplayer.h │ ├── gnsignal.c │ ├── gnsignal.h │ ├── gnstatus.c │ ├── gnstatus.h │ ├── gntext.c │ ├── gntext.h │ ├── gnworn.c │ ├── gnworn.h │ ├── gnyesno.c │ ├── gnyesno.h │ └── mapbg.xpm │ ├── iphone │ ├── winiphone.h │ └── winiphone.m │ ├── share │ ├── gifread.c │ ├── monsters.txt │ ├── objects.txt │ ├── other.txt │ ├── ppmwrite.c │ ├── thintile.c │ ├── tile.doc │ ├── tile.h │ ├── tile2bmp.c │ ├── tilemap.c │ └── tiletext.c │ ├── tty │ ├── getline.c │ ├── termcap.c │ ├── topl.c │ └── wintty.c │ └── win32 │ ├── dgncomp.dsp │ ├── dgnstuff.dsp │ ├── dgnstuff.mak │ ├── dlb_main.dsp │ ├── levcomp.dsp │ ├── levstuff.dsp │ ├── levstuff.mak │ ├── makedefs.dsp │ ├── mhaskyn.c │ ├── mhaskyn.h │ ├── mhdlg.c │ ├── mhdlg.h │ ├── mhfont.c │ ├── mhfont.h │ ├── mhinput.c │ ├── mhinput.h │ ├── mhmain.c │ ├── mhmain.h │ ├── mhmap.c │ ├── mhmap.h │ ├── mhmenu.c │ ├── mhmenu.h │ ├── mhmsg.h │ ├── mhmsgwnd.c │ ├── mhmsgwnd.h │ ├── mhrip.c │ ├── mhrip.h │ ├── mhsplash.c │ ├── mhsplash.h │ ├── mhstatus.c │ ├── mhstatus.h │ ├── mhtext.c │ ├── mhtext.h │ ├── mnsel.uu │ ├── mnselcnt.uu │ ├── mnunsel.uu │ ├── mswproc.c │ ├── nethack.dsw │ ├── nethackw.dsp │ ├── petmark.uu │ ├── recover.dsp │ ├── resource.h │ ├── rip.uu │ ├── splash.uu │ ├── tile2bmp.dsp │ ├── tilemap.dsp │ ├── tiles.dsp │ ├── tiles.mak │ ├── uudecode.dsp │ ├── winMS.h │ ├── winhack.c │ └── winhack.rc └── petmark.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | iNetHack.xcodeproj/xcuserdata 3 | iNetHack.xcodeproj/project.xcworkspace/xcuserdata/ 4 | -------------------------------------------------------------------------------- /Classes/AsciiTileSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // AsciiTileSet.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/24/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | #import "TileSet.h" 26 | 27 | @interface AsciiTileSet : TileSet { 28 | 29 | NSArray *colorTable; 30 | 31 | } 32 | 33 | - (instancetype) initWithTileSize:(CGSize)ts; 34 | - (UIColor *) mapNetHackColor:(int)ocolor; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Classes/DMath.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMath.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/10/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | typedef NS_ENUM(NSInteger, dmathdirection) { kUp, kUpRight, kRight, kDownRight, kDown, kDownLeft, kLeft, kUpLeft }; 26 | 27 | @interface DMath : NSObject { 28 | 29 | float stdDistance; 30 | CGPoint directions[8]; 31 | 32 | } 33 | 34 | + (CGPoint) normalizedPoint:(CGPoint)ps; 35 | 36 | // p must be normalized cartesian 37 | - (dmathdirection) directionFromVector:(CGPoint)p; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Classes/DirectionInputView.h: -------------------------------------------------------------------------------- 1 | // 2 | // DirectionInputView.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/4/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | #define kNumRows (4) 26 | #define kNumCols (3) 27 | #define kNumRects (kNumRows*kNumCols) 28 | 29 | @class Shortcut; 30 | 31 | @interface DirectionInputView : UIView { 32 | 33 | CGSize tileSize; 34 | CGRect rects[kNumRects]; 35 | Shortcut *shortcuts[kNumRects]; 36 | 37 | } 38 | 39 | @property (nonatomic, readonly) CGRect *rects; 40 | @property (nonatomic, readonly) Shortcut **shortcuts; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Classes/DirectionInputViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DirectionInputViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/4/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface DirectionInputViewController : UIViewController 27 | 28 | @property (nonatomic, readonly) int direction; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Classes/ExtendedCommandViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ExtendedCommandViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/6/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface ExtendedCommandViewController : UIViewController 27 | 28 | @property (nonatomic, readonly) int result; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Classes/FileLogger.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileLogger.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 11/25/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | #include 26 | 27 | @interface FileLogger : NSObject { 28 | 29 | NSString *filename; 30 | int maxSize; 31 | FILE *fd; 32 | 33 | } 34 | 35 | + (int) openTmpFile; 36 | + (NSString *) tmpFileName; 37 | 38 | - (instancetype) initWithFile:(NSString *)path maxSize:(int)ms; 39 | - (instancetype) initWithFile:(NSString *)path; 40 | - (void) logString:(NSString *)message; 41 | - (void) flush; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Classes/HearseFileRegistry.h: -------------------------------------------------------------------------------- 1 | // 2 | // HearseFileRegistry.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 10/21/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @interface HearseFileRegistry : NSObject { 26 | 27 | NSMutableDictionary *uploads; 28 | NSMutableDictionary *downloads; 29 | 30 | } 31 | 32 | + (HearseFileRegistry *) instance; 33 | 34 | - (void) synchronize; 35 | - (void) registerDownloadedFile:(NSString *)filename withMd5:(NSString *)md5; 36 | - (BOOL) haveDownloadedFile:(NSString *)filename; 37 | - (void) clear; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Classes/ItemAmountViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ItemAmountViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/22/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @class NethackMenuItem, Window; 26 | 27 | @interface ItemAmountViewController : UIViewController { 28 | 29 | IBOutlet UIImageView *imageView; 30 | IBOutlet UILabel *itemTextLabel; 31 | IBOutlet UILabel *itemDetailTextLabel; 32 | IBOutlet UILabel *amountTextLabel; 33 | IBOutlet UISlider *amountSlider; 34 | IBOutlet UIButton *dropButton; 35 | IBOutlet UITextField *amountTextField; //iNethack2: amount text box 36 | 37 | BOOL targetsSet; 38 | 39 | } 40 | 41 | @property (nonatomic, assign) Window *menuWindow; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Classes/MainMenuViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainMenuViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 9/28/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @interface MainMenuViewController : UIViewController { 26 | 27 | IBOutlet UINavigationController *mainNavigationController; 28 | 29 | } 30 | 31 | - (IBAction) startNewGame:(id)sender; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Classes/MenuViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MenuViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 6/29/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface MenuViewController : UITableViewController { 27 | 28 | UITableView *tv; 29 | 30 | } 31 | 32 | @property (nonatomic, retain) NSArray *menuItems; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Classes/NSString+NetHack.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+NetHack.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/22/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | // some NetHack utility functions for strings 26 | @interface NSString (NetHack) 27 | 28 | // splits the given string into title and detail string 29 | - (NSArray *) splitNetHackDetails; 30 | 31 | // tries to parse an item amount 32 | - (int) parseNetHackAmount; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Classes/NSString+Regexp.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Regexp.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/6/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | // WARNING: no actual Regexp code! 26 | @interface NSString (Regexp) 27 | 28 | - (BOOL) containsString:(NSString *)s; 29 | - (BOOL) startsWithString:(NSString *)s; 30 | - (BOOL) containsChar:(char)c; 31 | - (BOOL) endsWithString:(NSString *)s; 32 | - (NSString *) substringBetweenDelimiters:(NSString *)del; 33 | - (NSString *) stringWithTrimmedWhitespaces; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Classes/NethackEvent.h: -------------------------------------------------------------------------------- 1 | // 2 | // NethackEvent.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/3/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface NethackEvent : NSObject 27 | 28 | @property (nonatomic, assign) int key; 29 | @property (nonatomic, assign) int x; 30 | @property (nonatomic, assign) int y; 31 | @property (nonatomic, assign) int mod; 32 | 33 | - (instancetype) initWithKey:(int)k x:(int)i y:(int)j mod:(int)m; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Classes/NethackEvent.m: -------------------------------------------------------------------------------- 1 | // 2 | // NethackEvent.m 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/3/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import "NethackEvent.h" 24 | 25 | @implementation NethackEvent 26 | 27 | @synthesize key, x, y, mod; 28 | 29 | - (id) init { 30 | return [self initWithKey:0 x:0 y:0 mod:0]; 31 | } 32 | 33 | - (id) initWithKey:(int)k x:(int)i y:(int)j mod:(int)m { 34 | if (self = [super init]) { 35 | } 36 | return self; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Classes/NethackEventQueue.h: -------------------------------------------------------------------------------- 1 | // 2 | // NethackEventQueue.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/3/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @class NethackEvent; 26 | 27 | @interface NethackEventQueue : NSObject { 28 | 29 | NSCondition *mutex; 30 | NSMutableArray *events; 31 | 32 | } 33 | 34 | @property (nonatomic, readonly, retain) NethackEvent *lastEvent; 35 | 36 | - (void) addNethackEvent:(NethackEvent *)e; 37 | - (void) addKeyEvent:(int)k; 38 | - (NethackEvent *) waitForNextEvent; 39 | 40 | // obsolete and untested 41 | - (BOOL) repeatLastEvent; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Classes/NethackMenuViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // NethackMenuViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 6/30/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | #define kMenuCancelled (-1) 26 | 27 | @class Window, NethackMenuItem, ItemAmountViewController; 28 | 29 | @interface NethackMenuViewController : UITableViewController { 30 | 31 | IBOutlet ItemAmountViewController *itemAmountViewController; 32 | UITableView *tv; 33 | 34 | BOOL selectAll; 35 | 36 | } 37 | 38 | @property (nonatomic, assign) Window *menuWindow; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Classes/NethackYnFunction.h: -------------------------------------------------------------------------------- 1 | // 2 | // NethackYnFunction.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/1/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface NethackYnFunction : NSObject 27 | 28 | @property (nonatomic, readonly) const char *question; 29 | @property (nonatomic, readonly) const char *choices; 30 | @property (nonatomic, readonly) char defaultChoice; 31 | @property (nonatomic, assign) int chosen; 32 | @property (nonatomic, readonly) char choice; 33 | 34 | - (instancetype) initWithQuestion:(const char *)q choices:(const char *)ch defaultChoice:(const char)c; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Classes/NethackYnFunction.m: -------------------------------------------------------------------------------- 1 | // 2 | // NethackYnFunction.m 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/1/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import "NethackYnFunction.h" 24 | 25 | @implementation NethackYnFunction 26 | 27 | @synthesize question, choices, defaultChoice, chosen; 28 | 29 | - (id) initWithQuestion:(const char *)q choices:(const char *)ch defaultChoice:(const char)c { 30 | if (self = [super init]) { 31 | question = q; 32 | choices = ch; 33 | defaultChoice = c; 34 | } 35 | return self; 36 | } 37 | 38 | - (char) choice { 39 | return choices[chosen]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Classes/RoleSelectionController.h: -------------------------------------------------------------------------------- 1 | // This file is part of iNetHack. 2 | // 3 | // iNetHack is free software: you can redistribute it and/or modify 4 | // it under the terms of the GNU General Public License as published by 5 | // the Free Software Foundation, version 2 of the License only. 6 | // 7 | // iNetHack is distributed in the hope that it will be useful, 8 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 | // GNU General Public License for more details. 11 | // 12 | // You should have received a copy of the GNU General Public License 13 | // along with iNetHack. If not, see . 14 | 15 | #import 16 | 17 | @protocol RoleSelectionControllerDelegate 18 | - (void)didCompleteRoleSelection:(id)sender; 19 | @end 20 | 21 | @interface RoleSelectionController : NSObject 22 | { 23 | UINavigationController *navigationController; 24 | } 25 | @property (assign) id delegate; 26 | + (instancetype)roleSelectorWithNavigationController:(UINavigationController *)navController; 27 | - (void)start; 28 | @end 29 | -------------------------------------------------------------------------------- /Classes/Shortcut.h: -------------------------------------------------------------------------------- 1 | // 2 | // Shortcut.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/14/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface Shortcut : NSObject { 27 | 28 | SEL selector; 29 | id target; 30 | 31 | } 32 | 33 | @property (nonatomic, readonly, copy) NSString *title; 34 | @property (nonatomic, readonly, copy) NSString *keys; 35 | @property (nonatomic, readonly) char key; 36 | 37 | - (instancetype) initWithTitle:(NSString *)t keys:(NSString *)k selector:(SEL)s target:(id)tar; 38 | - (instancetype) initWithTitle:(NSString *)t keys:(NSString *)k; 39 | - (void) invoke:(id)sender; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Classes/ShortcutView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ShortcutView.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/14/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @interface ShortcutView : UIScrollView { 26 | NSArray *shortcuts; 27 | NSMutableArray *shortcutLayers; 28 | NSInteger highlightedIndex; 29 | 30 | NSTimer *editTimer; 31 | NSInteger editIndex; 32 | } 33 | @end 34 | -------------------------------------------------------------------------------- /Classes/TextDisplayViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TextDisplayViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/10/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface TextDisplayViewController : UIViewController { 27 | UIWebView *webView; 28 | UITextView *textView; 29 | } 30 | 31 | @property (nonatomic, copy) NSString *text; 32 | @property (assign, getter=isHTML) BOOL HTML; 33 | @property (nonatomic, retain) NSCondition *condition; 34 | @property (assign, getter=isLog) BOOL log; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Classes/TextInputViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TextInputViewController.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/3/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface TextInputViewController : UIViewController { 27 | 28 | IBOutlet UITextField *tf; 29 | IBOutlet UILabel *label; 30 | BOOL returned; 31 | 32 | // avoid reentrance problems (issue 66) 33 | int reentered; 34 | } 35 | 36 | @property (nonatomic, retain) NSString *prompt; 37 | @property (nonatomic, retain) NSString *text; 38 | @property (nonatomic, assign) UIReturnKeyType returnKeyType; 39 | @property (nonatomic, assign) BOOL numerical; 40 | @property (nonatomic, retain) id target; 41 | @property (nonatomic, assign) SEL action; 42 | @property (nonatomic, retain) NSCondition *condition; 43 | @end 44 | -------------------------------------------------------------------------------- /Classes/TilePosition.h: -------------------------------------------------------------------------------- 1 | // 2 | // TilePosition.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/10/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | 26 | @interface TilePosition : NSObject 27 | 28 | @property (nonatomic, assign) int x; 29 | @property (nonatomic, assign) int y; 30 | 31 | + (instancetype) tilePositionWithX:(int)i y:(int)j; 32 | - (instancetype) initWithX:(int)i y:(int)j; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Classes/TilePosition.m: -------------------------------------------------------------------------------- 1 | // 2 | // TilePosition.m 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/10/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import "TilePosition.h" 24 | 25 | @implementation TilePosition 26 | @synthesize x, y; 27 | 28 | + (id) tilePositionWithX:(int)i y:(int)j { 29 | return [[[self alloc] initWithX:i y:j] autorelease]; 30 | } 31 | 32 | - (id) initWithX:(int)i y:(int)j { 33 | if (self = [super init]) { 34 | x = i; 35 | y = j; 36 | } 37 | return self; 38 | } 39 | 40 | - (NSString *) description { 41 | return [NSString stringWithFormat:@"%d,%d", x, y]; 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Classes/TileSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // TileSet.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 7/12/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @interface TileSet : NSObject { 26 | 27 | CGSize tileSize; 28 | CGImageRef *images; 29 | int numImages; 30 | 31 | } 32 | 33 | + (TileSet *) instance; 34 | + (int) glyphToTileIndex:(int)g; 35 | 36 | - (instancetype) initWithImage:(UIImage *)image tileSize:(CGSize)ts; 37 | - (CGImageRef) imageAt:(int)i CF_RETURNS_NOT_RETAINED; 38 | - (CGImageRef) imageForGlyph:(int)g atX:(int)x y:(int)y CF_RETURNS_NOT_RETAINED; 39 | - (CGImageRef) imageForGlyph:(int)g CF_RETURNS_NOT_RETAINED; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Classes/TouchInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchInfo.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/6/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @interface TouchInfo : NSObject 26 | 27 | @property (nonatomic, assign) BOOL pinched; 28 | @property (nonatomic, assign) BOOL moved; 29 | @property (nonatomic, assign) BOOL doubleTap; 30 | @property (nonatomic, assign) CGPoint initialLocation; 31 | 32 | /// only updated on -init, for your own use 33 | @property (nonatomic, assign) CGPoint currentLocation; 34 | 35 | - (instancetype) initWithTouch:(UITouch *)t; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Classes/TouchInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // TouchInfo.m 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/6/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import "TouchInfo.h" 24 | 25 | @implementation TouchInfo 26 | 27 | @synthesize pinched, moved, initialLocation, currentLocation, doubleTap; 28 | 29 | - (id) initWithTouch:(UITouch *)t { 30 | if (self = [super init]) { 31 | self.initialLocation = self.currentLocation = [t locationInView:t.view]; 32 | } 33 | return self; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Classes/TouchInfoStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // TouchInfoStore.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 8/6/09. 6 | // Copyright 2009 Dirk Zimmermann. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @class TouchInfo; 26 | 27 | @interface TouchInfoStore : NSObject { 28 | 29 | NSMutableDictionary *currentTouchInfos; 30 | 31 | } 32 | 33 | @property (nonatomic, readonly) NSInteger count; 34 | @property (nonatomic, assign) NSTimeInterval singleTapTimestamp; 35 | 36 | - (void) storeTouches:(NSSet *)touches; 37 | - (TouchInfo *) touchInfoForTouch:(UITouch *)t; 38 | - (void) removeTouches:(NSSet *)touches; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Classes/iNethackAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // iNethackAppDelegate.h 3 | // iNetHack 4 | // 5 | // Created by dirk on 6/16/09. 6 | // Copyright Dirk Zimmermann 2009. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | @class MainMenuViewController; 26 | 27 | @interface iNethackAppDelegate : NSObject { 28 | IBOutlet UINavigationController *mainNavigationController; 29 | IBOutlet MainMenuViewController *mainMenuViewController; 30 | NSMutableArray *badBones; 31 | } 32 | 33 | @property (nonatomic, retain) IBOutlet UIWindow *window; 34 | 35 | - (BOOL) checkNetHackDirectories; 36 | - (void) launchNetHack; 37 | - (void) launchHearse; 38 | 39 | @end 40 | 41 | -------------------------------------------------------------------------------- /DirectionInputView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | get-task-allow 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ExtendedCommandView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Icon-152x152.png -------------------------------------------------------------------------------- /Icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Icon-76x76.png -------------------------------------------------------------------------------- /Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Icon.png -------------------------------------------------------------------------------- /MenuViewLeaf.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | This is iNetHack, the NetHack iOS port, originally released in 2009. 4 | 5 | This project has been moved from: 6 | 7 | http://code.google.com/p/inethack/ 8 | 9 | ## Authors of this port: 10 | 11 | * Dirk Zimmermann http://blog.dirkz.com (initial port 2009) 12 | * Jeff King http://futureshocksoftware.com/ (updated for iOS 8 in 2015) 13 | 14 | ## Contributors: 15 | 16 | * Kevin Hill http://chronosoft.com 17 | * Ciarán Walsh http://ciaranwal.sh 18 | 19 | The NetHack core code is included in the directory `nethack`. It was patched for 32/64/bit compatibility in 2015 by Jeff King. 20 | 21 | ## Licenses 22 | 23 | * iOS Port: GPL v2 (see COPYING) 24 | * NetHack: NETHACK GENERAL PUBLIC LICENSE (see `nethack/dat/license`) 25 | -------------------------------------------------------------------------------- /Settings.bundle/advancedgameplay.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 12 | StringsTable 13 | Root 14 | PreferenceSpecifiers 15 | 16 | 17 | Type 18 | PSGroupSpecifier 19 | Title 20 | Advanced 21 | 22 | 23 | Type 24 | PSToggleSwitchSpecifier 25 | Title 26 | Wizard Mode 27 | Key 28 | wizard 29 | DefaultValue 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Settings.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Settings.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /Settings.bundle/hearse.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | StringsTable 6 | Root 7 | PreferenceSpecifiers 8 | 9 | 10 | Type 11 | PSGroupSpecifier 12 | Title 13 | Hearse 14 | 15 | 16 | Type 17 | PSTextFieldSpecifier 18 | Title 19 | ID 20 | Key 21 | hearseId 22 | AutocapitalizationType 23 | Words 24 | AutocorrectionType 25 | No 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /Tilesets/absurd32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/absurd32.png -------------------------------------------------------------------------------- /Tilesets/chozo32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/chozo32.png -------------------------------------------------------------------------------- /Tilesets/chozo32b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/chozo32b.png -------------------------------------------------------------------------------- /Tilesets/dawnhack32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/dawnhack32.png -------------------------------------------------------------------------------- /Tilesets/nevanda32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/nevanda32.png -------------------------------------------------------------------------------- /Tilesets/nevanda32black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/nevanda32black.png -------------------------------------------------------------------------------- /Tilesets/nextstep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/nextstep.png -------------------------------------------------------------------------------- /Tilesets/nhtiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/nhtiles.png -------------------------------------------------------------------------------- /Tilesets/tiles32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/Tilesets/tiles32.png -------------------------------------------------------------------------------- /gfx/nethack logo 512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/gfx/nethack logo 512.png -------------------------------------------------------------------------------- /gfx/screenshot landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/gfx/screenshot landscape.png -------------------------------------------------------------------------------- /gfx/screenshot portrait 002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/gfx/screenshot portrait 002.png -------------------------------------------------------------------------------- /gfx/screenshot portrait 003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/gfx/screenshot portrait 003.png -------------------------------------------------------------------------------- /gfx/screenshot portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/gfx/screenshot portrait.png -------------------------------------------------------------------------------- /iNetHack.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-60.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-72.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-72@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-40.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-50.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/Icon@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images-2.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images-2.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-60.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon-60.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon-60@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Icon-60@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-60.imageset/Icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-60.imageset/Icon-60.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-60.imageset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-60.imageset/Icon-60@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-60.imageset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-60.imageset/Icon-60@3x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-72.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon-72.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon-72@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-72.imageset/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-72.imageset/Icon-72.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-72.imageset/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-72.imageset/Icon-72@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-76.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon-76.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon-76@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-76.imageset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-76.imageset/Icon-76.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-76.imageset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-76.imageset/Icon-76@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-40.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon-Small-40.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon-Small-40@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Icon-Small-40@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-40.imageset/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small-40.imageset/Icon-Small-40.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-40.imageset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small-40.imageset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-40.imageset/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small-40.imageset/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-50.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon-Small-50.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon-Small-50@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-50.imageset/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small-50.imageset/Icon-Small-50.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small-50.imageset/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small-50.imageset/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon-Small.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon-Small@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "Icon-Small@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small.imageset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small.imageset/Icon-Small.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small.imageset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small.imageset/Icon-Small@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon-Small.imageset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon-Small.imageset/Icon-Small@3x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "Icon.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "Icon@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon.imageset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon.imageset/Icon.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/Icon.imageset/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/Icon.imageset/Icon@2x.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "filename" : "launch-640-960.png", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "retina4", 15 | "filename" : "launch-640-1136.png", 16 | "minimum-system-version" : "7.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | } 20 | ], 21 | "info" : { 22 | "version" : 1, 23 | "author" : "xcode" 24 | } 25 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/LaunchImage.launchimage/launch-640-1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/LaunchImage.launchimage/launch-640-1136.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/LaunchImage.launchimage/launch-640-960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/LaunchImage.launchimage/launch-640-960.png -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/iTunesArtwork.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "iTunesArtwork@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /iNetHack2/Images.xcassets/iTunesArtwork.imageset/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/iNetHack2/Images.xcassets/iTunesArtwork.imageset/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /iNethack_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'iNethack' target in the 'iNethack' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // iNetHack 4 | // 5 | // Created by dirk on 6/16/09. 6 | // Copyright Dirk Zimmermann 2009. All rights reserved. 7 | // 8 | 9 | // This file is part of iNetHack. 10 | // 11 | // iNetHack is free software: you can redistribute it and/or modify 12 | // it under the terms of the GNU General Public License as published by 13 | // the Free Software Foundation, version 2 of the License only. 14 | // 15 | // iNetHack is distributed in the hope that it will be useful, 16 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | // GNU General Public License for more details. 19 | // 20 | // You should have received a copy of the GNU General Public License 21 | // along with iNetHack. If not, see . 22 | 23 | #import 24 | 25 | int main(int argc, char *argv[]) { 26 | 27 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 28 | int retVal = UIApplicationMain(argc, argv, nil, nil); 29 | [pool release]; 30 | return retVal; 31 | } 32 | -------------------------------------------------------------------------------- /nethack/dat/Arc-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Arc-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Arc-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Arc-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Arc-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Arc-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Arc-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Arc-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Arc-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Arc-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Bar-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Bar-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Bar-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Bar-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Bar-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Bar-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Bar-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Bar-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Bar-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Bar-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Cav-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Cav-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Cav-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Cav-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Cav-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Cav-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Cav-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Cav-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Cav-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Cav-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Hea-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Hea-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Hea-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Hea-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Hea-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Hea-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Hea-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Hea-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Hea-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Hea-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Kni-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Kni-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Kni-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Kni-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Kni-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Kni-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Kni-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Kni-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Kni-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Kni-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Mon-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Mon-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Mon-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Mon-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Mon-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Mon-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Mon-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Mon-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Mon-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Mon-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Pri-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Pri-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Pri-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Pri-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Pri-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Pri-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Pri-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Pri-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Pri-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Pri-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Ran-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Ran-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Ran-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Ran-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Ran-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Ran-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Ran-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Ran-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Ran-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Ran-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Rog-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Rog-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Rog-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Rog-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Rog-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Rog-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Rog-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Rog-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Rog-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Rog-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Sam-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Sam-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Sam-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Sam-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Sam-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Sam-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Sam-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Sam-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Sam-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Sam-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Tou-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Tou-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Tou-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Tou-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Tou-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Tou-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Tou-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Tou-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Tou-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Tou-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Val-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Val-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Val-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Val-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Val-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Val-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Val-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Val-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Val-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Val-strt.lev -------------------------------------------------------------------------------- /nethack/dat/Wiz-fila.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Wiz-fila.lev -------------------------------------------------------------------------------- /nethack/dat/Wiz-filb.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Wiz-filb.lev -------------------------------------------------------------------------------- /nethack/dat/Wiz-goal.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Wiz-goal.lev -------------------------------------------------------------------------------- /nethack/dat/Wiz-loca.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Wiz-loca.lev -------------------------------------------------------------------------------- /nethack/dat/Wiz-strt.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/Wiz-strt.lev -------------------------------------------------------------------------------- /nethack/dat/air.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/air.lev -------------------------------------------------------------------------------- /nethack/dat/asmodeus.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/asmodeus.lev -------------------------------------------------------------------------------- /nethack/dat/astral.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/astral.lev -------------------------------------------------------------------------------- /nethack/dat/baalz.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/baalz.lev -------------------------------------------------------------------------------- /nethack/dat/bigrm-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/bigrm-1.lev -------------------------------------------------------------------------------- /nethack/dat/bigrm-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/bigrm-2.lev -------------------------------------------------------------------------------- /nethack/dat/bigrm-3.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/bigrm-3.lev -------------------------------------------------------------------------------- /nethack/dat/bigrm-4.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/bigrm-4.lev -------------------------------------------------------------------------------- /nethack/dat/bigrm-5.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/bigrm-5.lev -------------------------------------------------------------------------------- /nethack/dat/castle.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/castle.lev -------------------------------------------------------------------------------- /nethack/dat/dungeon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/dungeon -------------------------------------------------------------------------------- /nethack/dat/earth.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/earth.lev -------------------------------------------------------------------------------- /nethack/dat/fakewiz1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/fakewiz1.lev -------------------------------------------------------------------------------- /nethack/dat/fakewiz2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/fakewiz2.lev -------------------------------------------------------------------------------- /nethack/dat/fire.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/fire.lev -------------------------------------------------------------------------------- /nethack/dat/juiblex.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/juiblex.lev -------------------------------------------------------------------------------- /nethack/dat/knox.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/knox.lev -------------------------------------------------------------------------------- /nethack/dat/medusa-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/medusa-1.lev -------------------------------------------------------------------------------- /nethack/dat/medusa-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/medusa-2.lev -------------------------------------------------------------------------------- /nethack/dat/minefill.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minefill.lev -------------------------------------------------------------------------------- /nethack/dat/minend-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minend-1.lev -------------------------------------------------------------------------------- /nethack/dat/minend-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minend-2.lev -------------------------------------------------------------------------------- /nethack/dat/minend-3.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minend-3.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-1.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-2.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-3.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-3.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-4.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-4.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-5.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-5.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-6.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-6.lev -------------------------------------------------------------------------------- /nethack/dat/minetn-7.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/minetn-7.lev -------------------------------------------------------------------------------- /nethack/dat/news: -------------------------------------------------------------------------------- 1 | Welcome to iNethack, the iPhone NetHack port! 2 | 3 | To move, simply tap into the direction you want to move 4 | Tap and hold to run (until you hit into someting) 5 | Bring up the main menu by tapping at the center part of the screen 6 | Licensed under the NETHACK GENERAL PUBLIC LICENSE. You can access it via the main menu 7 | 8 | Have fun, and good luck :) 9 | 10 | This port (c) 2009 Dirk Zimmermann (nethack@dirkz.com) -------------------------------------------------------------------------------- /nethack/dat/options: -------------------------------------------------------------------------------- 1 | 2 | NetHack version 3.4.3 3 | 4 | Options compiled into this edition: 5 | 6 | color, data file compression, debug mode, Elbereth, 7 | experience points on status line, 8 | insurance files for recovering from crashes, Keystone Kops, log file, 9 | mail daemon, news file, redo command, rogue level, saddles and riding, 10 | screen clipping, seduction, shell command, sinks, suspend command, 11 | terminal info library, tourists, walled mazes, 12 | save and bones files accepted from versions 3.4.0 through 3.4.3, 13 | basic NetHack features. 14 | 15 | Supported windowing systems: 16 | 17 | with a default of tty. 18 | 19 | -------------------------------------------------------------------------------- /nethack/dat/oracle.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/oracle.lev -------------------------------------------------------------------------------- /nethack/dat/orcus.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/orcus.lev -------------------------------------------------------------------------------- /nethack/dat/quest.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/quest.dat -------------------------------------------------------------------------------- /nethack/dat/quest_levs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/quest_levs -------------------------------------------------------------------------------- /nethack/dat/sanctum.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/sanctum.lev -------------------------------------------------------------------------------- /nethack/dat/soko1-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko1-1.lev -------------------------------------------------------------------------------- /nethack/dat/soko1-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko1-2.lev -------------------------------------------------------------------------------- /nethack/dat/soko2-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko2-1.lev -------------------------------------------------------------------------------- /nethack/dat/soko2-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko2-2.lev -------------------------------------------------------------------------------- /nethack/dat/soko3-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko3-1.lev -------------------------------------------------------------------------------- /nethack/dat/soko3-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko3-2.lev -------------------------------------------------------------------------------- /nethack/dat/soko4-1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko4-1.lev -------------------------------------------------------------------------------- /nethack/dat/soko4-2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/soko4-2.lev -------------------------------------------------------------------------------- /nethack/dat/spec_levs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/spec_levs -------------------------------------------------------------------------------- /nethack/dat/tower1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/tower1.lev -------------------------------------------------------------------------------- /nethack/dat/tower2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/tower2.lev -------------------------------------------------------------------------------- /nethack/dat/tower3.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/tower3.lev -------------------------------------------------------------------------------- /nethack/dat/valley.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/valley.lev -------------------------------------------------------------------------------- /nethack/dat/water.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/water.lev -------------------------------------------------------------------------------- /nethack/dat/wizard1.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/wizard1.lev -------------------------------------------------------------------------------- /nethack/dat/wizard2.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/wizard2.lev -------------------------------------------------------------------------------- /nethack/dat/wizard3.lev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/dat/wizard3.lev -------------------------------------------------------------------------------- /nethack/dat/wizhelp: -------------------------------------------------------------------------------- 1 | Debug-Mode Quick Reference: 2 | 3 | ^E == detect secret doors and traps. 4 | ^F == do magic mapping. 5 | ^G == create monster. 6 | ^I == identify items in pack. 7 | ^O == tell locations of special levels. 8 | ^T == do intra-level teleport. 9 | ^V == do trans-level teleport. 10 | ^W == make wish. 11 | ^X == show attributes including intrinsic attributes. 12 | 13 | #levelchange == change experience level 14 | #lightsources == show mobile light sources 15 | #monpolycontrol == control monster polymorphs 16 | #panic == panic test 17 | #polyself == polymorph self 18 | #seenv == show seen vectors 19 | #stats == show memory statistics 20 | #timeout == look at timeout queue 21 | #vision == show vision array 22 | #wmode == show wall modes 23 | 24 | -------------------------------------------------------------------------------- /nethack/doc/fixes31.3: -------------------------------------------------------------------------------- 1 | avoid divide by zero crash for eggs produced from horn of plenty 2 | prevent monsters from eating the invocation tools or Rider corpses 3 | make artifacts much less likely to be destroyed 4 | fix freezing lava in front a raised drawbridge 5 | fix digging pits in front of raised drawbridge; improve digging next to pools 6 | since random teleports have no --More-- prompt, have them purge REDO data 7 | to avoid repeating previous command before noticing changed context 8 | make magic portals function for monsters 9 | make numerous priest blessings increasingly rare, with an upper limit 10 | fix missing quotation marks in quest speech 11 | prevent monsters like killer bees from opening tins 12 | add: keep track of # player deaths, save game start time in struct u 13 | don't used "uncursed" with gold in containers in ending inventory display 14 | 15 | PC: Fix black/gray/white display problem 16 | 17 | X11: set input text portion of the dialog box so it is the width of the box 18 | X11: fix message window seperator redraw problem (thanks to 19 | Ivan D. Brawley ) 20 | VMS: avoid false "trickery" detection for bonesX#.##;1 levels 21 | VMS: prevent display of really long broadcast messages from clobbering stack 22 | VMS: prevent endless input loop upon remote terminal disconnect 23 | -------------------------------------------------------------------------------- /nethack/include/align.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)align.h 3.4 1991/12/29 */ 2 | /* Copyright (c) Mike Stephenson, Izchak Miller 1991. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef ALIGN_H 6 | #define ALIGN_H 7 | 8 | typedef schar aligntyp; /* basic alignment type */ 9 | 10 | typedef struct align { /* alignment & record */ 11 | aligntyp type; 12 | int record; 13 | } align; 14 | 15 | /* bounds for "record" -- respect initial alignments of 10 */ 16 | #define ALIGNLIM (10L + (moves/200L)) 17 | 18 | #define A_NONE (-128) /* the value range of type */ 19 | 20 | #define A_CHAOTIC (-1) 21 | #define A_NEUTRAL 0 22 | #define A_LAWFUL 1 23 | 24 | #define A_COALIGNED 1 25 | #define A_OPALIGNED (-1) 26 | 27 | #define AM_NONE 0 28 | #define AM_CHAOTIC 1 29 | #define AM_NEUTRAL 2 30 | #define AM_LAWFUL 4 31 | 32 | #define AM_MASK 7 33 | 34 | #define AM_SPLEV_CO 3 35 | #define AM_SPLEV_NONCO 7 36 | 37 | #define Amask2align(x) ((aligntyp) ((!(x)) ? A_NONE \ 38 | : ((x) == AM_LAWFUL) ? A_LAWFUL : ((int)x) - 2)) 39 | #define Align2amask(x) (((x) == A_NONE) ? AM_NONE \ 40 | : ((x) == A_LAWFUL) ? AM_LAWFUL : (x) + 2) 41 | 42 | #endif /* ALIGN_H */ 43 | -------------------------------------------------------------------------------- /nethack/include/attrib.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)attrib.h 3.4 1990/22/02 */ 2 | /* Copyright 1988, Mike Stephenson */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* attrib.h - Header file for character class processing. */ 6 | 7 | #ifndef ATTRIB_H 8 | #define ATTRIB_H 9 | 10 | #define A_STR 0 11 | #define A_INT 1 12 | #define A_WIS 2 13 | #define A_DEX 3 14 | #define A_CON 4 15 | #define A_CHA 5 16 | 17 | #define A_MAX 6 /* used in rn2() selection of attrib */ 18 | 19 | #define ABASE(x) (u.acurr.a[x]) 20 | #define ABON(x) (u.abon.a[x]) 21 | #define AEXE(x) (u.aexe.a[x]) 22 | #define ACURR(x) (acurr(x)) 23 | #define ACURRSTR (acurrstr()) 24 | /* should be: */ 25 | /* #define ACURR(x) (ABON(x) + ATEMP(x) + (Upolyd ? MBASE(x) : ABASE(x)) */ 26 | #define MCURR(x) (u.macurr.a[x]) 27 | #define AMAX(x) (u.amax.a[x]) 28 | #define MMAX(x) (u.mamax.a[x]) 29 | 30 | #define ATEMP(x) (u.atemp.a[x]) 31 | #define ATIME(x) (u.atime.a[x]) 32 | 33 | /* KMH -- Conveniences when dealing with strength constants */ 34 | #define STR18(x) (18+(x)) /* 18/xx */ 35 | #define STR19(x) (100+(x)) /* For 19 and above */ 36 | 37 | struct attribs { 38 | schar a[A_MAX]; 39 | }; 40 | 41 | #define ATTRMAX(x) ((x == A_STR && Upolyd && strongmonst(youmonst.data)) ? STR18(100) : urace.attrmax[x]) 42 | #define ATTRMIN(x) (urace.attrmin[x]) 43 | 44 | #endif /* ATTRIB_H */ 45 | -------------------------------------------------------------------------------- /nethack/include/beconf.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)beconf.h 3.4 1998/07/08 */ 2 | /* Copyright (c) Dean Luick 1996. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* Configuration for Be Inc.'s BeOS */ 6 | 7 | #ifndef BECONF_H 8 | #define BECONF_H 9 | 10 | /* 11 | * We must use UNWIDENED_PROTOTYPES because we mix C++ and C. 12 | */ 13 | 14 | #define index strchr 15 | #define rindex strrchr 16 | #define Rand rand /* Be should have a better rand function! */ 17 | #define tgetch getchar 18 | #define FCMASK 0666 19 | #define PORT_ID "BeOS" 20 | #define TEXTCOLOR 21 | #define POSIX_TYPES 22 | #define SIG_RET_TYPE __signal_func_ptr 23 | 24 | #include /* for time_t */ 25 | #include /* for lseek() */ 26 | 27 | /* could go in extern.h, under bemain.c (or something..) */ 28 | void regularize(char *); 29 | 30 | 31 | /* instead of including system.h... */ 32 | #include 33 | #include 34 | #include 35 | 36 | #endif /* BECONF_H */ 37 | -------------------------------------------------------------------------------- /nethack/include/bitmfile.h: -------------------------------------------------------------------------------- 1 | /****************************\ 2 | * Bitmap mit Farbtabelle als * 3 | * Graphik-Datei speichern * 4 | * Autor: Gabriel Schmidt * 5 | * (c} 1992 by MAXON-Computer * 6 | * -> Header-Datei * 7 | \****************************/ 8 | 9 | #ifndef H_TO_FILE 10 | #define H_TO_FILE 11 | 12 | /* #include */ 13 | #define UWORD unsigned short 14 | #define ULONG unsigned long 15 | #define UBYTE unsigned char 16 | 17 | #define XIMG_MAGIC 0x58494D47 18 | 19 | 20 | typedef enum { IMG, XIMG } FILE_TYP; 21 | 22 | const char *get_file_ext(FILE_TYP typ); 23 | 24 | struct RGB 25 | { 26 | UWORD r, g, b; 27 | }; 28 | 29 | int bitmap_to_file(FILE_TYP typ, int ww, int wh, 30 | unsigned int pwx, unsigned int pwy, 31 | unsigned int planes, unsigned int colors, 32 | const char *filename, 33 | void (*get_color) (unsigned int colind, struct RGB *rgb) , 34 | void (*get_pixel) (int x, int y, unsigned int *colind) ) ; 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /nethack/include/coord.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)coord.h 3.4 1990/02/22 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef COORD_H 6 | #define COORD_H 7 | 8 | typedef struct nhcoord { 9 | xchar x,y; 10 | } coord; 11 | 12 | #endif /* COORD_H */ 13 | -------------------------------------------------------------------------------- /nethack/include/date.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)date.h 3.4 2002/02/03 */ 2 | 3 | /* This source file is generated by 'makedefs'. Do not edit. */ 4 | #define BUILD_DATE "Fri Dec 18 15:01:13 2009" 5 | #define BUILD_TIME (1261144873L) 6 | 7 | #define VERSION_NUMBER 0x03040300UL 8 | #define VERSION_FEATURES 0x001e0cc6UL 9 | #define IGNORED_FEATURES 0x00800000UL 10 | #define VERSION_SANITY1 0x211b117eUL 11 | #define VERSION_SANITY2 0xa481a5d0UL 12 | 13 | #define VERSION_STRING "3.4.3" 14 | #define VERSION_ID \ 15 | "Unix NetHack Version 3.4.3 - last build Fri Dec 18 15:01:13 2009." 16 | 17 | -------------------------------------------------------------------------------- /nethack/include/edog.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)edog.h 3.4 1997/10/23 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef EDOG_H 6 | #define EDOG_H 7 | 8 | /* various types of food, the lower, the better liked. */ 9 | 10 | #define DOGFOOD 0 11 | #define CADAVER 1 12 | #define ACCFOOD 2 13 | #define MANFOOD 3 14 | #define APPORT 4 15 | #define POISON 5 16 | #define UNDEF 6 17 | #define TABU 7 18 | 19 | struct edog { 20 | long droptime; /* moment dog dropped object */ 21 | unsigned dropdist; /* dist of drpped obj from @ */ 22 | int apport; /* amount of training */ 23 | long whistletime; /* last time he whistled */ 24 | long hungrytime; /* will get hungry at this time */ 25 | coord ogoal; /* previous goal location */ 26 | int abuse; /* track abuses to this pet */ 27 | int revivals; /* count pet deaths */ 28 | int mhpmax_penalty; /* while starving, points reduced */ 29 | Bitfield(killed_by_u, 1); /* you attempted to kill him */ 30 | }; 31 | #define EDOG(mon) ((struct edog *)&(mon)->mextra[0]) 32 | 33 | #endif /* EDOG_H */ 34 | -------------------------------------------------------------------------------- /nethack/include/emin.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)emin.h 3.4 1997/05/01 */ 2 | /* Copyright (c) David Cohrs, 1990. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef EMIN_H 6 | #define EMIN_H 7 | 8 | struct emin { 9 | aligntyp min_align; /* alignment of minion */ 10 | }; 11 | 12 | #define EMIN(mon) ((struct emin *)&(mon)->mextra[0]) 13 | 14 | #endif /* EMIN_H */ 15 | -------------------------------------------------------------------------------- /nethack/include/engrave.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)engrave.h 3.4 1991/07/31 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef ENGRAVE_H 6 | #define ENGRAVE_H 7 | 8 | struct engr { 9 | struct engr *nxt_engr; 10 | char *engr_txt; 11 | xchar engr_x, engr_y; 12 | unsigned engr_lth; /* for save & restore; not length of text */ 13 | long engr_time; /* moment engraving was (will be) finished */ 14 | xchar engr_type; 15 | #define DUST 1 16 | #define ENGRAVE 2 17 | #define BURN 3 18 | #define MARK 4 19 | #define ENGR_BLOOD 5 20 | #define HEADSTONE 6 21 | #define N_ENGRAVE 6 22 | }; 23 | 24 | #define newengr(lth) (struct engr *)alloc((unsigned)(lth) + sizeof(struct engr)) 25 | #define dealloc_engr(engr) free((genericptr_t) (engr)) 26 | 27 | #endif /* ENGRAVE_H */ 28 | -------------------------------------------------------------------------------- /nethack/include/epri.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)epri.h 3.4 1997/05/01 */ 2 | /* Copyright (c) Izchak Miller, 1989. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef EPRI_H 6 | #define EPRI_H 7 | 8 | struct epri { 9 | aligntyp shralign; /* alignment of priest's shrine */ 10 | /* leave as first field to match emin */ 11 | schar shroom; /* index in rooms */ 12 | coord shrpos; /* position of shrine */ 13 | d_level shrlevel; /* level (& dungeon) of shrine */ 14 | }; 15 | 16 | #define EPRI(mon) ((struct epri *)&(mon)->mextra[0]) 17 | 18 | /* A priest without ispriest is a roaming priest without a shrine, so 19 | * the fields (except shralign, which becomes only the priest alignment) 20 | * are available for reuse. 21 | */ 22 | #define renegade shroom 23 | 24 | #endif /* EPRI_H */ 25 | -------------------------------------------------------------------------------- /nethack/include/func_tab.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)func_tab.h 3.4 1992/04/03 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef FUNC_TAB_H 6 | #define FUNC_TAB_H 7 | 8 | struct func_tab { 9 | char f_char; 10 | boolean can_if_buried; 11 | int NDECL((*f_funct)); 12 | const char *f_text; 13 | }; 14 | 15 | struct ext_func_tab { 16 | const char *ef_txt, *ef_desc; 17 | int NDECL((*ef_funct)); 18 | boolean can_if_buried; 19 | }; 20 | 21 | extern struct ext_func_tab extcmdlist[]; 22 | 23 | #endif /* FUNC_TAB_H */ 24 | -------------------------------------------------------------------------------- /nethack/include/lev.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)lev.h 3.4 1994/03/18 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* Common include file for save and restore routines */ 6 | 7 | #ifndef LEV_H 8 | #define LEV_H 9 | 10 | #define COUNT_SAVE 0x1 11 | #define WRITE_SAVE 0x2 12 | #define FREE_SAVE 0x4 13 | 14 | /* operations of the various saveXXXchn & co. routines */ 15 | #define perform_bwrite(mode) ((mode) & (COUNT_SAVE|WRITE_SAVE)) 16 | #define release_data(mode) ((mode) & FREE_SAVE) 17 | 18 | /* The following are used in mkmaze.c */ 19 | struct container { 20 | struct container *next; 21 | xchar x, y; 22 | short what; 23 | genericptr_t list; 24 | }; 25 | 26 | #define CONS_OBJ 0 27 | #define CONS_MON 1 28 | #define CONS_HERO 2 29 | #define CONS_TRAP 3 30 | 31 | struct bubble { 32 | xchar x, y; /* coordinates of the upper left corner */ 33 | schar dx, dy; /* the general direction of the bubble's movement */ 34 | uchar *bm; /* pointer to the bubble bit mask */ 35 | struct bubble *prev, *next; /* need to traverse the list up and down */ 36 | struct container *cons; 37 | }; 38 | 39 | /* used in light.c */ 40 | typedef struct ls_t { 41 | struct ls_t *next; 42 | xchar x, y; /* source's position */ 43 | short range; /* source's current range */ 44 | short flags; 45 | short type; /* type of light source */ 46 | genericptr_t id; /* source's identifier */ 47 | } light_source; 48 | 49 | #endif /* LEV_H */ 50 | -------------------------------------------------------------------------------- /nethack/include/mac-carbon.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mac-carbon.h 3.4 2003/06/01 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 2003. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* Compiler prefix file for the Macintosh Carbon port. 6 | * 7 | * IMPORTANT: This file is intended only as a compiler prefix 8 | * file and must NEVER be included by other source (.c or .h) 9 | * files. 10 | * 11 | * Usage for MacOS X Project Builder: 12 | * Project menu -> Edit Active Target '_target_' -> 13 | * target settings dialog -> Settings -> Simple View -> 14 | * GCC Compiler Settings -> 15 | * set "Prefix Header" to include/mac-carbon.h 16 | * 17 | * Usage for Metrowerks CodeWarrior: 18 | * Edit menu -> _target_ Settings -> Language Settings -> 19 | * C/C++ Language -> 20 | * set "Prefix File" to include/mac-carbon.h 21 | */ 22 | 23 | #define MAC 24 | #undef UNIX 25 | 26 | /* May already be defined by CodeWarrior as 0 or 1 */ 27 | #ifdef TARGET_API_MAC_CARBON 28 | # undef TARGET_API_MAC_CARBON 29 | #endif 30 | #define TARGET_API_MAC_CARBON 1 31 | 32 | #define GCC_WARN 33 | -------------------------------------------------------------------------------- /nethack/include/mac-qt.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mac-qt.h 3.4 2003/06/01 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 2003. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* Compiler prefix file for the Macintosh Qt port. 6 | * 7 | * IMPORTANT: This file is intended only as a compiler prefix 8 | * file and must NEVER be included by other source (.c or .h) 9 | * files. 10 | * 11 | * Usage for MacOS X Project Builder: 12 | * Project menu -> Edit Active Target '_target_' -> 13 | * target settings dialog -> Settings -> Simple View -> 14 | * GCC Compiler Settings -> 15 | * set "Prefix Header" to include/mac-qt.h 16 | * 17 | * Usage for Metrowerks CodeWarrior: 18 | * Edit menu -> _target_ Settings -> Language Settings -> 19 | * C/C++ Language -> 20 | * set "Prefix File" to include/mac-qt.h 21 | */ 22 | 23 | #undef MAC 24 | #define UNIX 25 | #define BSD 26 | 27 | /* May already be defined by CodeWarrior as 0 or 1 */ 28 | #ifdef TARGET_API_MAC_CARBON 29 | # undef TARGET_API_MAC_CARBON 30 | #endif 31 | #define TARGET_API_MAC_CARBON 0 32 | 33 | #define GCC_WARN 34 | -------------------------------------------------------------------------------- /nethack/include/mac-term.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mac-term.h 3.4 2003/06/01 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 2003. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* Compiler prefix file for the MacOS X Terminal.app port. 6 | * 7 | * IMPORTANT: This file is intended only as a compiler prefix 8 | * file and must NEVER be included by other source (.c or .h) 9 | * files. 10 | * 11 | * Usage for MacOS X Project Builder: 12 | * Project menu -> Edit Active Target '_target_' -> 13 | * target settings dialog -> Settings -> Simple View -> 14 | * GCC Compiler Settings -> 15 | * set "Prefix Header" to include/mac-term.h 16 | * 17 | * Usage for Metrowerks CodeWarrior: 18 | * Edit menu -> _target_ Settings -> Language Settings -> 19 | * C/C++ Language -> 20 | * set "Prefix File" to include/mac-term.h 21 | */ 22 | 23 | /* Stuff needed for the core of NetHack */ 24 | #undef MAC 25 | #define UNIX 26 | #define BSD 27 | #define __FreeBSD__ /* Darwin is based on FreeBSD */ 28 | #define GCC_WARN 29 | 30 | /* May already be defined by CodeWarrior as 0 or 1 */ 31 | #ifdef TARGET_API_MAC_CARBON 32 | # undef TARGET_API_MAC_CARBON 33 | #endif 34 | #define TARGET_API_MAC_CARBON 0 /* Not Carbon */ 35 | -------------------------------------------------------------------------------- /nethack/include/macpopup.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)macpopup.h 3.4 1999/10/25 */ 2 | /* Copyright (c) Nethack Develpment Team, 1999. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef MACPOPUP_H 6 | # define MACPOPUP_H 7 | 8 | /* ### mmodal.c ### */ 9 | 10 | extern void FlashButton(DialogRef, short); 11 | extern char queued_resp(char *resp); 12 | extern char topl_yn_function(const char *query, const char *resp, char def); 13 | extern int get_line_from_key_queue(char *bufp); 14 | 15 | #endif /* MACPOPUP_H */ 16 | -------------------------------------------------------------------------------- /nethack/include/mail.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mail.h 3.4 1991/10/11 */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | /* used by ckmailstatus() to pass information to the mail-daemon in newmail() */ 5 | 6 | #ifndef MAIL_H 7 | #define MAIL_H 8 | 9 | #define MSG_OTHER 0 /* catch-all; none of the below... */ 10 | #define MSG_MAIL 1 /* unimportant, uninteresting mail message */ 11 | #define MSG_CALL 2 /* annoying phone/talk/chat-type interruption */ 12 | 13 | struct mail_info { 14 | int message_typ; /* MSG_foo value */ 15 | const char *display_txt; /* text for daemon to verbalize */ 16 | const char *object_nam; /* text to tag object with */ 17 | const char *response_cmd; /* command to eventually execute */ 18 | }; 19 | 20 | #endif /* MAIL_H */ 21 | -------------------------------------------------------------------------------- /nethack/include/mfndpos.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mfndpos.h 3.4 2002/04/06 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef MFNDPOS_H 6 | #define MFNDPOS_H 7 | 8 | #define ALLOW_TRAPS 0x00020000L /* can enter traps */ 9 | #define ALLOW_U 0x00040000L /* can attack you */ 10 | #define ALLOW_M 0x00080000L /* can attack other monsters */ 11 | #define ALLOW_TM 0x00100000L /* can attack tame monsters */ 12 | #define ALLOW_ALL (ALLOW_U | ALLOW_M | ALLOW_TM | ALLOW_TRAPS) 13 | #define NOTONL 0x00200000L /* avoids direct line to player */ 14 | #define OPENDOOR 0x00400000L /* opens closed doors */ 15 | #define UNLOCKDOOR 0x00800000L /* unlocks locked doors */ 16 | #define BUSTDOOR 0x01000000L /* breaks any doors */ 17 | #define ALLOW_ROCK 0x02000000L /* pushes rocks */ 18 | #define ALLOW_WALL 0x04000000L /* walks thru walls */ 19 | #define ALLOW_DIG 0x08000000L /* digs */ 20 | #define ALLOW_BARS 0x10000000L /* may pass thru iron bars */ 21 | #define ALLOW_SANCT 0x20000000L /* enters temples */ 22 | #define ALLOW_SSM 0x40000000L /* ignores scare monster */ 23 | #ifdef NHSTDC 24 | #define NOGARLIC 0x80000000UL /* hates garlic */ 25 | #else 26 | #define NOGARLIC 0x80000000L /* hates garlic */ 27 | #endif 28 | 29 | #endif /* MFNDPOS_H */ 30 | -------------------------------------------------------------------------------- /nethack/include/micro.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)micro.h 3.4 1990/02/22 */ 2 | /* micro.h - function declarations for various microcomputers */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef MICRO_H 6 | #define MICRO_H 7 | 8 | extern const char *alllevels, *allbones; 9 | extern char levels[], bones[], permbones[], hackdir[]; 10 | 11 | extern int ramdisk; 12 | 13 | #ifndef C 14 | #define C(c) (0x1f & (c)) 15 | #endif 16 | #ifndef M 17 | #define M(c) (((char)0x80) | (c)) 18 | #endif 19 | #define ABORT C('a') 20 | 21 | #endif /* MICRO_H */ 22 | -------------------------------------------------------------------------------- /nethack/include/mttypriv.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mttypriv.h 3.4 1993/03/01 */ 2 | /* Copyright (c) Jon W{tte 1993. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* 6 | * This file contains private structures used to implement the 7 | * tty windows - note that these structures may change between 8 | * minor releases! 9 | */ 10 | 11 | #ifndef _H_tty_private 12 | # define _H_tty_private 13 | 14 | # ifndef _H_tty_public 15 | #include "mactty.h" 16 | # endif 17 | 18 | #if !TARGET_API_MAC_CARBON 19 | # include 20 | # include 21 | # include 22 | #endif 23 | 24 | #define TA_TO_RGB(ta,rgb) (((rgb).red=(((ta)>>16)&0xff)*257),((rgb).green=(((ta)>>8)&0xff)*257),\ 25 | ((rgb).blue=((ta)&0xff)*257)),rgb 26 | 27 | typedef struct tty_record { 28 | WindowPtr its_window ; 29 | 30 | short font_number ; 31 | short font_size ; 32 | short char_width ; 33 | short row_height ; 34 | short ascent_height ; 35 | 36 | short x_size ; 37 | short y_size ; 38 | short x_curs ; 39 | short y_curs ; 40 | 41 | GWorldPtr its_window_world ; 42 | BitMap its_bits ; 43 | GrafPtr offscreen_port ; 44 | GWorldPtr offscreen_world ; 45 | #if CLIP_RECT_ONLY 46 | Rect invalid_rect ; 47 | #else 48 | RgnHandle invalid_part ; 49 | #endif 50 | 51 | long attribute [ TTY_NUMBER_ATTRIBUTES ] ; 52 | long last_cursor ; 53 | 54 | Boolean was_allocated ; 55 | Boolean curs_state ; 56 | Boolean uses_gworld ; 57 | } tty_record ; 58 | 59 | 60 | #endif /* _H_tty_private */ 61 | -------------------------------------------------------------------------------- /nethack/include/nhlan.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)nhlan.h 3.4 1997/04/12 */ 2 | /* Copyright (c) Michael Allison, 1997 */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef NHLAN_H 6 | #define NHLAN_H 7 | /* 8 | * Here are the LAN features currently implemented: 9 | * LAN_MAIL Mail facility allowing receipt and 10 | * reading of mail. 11 | * LAN_SHARED_BONES Allows bones files to be stored on a 12 | * network share. (Does NOT imply compatibiliy 13 | * between unlike platforms) 14 | */ 15 | 16 | # ifdef LAN_FEATURES 17 | # ifdef LAN_MAIL 18 | #define MAIL 19 | #ifndef WIN32 20 | #define MAILCKFREQ 50 21 | #else 22 | /* 23 | * WIN32 port does the real mail lookups in a separate thread 24 | * and the NetHack core code really just checks a flag, 25 | * so that part of it can be done more often. The throttle 26 | * for how often the mail thread should contact the mail 27 | * system is controlled by MAILTHREADFREQ and is expressed 28 | * in milliseconds. 29 | */ 30 | #define MAILCKFREQ 5 31 | #define MAILTHREADFREQ 50000 32 | #endif 33 | 34 | #ifndef MAX_BODY_SIZE 35 | #define MAX_BODY_SIZE 1024 36 | #endif 37 | 38 | struct lan_mail_struct { 39 | char sender[120]; 40 | char subject[120]; 41 | boolean body_in_ram; /* TRUE means body in memory not file */ 42 | char filename[_MAX_PATH]; 43 | char body[MAX_BODY_SIZE]; 44 | }; 45 | # endif 46 | 47 | # endif /*LAN_FEATURES*/ 48 | #endif /*NHLAN_H*/ 49 | -------------------------------------------------------------------------------- /nethack/include/qt_clust.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)qt_clust.h 3.4 1999/11/19 */ 2 | /* Copyright (c) Warwick Allison, 1999. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef clusterizer_H 6 | #define clusterizer_H 7 | 8 | #include 9 | 10 | class Clusterizer { 11 | public: 12 | Clusterizer(int maxclusters); 13 | ~Clusterizer(); 14 | 15 | void add(int x, int y); // 1x1 rectangle (point) 16 | void add(int x, int y, int w, int h); 17 | void add(const QRect& rect); 18 | 19 | void clear(); 20 | int clusters() { return count; } 21 | const QRect& operator[](int i); 22 | 23 | private: 24 | QRect* cluster; 25 | int count; 26 | const int max; 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /nethack/include/qt_kde0.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)qt_kde0.h 3.4 1999/11/19 */ 2 | /* Copyright (c) Warwick Allison, 1999. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef QT_DUMMYKDE 6 | #define QT_DUMMYKDE 7 | class KTopLevelWidget : public QMainWindow { 8 | Q_OBJECT 9 | }; 10 | #endif 11 | -------------------------------------------------------------------------------- /nethack/include/rect.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)rect.h 3.4 1990/02/22 */ 2 | /* Copyright (c) 1990 by Jean-Christophe Collet */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef RECT_H 6 | #define RECT_H 7 | 8 | typedef struct nhrect { 9 | xchar lx, ly; 10 | xchar hx, hy; 11 | } NhRect; 12 | 13 | #endif /* RECT_H */ 14 | -------------------------------------------------------------------------------- /nethack/include/spell.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)spell.h 3.4 1995/06/01 */ 2 | /* Copyright 1986, M. Stephenson */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef SPELL_H 6 | #define SPELL_H 7 | 8 | struct spell { 9 | short sp_id; /* spell id (== object.otyp) */ 10 | xchar sp_lev; /* power level */ 11 | int sp_know; /* knowlege of spell */ 12 | }; 13 | 14 | /* levels of memory destruction with a scroll of amnesia */ 15 | #define ALL_MAP 0x1 16 | #define ALL_SPELLS 0x2 17 | 18 | #define decrnknow(spell) spl_book[spell].sp_know-- 19 | #define spellid(spell) spl_book[spell].sp_id 20 | #define spellknow(spell) spl_book[spell].sp_know 21 | 22 | #endif /* SPELL_H */ 23 | -------------------------------------------------------------------------------- /nethack/include/tile2x11.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)tile2x11.h 3.4 1995/01/25 */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef TILE2X11_H 5 | #define TILE2X11_H 6 | 7 | /* 8 | * Header for the x11 tile map. 9 | */ 10 | typedef struct { 11 | unsigned long version; 12 | unsigned long ncolors; 13 | unsigned long tile_width; 14 | unsigned long tile_height; 15 | unsigned long ntiles; 16 | unsigned long per_row; 17 | } x11_header; 18 | 19 | /* how wide each row in the tile file is, in tiles */ 20 | #define TILES_PER_ROW (40) 21 | 22 | #endif /* TILE2X11_H */ 23 | -------------------------------------------------------------------------------- /nethack/include/vault.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)vault.h 3.4 1997/05/01 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef VAULT_H 6 | #define VAULT_H 7 | 8 | #define FCSIZ (ROWNO+COLNO) 9 | struct fakecorridor { 10 | xchar fx,fy,ftyp; 11 | }; 12 | 13 | struct egd { 14 | int fcbeg, fcend; /* fcend: first unused pos */ 15 | int vroom; /* room number of the vault */ 16 | xchar gdx, gdy; /* goal of guard's walk */ 17 | xchar ogx, ogy; /* guard's last position */ 18 | d_level gdlevel; /* level (& dungeon) guard was created in */ 19 | xchar warncnt; /* number of warnings to follow */ 20 | Bitfield(gddone,1); /* true iff guard has released player */ 21 | Bitfield(unused,7); 22 | struct fakecorridor fakecorr[FCSIZ]; 23 | }; 24 | 25 | #define EGD(mon) ((struct egd *)&(mon)->mextra[0]) 26 | 27 | #endif /* VAULT_H */ 28 | -------------------------------------------------------------------------------- /nethack/include/vis_tab.h: -------------------------------------------------------------------------------- 1 | /* This source file is generated by 'makedefs'. Do not edit. */ 2 | #ifdef VISION_TABLES 3 | 4 | #endif /* VISION_TABLES */ 5 | -------------------------------------------------------------------------------- /nethack/include/winGnome.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)winGnome.h 3.4. 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* Copyright (C) 1998 by Anthony Taylor */ 4 | /* NetHack may be freely redistributed. See license for details. */ 5 | 6 | #ifndef WINGNOME_H 7 | #define WINGNOME_H 8 | 9 | #define E extern 10 | 11 | E struct window_procs Gnome_procs; 12 | 13 | #undef E 14 | 15 | #define NHW_WORN 6 16 | extern winid WIN_WORN; 17 | 18 | #endif /* WINGNOME_H */ 19 | -------------------------------------------------------------------------------- /nethack/src/vis_tab.c: -------------------------------------------------------------------------------- 1 | /* This source file is generated by 'makedefs'. Do not edit. */ 2 | #include "config.h" 3 | #ifdef VISION_TABLES 4 | #include "vis_tab.h" 5 | 6 | #endif /* VISION_TABLES */ 7 | 8 | /*vis_tab.c*/ 9 | -------------------------------------------------------------------------------- /nethack/sys/amiga/Install.ami: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/amiga/Install.ami -------------------------------------------------------------------------------- /nethack/sys/amiga/amidos.p: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)amidos.p 3.1 93/01/08 2 | /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1992, 1993. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* amidos.c */ 6 | void NDECL(flushout ); 7 | #ifndef getuid 8 | int NDECL(getuid ); 9 | #endif 10 | #ifndef getpid 11 | int NDECL(getpid ); 12 | #endif 13 | #ifndef getlogin 14 | char *NDECL(getlogin ); 15 | #endif 16 | #ifndef abs 17 | int FDECL(abs, (int )); 18 | #endif 19 | int NDECL(tgetch ); 20 | int NDECL(dosh ); 21 | long FDECL(freediskspace, (char *)); 22 | long FDECL(filesize, (char *)); 23 | void FDECL(eraseall, (const char * , const char *)); 24 | char *FDECL(CopyFile, (const char * , const char *)); 25 | void FDECL(copybones, (int )); 26 | void NDECL(playwoRAMdisk ); 27 | int FDECL(saveDiskPrompt, (int )); 28 | void NDECL(gameDiskPrompt ); 29 | void FDECL(append_slash, (char *)); 30 | void FDECL(getreturn, (const char *)); 31 | #ifndef msmsg 32 | void FDECL(msmsg, ( const char *, ... )); 33 | #endif 34 | #if !defined(__SASC_60) && !defined(_DCC) 35 | int FDECL(chdir, (char *)); 36 | #endif 37 | #ifndef strcmpi 38 | int FDECL(strcmpi, (char * , char *)); 39 | #endif 40 | #if !defined(memcmp) && !defined(AZTEC_C) && !defined(_DCC) && !defined(__GNUC__) 41 | int FDECL(memcmp, (unsigned char * , unsigned char * , int )); 42 | #endif 43 | -------------------------------------------------------------------------------- /nethack/sys/amiga/amifont.uu: -------------------------------------------------------------------------------- 1 | begin 777 hack.font 2 | M#P```6AA8VLO.``````````````````````````````````````````````` 3 | M```````````````````````````````````````````````````````````` 4 | M```````````````````````````````````````````````````````````` 5 | M```````````````````````````````````````````````````````````` 6 | M```````````````````````````````````````````````````````````` 7 | G````````````````````````````````````````````````"`!` 8 | ` 9 | end 10 | -------------------------------------------------------------------------------- /nethack/sys/amiga/amigst.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)amigst.c 3.1 93/01/08 2 | /* Copyright (c) Gregg Wonderly, Naperville, IL, 1992, 1993 */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #undef strcmpi 17 | #include 18 | #include 19 | 20 | #ifdef __SASC 21 | #include /* for __emit */ 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #endif 30 | 31 | #include "hack.h" 32 | #include "winprocs.h" 33 | #include "winami.h" 34 | 35 | #ifdef AZTEC 36 | #include 37 | #endif 38 | 39 | #include "NH:sys/amiga/winami.p" 40 | #include "NH:sys/amiga/amiwind.p" 41 | #include "NH:sys/amiga/amidos.p" 42 | 43 | /* end amigst.c */ 44 | -------------------------------------------------------------------------------- /nethack/sys/amiga/amii.hlp: -------------------------------------------------------------------------------- 1 | Amiga-specific help file for NetHack 3.4 2 | 3 | The Amiga port of NetHack supports a number of additional commands 4 | and facilities specific to the Amiga. Listed below are the things 5 | which are either specific to the Amiga port or might not appear 6 | in other ports. 7 | 8 | While playing NetHack you can press: 9 | 10 | ALT-HELP Color requestor. 11 | CTL-HELP Scale display (amitile only). 12 | SHIFT-HELP Overview window (amitile only). 13 | 14 | Amiga-specific run-time options: 15 | altmeta use the alt keys as meta keys 16 | flush throw away keyboard type-ahead 17 | 18 | Command line options recognized are 19 | 20 | -n No News at game startup. 21 | -X Play in discovery mode. 22 | -D Play in debug mode. 23 | -L Interlaced screen. 24 | -l Never Interlaced screen. 25 | -u Play as player given as 26 | an argument. 27 | -r Pick a race given as an 28 | argument. 29 | -p Pick a profession given 30 | as an argument 31 | -? Gives command line usage. 32 | -------------------------------------------------------------------------------- /nethack/sys/amiga/amimenu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/amiga/amimenu.c -------------------------------------------------------------------------------- /nethack/sys/amiga/amistack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/amiga/amistack.c -------------------------------------------------------------------------------- /nethack/sys/amiga/ifchange: -------------------------------------------------------------------------------- 1 | .KEY oper/a,tmp/a,real/a,f1,f2,f3,f4,f5 2 | 3 | . ; miscellaneous script functions for the Amiga 4 | . ; SCCS Id: @(#)ifchange 3.2 96/02/04 5 | . ; Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1992, 1993, 1996. 6 | . ; NetHack may be freely redistributed. See license for details. 7 | 8 | FAILAT 6 9 | IF EQ "MOVE" 10 | IF EXISTS 11 | diff >T:mic -c 12 | search from T:mic SEARCH "---" QUIET 13 | IF WARN 14 | echo "MOVE: no change" 15 | delete 16 | ELSE 17 | echo "MOVE: copy" 18 | copy clone 19 | delete 20 | ENDIF 21 | ELSE 22 | echo "MOVE: copy2" 23 | copy clone 24 | delete 25 | ENDIF 26 | QUIT 27 | ENDIF 28 | 29 | IF EQ "TOUCH" 30 | IF EXISTS 31 | diff >T:mic -c 32 | search from T:mic SEARCH "---" QUIET 33 | IF NOT WARN 34 | echo "TOUCH: touch" 35 | IF NOT EQ "@" 36 | setdate 37 | ENDIF 38 | IF NOT EQ "@" 39 | setdate 40 | ENDIF 41 | IF NOT EQ "@" 42 | setdate 43 | ENDIF 44 | IF NOT EQ "@" 45 | setdate 46 | ENDIF 47 | IF NOT EQ "@" 48 | setdate 49 | ENDIF 50 | ENDIF 51 | ENDIF 52 | QUIT 53 | ENDIF 54 | 55 | echo "ifchange: '' not recognized" 56 | quit 10 57 | -------------------------------------------------------------------------------- /nethack/sys/amiga/mkdmake: -------------------------------------------------------------------------------- 1 | GE/$@/%(left)/ 2 | GE/$ ..\..\Makefile 11 | sed -f unx2atar.sed < ..\unix\Makefile.dat > ..\..\dat\Makefile 12 | sed -f unx2atar.sed < ..\unix\Makefile.doc > ..\..\doc\Makefile 13 | sed -f unx2atar.sed < ..\unix\Makefile.src > ..\..\src\Makefile 14 | sed -f unx2atar.sed < ..\unix\Makefile.utl > ..\..\util\Makefile 15 | 16 | # KLUDGE to fix a Makefile problem 17 | echo > ..\..\include\win32api.h 18 | -------------------------------------------------------------------------------- /nethack/sys/atari/unx2atar.sed: -------------------------------------------------------------------------------- 1 | : loop 2 | /\\$/N 3 | /\\$/b loop 4 | # for each line, append any continuation lines before trying to classify it 5 | /^ / { 6 | # if it starts with a tab, it's meant for the shell, and we should think 7 | # about reversing the slashes 8 | s;cd ../util;cd ..\\util; 9 | s;cd ../src;cd ..\\src; 10 | /librarian/ s;dat/options;dat\\options; 11 | /$(MAKE)/b 12 | /$(CC)/b 13 | s;/;\\;g 14 | } 15 | # unfortunately, we do not want to reverse *all* the slashes, as even the 16 | # Atari make and gcc like forward ones, and it's messy to avoid the ones in 17 | # sed addresses 18 | # so, flip the first one in e.g. 19 | # @( cd ../util ; $(MAKE) ../include/onames.h ) 20 | # flip the librarian-related ones in dat/options 21 | # ignore other lines related to make and gcc 22 | # and flip any slashes left over, which include a number of UNIX-only things 23 | # that we didn't need to do but don't hurt 24 | -------------------------------------------------------------------------------- /nethack/sys/mac/NetHack.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/mac/NetHack.rsrc -------------------------------------------------------------------------------- /nethack/sys/mac/News: -------------------------------------------------------------------------------- 1 | Welcome to NetHack 3.4 for MacOS 7.0 - 9.x 2 | 3 | Unfortunately, the 68k version is no longer supported. 4 | 5 | This game is brought to you by Dean Luick, Kevin Hugo, and Mark Modrall. 6 | 7 | Bug reports, suggestions, comments, etc., should be e-mailed to the 8 | Internet address nethack-bugs@nethack.org, or fill out our comment 9 | form on the web at http://www.nethack.org. 10 | -------------------------------------------------------------------------------- /nethack/sys/mac/README: -------------------------------------------------------------------------------- 1 | Jan 2002 2 | 3 | The MPW compilers are now supported again. 4 | 5 | Support for 68k has been discontinued due to a lack of a debugging 6 | system for 68k binaries. 7 | 8 | Note that the tiled MacOS X port uses the Qt windowport and the UNIX 9 | build system, not this windowport code. 10 | 11 | 12 | 26 Nov, 1999 13 | 14 | NetHack 3.3.0 was built with Metrowerk's Pro 4 compiler on a PPC 15 | system. We are still compiling with 68K alignment because we know 16 | it works. No one has checked lately if the PPC alignment bug 17 | still exists. 18 | 19 | 20 | 23 May, 1996 21 | 22 | NetHack 3.2.1 was built with Metrowerk's DR8 compiler on a PPC system. 23 | The official 68K and PPC versions were compiled with 68K Alignment 24 | to share files. The 3.2.0 versions were compiled with PPC alignment, 25 | but it was discovered that the Metrowerks 68K compiler has a bug with 26 | PPC alignment and structures that can be aligned to a single byte. This 27 | bug _may_ be fixed in DR10, it is not fixed in DR9. Why bother with PPC 28 | alignment at all? Because the space saving from 68K alignment is small 29 | and the PowerPC version will run better. The 68K version was compiled 30 | with 4 byte ints using the far model. 31 | 32 | Only the Metrowerks compiler has been used to compile the code in a 33 | long time. It is _very_ likely that the other compilers, Think C and 34 | MPW C, will no longer be able to compile NetHack out of the box. They 35 | and their files have been moved to the "old" directory until such time 36 | that someone can compile with them. 37 | -------------------------------------------------------------------------------- /nethack/sys/mac/Sounds.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/mac/Sounds.rsrc -------------------------------------------------------------------------------- /nethack/sys/mac/dprintf.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)dprintf.c 3.1 94/01/29 */ 2 | /* Copyright (c) Jon W{tte, 1993. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #include "hack.h" 6 | #include "macwin.h" 7 | 8 | static Boolean 9 | KeyDown (unsigned short code) { 10 | unsigned char keys [16]; 11 | 12 | GetKeys ((void *) keys); 13 | return ((keys [code >> 3] >> (code & 7)) & 1) != 0; 14 | } 15 | 16 | 17 | void 18 | dprintf (char *format, ...) 19 | { 20 | char buffer [500]; 21 | va_list list; 22 | int doit; 23 | #define DO_DEBUGSTR 1 24 | #define DO_PLINE 2 25 | 26 | if (flags.debug) { 27 | doit = 0; 28 | if (macFlags.hasDebugger && KeyDown (0x39)) { /* Caps Lock */ 29 | doit = DO_DEBUGSTR; 30 | } else if (KeyDown (0x3B) && iflags.window_inited && /* Control */ 31 | (WIN_MESSAGE != -1) && theWindows [WIN_MESSAGE].its_window) { 32 | doit = DO_PLINE; 33 | } 34 | 35 | if (doit) { 36 | va_start (list, format); 37 | vsprintf (&buffer [1], format, list); 38 | va_end (list) ; 39 | 40 | if (doit == DO_DEBUGSTR) { 41 | buffer [0] = strlen (&buffer [1]); 42 | DebugStr ((uchar *) buffer); 43 | } else if (doit == DO_PLINE) 44 | pline ("%s", &buffer [1]); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /nethack/sys/mac/machelp.bh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/mac/machelp.bh -------------------------------------------------------------------------------- /nethack/sys/mac/macunix.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)macunix.c 3.1 94/11/07 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* This file collects some Unix dependencies */ 6 | 7 | #include "hack.h" 8 | 9 | void 10 | regularize(char *s) 11 | { 12 | register char *lp; 13 | 14 | for (lp = s; *lp; lp++) { 15 | if (*lp == '.' || *lp == ':') 16 | *lp = '_'; 17 | } 18 | } 19 | 20 | void 21 | getlock(void) 22 | { 23 | int fd; 24 | int pid = getpid(); /* Process ID */ 25 | 26 | set_levelfile_name (lock, 0); 27 | 28 | if ((fd = open (lock, O_RDWR | O_EXCL | O_CREAT, LEVL_TYPE)) == -1) { 29 | raw_printf ("Could not lock the game %s.", lock); 30 | panic ("Another game in progress?"); 31 | } 32 | 33 | if (write (fd, (char *)&pid, sizeof (pid)) != sizeof (pid)) { 34 | raw_printf ("Could not lock the game %s.", lock); 35 | panic("Disk locked?"); 36 | } 37 | close (fd); 38 | } 39 | -------------------------------------------------------------------------------- /nethack/sys/mac/mmodal.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)mmodal.c 3.1 93/01/24 */ 2 | /* Copyright (c) Jon W{tte, Hao-Yang Wang, Jonathan Handler 1992. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #if !TARGET_API_MAC_CARBON 6 | # include 7 | # include 8 | #else 9 | # include 10 | #endif 11 | 12 | #include "macpopup.h" 13 | 14 | /* Flash a dialog button when its accelerator key is pressed */ 15 | void 16 | FlashButton(DialogRef wind, short item) { 17 | short type; 18 | Handle handle; 19 | Rect rect; 20 | unsigned long ticks; 21 | 22 | /* Apple recommends 8 ticks */ 23 | GetDialogItem(wind, item, &type, &handle, &rect); 24 | HiliteControl((ControlHandle)handle, kControlButtonPart); 25 | Delay(8, &ticks); 26 | HiliteControl((ControlHandle)handle, 0); 27 | return; 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /nethack/sys/mac/mrecover.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/mac/mrecover.rsrc -------------------------------------------------------------------------------- /nethack/sys/msdos/moveinit.pat: -------------------------------------------------------------------------------- 1 | These are patches for MOVEINIT.C, supplied 2 | with the MSVC compiler in the compiler's SOURCE\MOVE 3 | subdirectory. (Copy that and the MOVEAPI.H 4 | file into your NetHack src directory and apply this patch) 5 | 6 | 7 | *** ../linc/src/moveinit.c Tue Nov 23 08:01:00 1993 8 | --- src/moveinit.c Sun Mar 13 10:13:10 1994 9 | *************** 10 | *** 13,18 **** 11 | --- 13,19 ---- 12 | *******************************************************************************/ 13 | 14 | #include "moveapi.h" 15 | + extern unsigned memavail(unsigned); 16 | 17 | #ifndef MOVE_ENV 18 | 19 | *************** 20 | *** 125,132 **** 21 | /* attempt to allocate the overlay heap. ignore return value (heap size). 22 | * note that MOVE will abort if not enough memory to alloc minimum size. 23 | */ 24 | ! 25 | ! _movesetheap ($$COVL, cparaLarge, cparaMax); 26 | 27 | /* get available cache ressource amount */ 28 | 29 | --- 126,133 ---- 30 | /* attempt to allocate the overlay heap. ignore return value (heap size). 31 | * note that MOVE will abort if not enough memory to alloc minimum size. 32 | */ 33 | ! cparaMax = memavail(cparaMin); 34 | ! _movesetheap ($$COVL, cparaMin, cparaMax); 35 | 36 | /* get available cache ressource amount */ 37 | 38 | -------------------------------------------------------------------------------- /nethack/sys/msdos/nhico.uu: -------------------------------------------------------------------------------- 1 | section 1 of uuencode 4.13 of file NETHACK.ICO by R.E.M. 2 | 3 | begin 644 NETHACK.ICO 4 | M```!``$`("`0``````#H`@``%@```"@````@````0`````$`!```````@`(`. 5 | M``````````````````````````````"```"`````@(``@````(``@`"`@```6 6 | M@("``,#`P````/\``/\```#__P#_````_P#_`/__``#___\`]F9F9F9F9F9F* 7 | M9F9F9F9F9O]F9F9F9F9F9F9F9F9F9F;_B(B(B(B(B(B(B(B(B&9F_XB(B(B(D 8 | MB(B(B(B(B(AF9O^(B(B(A555B(B(B(B(9F;_B(B(B`!5!8B(B(B(B&9F_XB(' 9 | MB(@```6(B(B(B(AF9O^(B%554`!56(B(B(B(9F;_B(N[N[`.XU6(B(B(B&9F[ 10 | M_XB[N[L`ONXU6(B(B(AF9O^+N[N[N[ONXUB(B(B(9F;_B[N[N[N[ONY3B(B(N 11 | MB&9F_XN[NYF9F[ONXSB(B(AF9O^+N[F9F9F[ONXSB(B(9F;_B[N9F9F9F[ON? 12 | MXSB(B&9F_XNYF9F9F9F[7NXSB(AF9O^+N9F9F9F9NUCNXSB(9F;_B[F9F9F9J 13 | MF;M8CNXSB&9F_XNYF9F9F9F[6(CNXXAF9O^+N9F9F9F9NUB(CNZ(9F;_B[N9] 14 | MF9F9F[M8B(CNB&9F_XN[N9F9F;N[6(B(B(AF9O^+N[N9F9N[NUB(B(B(9F;_R 15 | MB[N[N[N[N[M8B(B(B&9F_XN[N[N[N[N[B(B(B(AF9O^+NXB(B(B+NXB(B(B(F 16 | M9F;_B[B(B(B(B+N(B(B(B&9F_XB(B(B(B(B(B(B(B(AF9O^(B(B(B(B(B(B(J 17 | MB(B(9F;_B(B(B(B(B(B(B(B(B&9F___________________V9O__________% 18 | M__________\`````````````````````````````````````````````````R 19 | M````````````````````````````````````````````````````````````` 20 | M````````````````````````````````````````````````````````````` 21 | !````` 22 | `` 23 | end 24 | sum -r/size 23881/1107 section (from "begin" to "end") 25 | sum -r/size 55184/766 entire input file 26 | -------------------------------------------------------------------------------- /nethack/sys/msdos/nhpif.uu: -------------------------------------------------------------------------------- 1 | begin 666 nethack.pif 2 | M`%M00R!.971H86-K(#,N,2`@("`@("`@("`@("`@(""``(``0SI<3D542$%# 3 | M2UQ.151(04-++D5810`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ 4 | M("`@("`@("`@$`!#.EQ.151(04-+`"`@("`@("`@("`@("`@("`@("`@("`@ 5 | M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@```````````````````` 6 | M```````````````````````````````````````````````````````````` 7 | M```````!`/\94```!P`````````````````````````````````````````` 8 | M```````````````````````````````````````````````````````````` 9 | M```````````````````````````````````````````````````````````` 10 | M`````````.`@34E#4D]33T94(%!)1D58`(`````P````@`$```0`!`````/___ 3 | M_T-)&@````````!X`0``#````"``(``!``0```````"``(```("`@```@`"`L 4 | M@(``@("`P,#```#_`/\``/___P``_P#___\`____````````````````````! 5 | M````````````````````````````````````````````````````````````` 6 | M````````````````````````````````````````````````````````````` 7 | M````````````````````````````````````````````````````````````` 8 | M````````````````````````````````````````````````````````````` 9 | M````````````````````````````````````````````````````````````` 10 | M`````````````````````/9F9F9F9F9F9F9F9F9F9F;_9F9F9F9F9F9F9F9F7 11 | M9F9F_XB(B(B(B(B(B(B(B(AF9O^(B(B(B(B(B(B(B(B(9F;_B(B(B(5558B(" 12 | MB(B(B&9F_XB(B(@`506(B(B(B(AF9O^(B(B(```%B(B(B(B(9F;_B(A555``@ 13 | M55B(B(B(B&9F_XB+N[NP#N-5B(B(B(AF9O^(N[N[`+[N-5B(B(B(9F;_B[N[E 14 | MN[N[[N-8B(B(B&9F_XN[N[N[N[[N4XB(B(AF9O^+N[N9F9N[[N,XB(B(9F;_) 15 | MB[NYF9F9N[[N,XB(B&9F_XN[F9F9F9N[[N,XB(AF9O^+N9F9F9F9NU[N,XB(< 16 | M9F;_B[F9F9F9F;M8[N,XB&9F_XNYF9F9F9F[6([N,XAF9O^+N9F9F9F9NUB(] 17 | M[N.(9F;_B[F9F9F9F;M8B([NB&9F_XN[F9F9F9N[6(B([HAF9O^+N[F9F9F[# 18 | MNUB(B(B(9F;_B[N[F9F;N[M8B(B(B&9F_XN[N[N[N[N[6(B(B(AF9O^+N[N[) 19 | MN[N[NXB(B(B(9F;_B[N(B(B(B[N(B(B(B&9F_XNXB(B(B(B[B(B(B(AF9O^(/ 20 | MB(B(B(B(B(B(B(B(9F;_B(B(B(B(B(B(B(B(B&9F_XB(B(B(B(B(B(B(B(AFN 21 | A9O__________________]F;_____________________? 22 | `` 23 | end 24 | -------------------------------------------------------------------------------- /nethack/sys/share/Makefile.lib: -------------------------------------------------------------------------------- 1 | # SCCS Id: @(#)Makefile.lib 3.4 1990/22/02 2 | # Nethack makefile for Fred fish termlib -- Norman Meluch 3 | # 4 | CC = cl /c 5 | MODEL = L 6 | CFLAGS = /A$(MODEL) /Os /Oa /Gs /Zp1 /W0 7 | # 8 | # Termcap routines. 9 | TERMLIB = termlib.lib 10 | # 11 | TL_LOBJECTS = tgetent.o tgetflag.o tgetnum.o \ 12 | tgetstr.o tgoto.o tputs.o \ 13 | isdigit.o fgetlr.o 14 | # 15 | .SUFFIXES: .exe .o .c .obj .asm 16 | # 17 | .c.o: 18 | $(CC) $(CFLAGS) /Fo$*.o $*.c 19 | # 20 | $(TERMLIB): $(TL_LOBJECTS) 21 | lib $(TERMLIB) -+ $(TL_LOBJECTS); 22 | -------------------------------------------------------------------------------- /nethack/sys/share/dgn_comp.h: -------------------------------------------------------------------------------- 1 | #define INTEGER 257 2 | #define A_DUNGEON 258 3 | #define BRANCH 259 4 | #define CHBRANCH 260 5 | #define LEVEL 261 6 | #define RNDLEVEL 262 7 | #define CHLEVEL 263 8 | #define RNDCHLEVEL 264 9 | #define UP_OR_DOWN 265 10 | #define PROTOFILE 266 11 | #define DESCRIPTION 267 12 | #define DESCRIPTOR 268 13 | #define LEVELDESC 269 14 | #define ALIGNMENT 270 15 | #define LEVALIGN 271 16 | #define ENTRY 272 17 | #define STAIR 273 18 | #define NO_UP 274 19 | #define NO_DOWN 275 20 | #define PORTAL 276 21 | #define STRING 277 22 | typedef union 23 | { 24 | int i; 25 | char* str; 26 | } YYSTYPE; 27 | extern YYSTYPE yylval; 28 | -------------------------------------------------------------------------------- /nethack/sys/unix/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copy files to their correct locations. 3 | # 4 | # If arguments are given, try symbolic link first. This is not the default 5 | # so that most people will have the distribution versions stay around so 6 | # subsequent patches can be applied. People who pay enough attention to 7 | # know there's a non-default behavior are assumed to pay enough attention 8 | # to keep distribution versions if they modify things. 9 | 10 | # Were we started from the top level? Cope. 11 | if [ -f sys/unix/Makefile.top ]; then cd sys/unix; fi 12 | 13 | if [ $# -gt 0 ] ; then 14 | # First, try to make a symbolic link. 15 | # 16 | ln -s Makefile.top Makefile >/dev/null 2>&1 17 | if [ $? -eq 0 ] ; then 18 | 19 | echo "Lucky you! Symbolic links." 20 | rm -f Makefile 21 | 22 | umask 0 23 | ln -s sys/unix/Makefile.top ../../Makefile 24 | ln -s ../sys/unix/Makefile.dat ../../dat/Makefile 25 | ln -s ../sys/unix/Makefile.doc ../../doc/Makefile 26 | ln -s ../sys/unix/Makefile.src ../../src/Makefile 27 | ln -s ../sys/unix/Makefile.utl ../../util/Makefile 28 | exit 0 29 | fi 30 | fi 31 | 32 | # 33 | # Otherwise... 34 | 35 | echo "Copying Makefiles." 36 | 37 | cp Makefile.top ../../Makefile 38 | cp Makefile.dat ../../dat/Makefile 39 | cp Makefile.doc ../../doc/Makefile 40 | cp Makefile.src ../../src/Makefile 41 | cp Makefile.utl ../../util/Makefile 42 | -------------------------------------------------------------------------------- /nethack/sys/vms/lev_lex.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)lev_lex.h 3.4 1999/08/08 */ 2 | /* "vms/lev_lex.h" copied into "util/stdio.h" for use in *_lex.c only! 3 | * This is an awful kludge to allow util/*_lex.c made by SunOS's `lex' 4 | * to be compiled as is. (It isn't needed with `flex' or VMS POSIX 5 | * `lex' and is benign when either of those configurations are used.) 6 | * It works because the actual setup of yyin & yyout is performed in 7 | * src/lev_main.c, where stdin & stdout are still correctly defined. 8 | * 9 | * The troublesome code is 10 | * #include "stdio.h" 11 | * ... 12 | * FILE *yyin = stdin, *yyout = stdout; 13 | * The file scope initializers with non-constant values require this 14 | * hack, and the quotes instead of brackets makes it easy to do. 15 | */ 16 | 17 | #include 18 | #ifdef stdin 19 | # undef stdin 20 | #endif 21 | #define stdin 0 22 | #ifdef stdout 23 | # undef stdout 24 | #endif 25 | #define stdout 0 26 | -------------------------------------------------------------------------------- /nethack/sys/vms/vmsmisc.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)vmsmisc.c 3.4 1996/03/02 */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #include 5 | #include 6 | 7 | void vms_exit( /*_ int _*/ ); 8 | void vms_abort( /*_ void _*/ ); 9 | 10 | extern void exit( /*_ int _*/ ); 11 | extern void lib$signal( /*_ unsigned long,... _*/ ); 12 | 13 | void 14 | vms_exit(status) 15 | int status; 16 | { 17 | exit(status ? (SS$_ABORT | STS$M_INHIB_MSG) : SS$_NORMAL); 18 | } 19 | 20 | void 21 | vms_abort() 22 | { 23 | lib$signal(SS$_DEBUG); 24 | } 25 | 26 | #ifdef VERYOLD_VMS 27 | #include "oldcrtl.c" 28 | #endif 29 | 30 | /*vmsmisc.c*/ 31 | -------------------------------------------------------------------------------- /nethack/sys/wince/ceinc/assert.h: -------------------------------------------------------------------------------- 1 | /*** 2 | *assert.h - define the assert macro 3 | * 4 | ****/ 5 | 6 | #undef assert 7 | 8 | #ifdef NDEBUG 9 | 10 | #define assert(exp) ((void)0) 11 | 12 | #else 13 | 14 | #define assert(exp) (void)( (exp) || (panic("%s at %s line %ld", #exp, __FILE__,__LINE__), 1) ) 15 | 16 | #endif /* NDEBUG */ 17 | -------------------------------------------------------------------------------- /nethack/sys/wince/ceinc/errno.h: -------------------------------------------------------------------------------- 1 | /* empty file */ 2 | 3 | extern int errno; 4 | 5 | -------------------------------------------------------------------------------- /nethack/sys/wince/ceinc/sys/stat.h: -------------------------------------------------------------------------------- 1 | /* empty file */ 2 | 3 | -------------------------------------------------------------------------------- /nethack/sys/wince/cesetup.bat: -------------------------------------------------------------------------------- 1 | @REM SCCS Id: @(#)nhsetup.bat $Date: 2003/08/22 13:23:33 $ 2 | @REM Copyright (c) Alex Kompel, 2002 3 | @REM NetHack may be freely redistributed. See license for details. 4 | @REM Win32 nhsetup batch file, see Install.ce for details 5 | @REM 6 | @echo off 7 | REM 8 | REM Make sure directories necessary for build exist 9 | REM 10 | if NOT exist ..\..\wince\*.* mkdir ..\..\wince 11 | REM 12 | REM Get these files from the win\win32 port 13 | REM 14 | copy ..\..\win\win32\mnsel.uu ..\..\wince\mnsel.uu 15 | copy ..\..\win\win32\mnselcnt.uu ..\..\wince\mnselcnt.uu 16 | copy ..\..\win\win32\mnunsel.uu ..\..\wince\mnunsel.uu 17 | copy ..\..\win\win32\petmark.uu ..\..\wince\petmark.uu 18 | copy ..\..\sys\winnt\nhico.uu ..\..\wince\nhico.uu 19 | copy ..\..\sys\wince\menubar.uu ..\..\wince\menubar.uu 20 | copy ..\..\sys\wince\keypad.uu ..\..\wince\keypad.uu 21 | REM 22 | REM Get these files from sys\wince 23 | REM 24 | copy bootstrp.mak ..\..\wince\bootstrp.mak 25 | copy wince.vcw ..\..\wince.vcw 26 | copy hpc.vcp ..\..\wince\wince_hpc.vcp 27 | copy palmpc.vcp ..\..\wince\wince_palm_pc.vcp 28 | copy pocketpc.vcp ..\..\wince\wince_pocket_pc.vcp 29 | copy smartphn.vcp ..\..\wince\wince_smartphone.vcp 30 | echo. 31 | echo Proceed with the following steps: 32 | echo. 33 | echo cd ..\..\wince 34 | echo nmake /f bootstrp.mak 35 | echo. 36 | echo Then start Embedded Visual C and open 37 | echo the workspace wince.vcw (at the top of the NetHack tree) 38 | echo to build. See Install.ce for details. 39 | echo. 40 | 41 | -------------------------------------------------------------------------------- /nethack/sys/wince/cesound.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)cesound.c 3.4 $Date: 2003/02/13 12:35:27 $ */ 2 | /* Copyright (c) NetHack PC Development Team 1993 */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | /* */ 5 | /* 6 | * cesound.c - Windows CE NetHack sound support 7 | * 8 | * 9 | */ 10 | 11 | #include "hack.h" 12 | #include 13 | 14 | #ifdef USER_SOUNDS 15 | 16 | void play_usersound(filename, volume) 17 | const char* filename; 18 | int volume; 19 | { 20 | TCHAR wbuf[MAX_PATH+1]; 21 | /* pline("play_usersound: %s (%d).", filename, volume); */ 22 | ZeroMemory(wbuf, sizeof(wbuf)); 23 | (void)sndPlaySound(NH_A2W(filename, wbuf, MAX_PATH), SND_ASYNC | SND_NODEFAULT); 24 | } 25 | 26 | #endif /*USER_SOUNDS*/ 27 | /* cesound.c */ 28 | -------------------------------------------------------------------------------- /nethack/sys/wince/keypad.uu: -------------------------------------------------------------------------------- 1 | begin 600 keypad.bmp 2 | M0DV^`````````#X````H````<`````@````!``$``````(`````````````` 3 | M`````````````````/___P#__________________P``[__[____________ 4 | M_R0``.?_\_?C]__W__?_]^MU``#CP>/GU?/AX\/OY_O5=0``X>/#Q\'QX\'C 5 | MS^?YZR4``/_W_^?5\^?_\^__^]5M``#____WX_?O__OW__?_)```________ 6 | *__________\``.?5 7 | ` 8 | end 9 | -------------------------------------------------------------------------------- /nethack/sys/wince/menubar.uu: -------------------------------------------------------------------------------- 1 | begin 600 menubar.bmp 2 | M0DUV`0```````'8````H````(````!`````!``0````````!```````````` 3 | M````````````````````@```@````("``(````"``(``@(```,#`P`"`@(`` 4 | M``#_``#_````__\`_P```/\`_P#__P``____`'=W=W=W=W=W=W=W=W=W=W=W 5 | M=W=W=W=W=W=W=W=W=W=W=$1$1$1$1'=W=W=W=W=W=W1$_T1/]$1W=W=W=W=W 6 | M=W=T1/_T__1$=W=W=W=W=W=W=/______]'=W=P<'!P=W=W3_______1W=W#P 7 | M\/#P=W=T3__T__]$=W */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #include 5 | #include "winMS.h" 6 | #include "mhaskyn.h" 7 | 8 | int mswin_yes_no_dialog( const char *question, const char *choices, int def) 9 | { 10 | return '\032'; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhaskyn.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINAskYesNO_h 5 | #define MSWINAskYesNO_h 6 | 7 | #include "winMS.h" 8 | 9 | int mswin_yes_no_dialog( const char *question, const char *choices, int def); 10 | 11 | #endif /* MSWINAskYesNO_h */ 12 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhcmd.h: -------------------------------------------------------------------------------- 1 | /* NetHack may be freely redistributed. See license for details. */ 2 | 3 | #ifndef MSWINCMDWindow_h 4 | #define MSWINCMDWindow_h 5 | 6 | #include "winMS.h" 7 | #include "config.h" 8 | #include "global.h" 9 | 10 | HWND mswin_init_command_window (); 11 | 12 | /* if either sz->cx or sz->cy are already set this function will 13 | no modify it. It will adjust them to the minimum size 14 | required by the command window */ 15 | void mswin_command_window_size (HWND hwnd, LPSIZE sz); 16 | 17 | #if defined(WIN_CE_SMARTPHONE) 18 | /* special keypad input handling for SmartPhone */ 19 | BOOL NHSPhoneTranslateKbdMessage(WPARAM wParam, LPARAM lParam, BOOL keyDown); 20 | void NHSPhoneSetKeypadFromString(const char* str); 21 | void NHSPhoneSetKeypadDirection(); 22 | void NHSPhoneSetKeypadDefault(); 23 | #endif 24 | 25 | #endif /* MSWINCMDWindow_h */ 26 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhcolor.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | /* color management functions */ 5 | 6 | #ifndef MSWINColor_h 7 | #define MSWINColor_h 8 | 9 | #define MSWIN_COLOR_BG 0 10 | #define MSWIN_COLOR_FG 1 11 | #define SYSCLR_TO_BRUSH(x) ((HBRUSH)((x) + 1)) 12 | 13 | extern void mswin_init_color_table(); 14 | extern HBRUSH mswin_get_brush(int win_type, int color_index); 15 | extern COLORREF mswin_get_color(int win_type, int color_index); 16 | 17 | #endif /* MSWINColor_h */ 18 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhdlg.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINDlgWindow_h 5 | #define MSWINDlgWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | int mswin_getlin_window (const char *question, char *result, size_t result_size); 12 | int mswin_ext_cmd_window (int* selection); 13 | int mswin_player_selection_window(int* selection); 14 | 15 | #endif /* MSWINDlgWindow_h */ 16 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhfont.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | /* font management functions */ 5 | 6 | #ifndef MSWINFont_h 7 | #define MSWINFont_h 8 | 9 | #include "winMS.h" 10 | 11 | HGDIOBJ mswin_get_font(int win_type, int attr, HDC hdc, BOOL replace); 12 | UINT mswin_charset(); 13 | 14 | #endif /* MSWINFont_h */ 15 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhinput.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINInput_h 5 | #define MSWINInput_h 6 | 7 | /* nethack input queue - store/extract input events */ 8 | #include "winMS.h" 9 | 10 | #define NHEVENT_CHAR 1 11 | #define NHEVENT_MOUSE 2 12 | typedef struct mswin_event { 13 | int type; 14 | union { 15 | struct { 16 | int ch; 17 | } kbd; 18 | 19 | struct { 20 | int mod; 21 | int x, y; 22 | } ms; 23 | }; 24 | } MSNHEvent, *PMSNHEvent; 25 | 26 | #define NHEVENT_KBD(c) { MSNHEvent e; e.type=NHEVENT_CHAR; e.kbd.ch=(c); mswin_input_push(&e); } 27 | #define NHEVENT_MS(_mod, _x, _y) { MSNHEvent e; e.type=NHEVENT_MOUSE; e.ms.mod = (_mod); e.ms.x=(_x); e.ms.y=(_y); mswin_input_push(&e); } 28 | 29 | void mswin_nh_input_init(); 30 | int mswin_have_input(); 31 | void mswin_input_push(PMSNHEvent event); 32 | PMSNHEvent mswin_input_pop(); 33 | PMSNHEvent mswin_input_peek(); 34 | 35 | #endif /* MSWINInput_h */ 36 | 37 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhmain.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMainWindow_h 5 | #define MSWINMainWindow_h 6 | 7 | /* this is a main appliation window */ 8 | 9 | #include "winMS.h" 10 | 11 | extern TCHAR szMainWindowClass[]; 12 | HWND mswin_init_main_window (); 13 | void mswin_layout_main_window(HWND changed_child); 14 | void mswin_select_map_mode(int map_mode); 15 | 16 | #endif /* MSWINMainWindow_h */ 17 | 18 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhmap.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMapWindow_h 5 | #define MSWINMapWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | 12 | HWND mswin_init_map_window (void); 13 | void mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw); 14 | int mswin_map_mode(HWND hWnd, int mode); 15 | 16 | #define ROGUE_LEVEL_MAP_MODE MAP_MODE_ASCII12x16 17 | 18 | #define DEF_CLIPAROUND_MARGIN 5 19 | #define DEF_CLIPAROUND_AMOUNT 1 20 | 21 | #endif /* MSWINMapWindow_h */ 22 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhmenu.h: -------------------------------------------------------------------------------- 1 | /* NetHack may be freely redistributed. See license for details. */ 2 | 3 | #ifndef MSWINMenuWindow_h 4 | #define MSWINMenuWindow_h 5 | 6 | #include "winMS.h" 7 | #include "config.h" 8 | #include "global.h" 9 | 10 | #define MENU_TYPE_TEXT 1 11 | #define MENU_TYPE_MENU 2 12 | 13 | HWND mswin_init_menu_window ( int type ); 14 | int mswin_menu_window_select_menu (HWND hwnd, int how, MENU_ITEM_P **); 15 | void mswin_menu_window_size (HWND hwnd, LPSIZE sz); 16 | 17 | #endif /* MSWINTextWindow_h */ 18 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhmsgwnd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMessageWindow_h 5 | #define MSWINMessageWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_message_window (); 12 | void mswin_message_window_size (HWND hWnd, LPSIZE sz); 13 | 14 | 15 | #endif /* MSWINMessageWindow_h */ 16 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhrip.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #include "winMS.h" 5 | #include "mhrip.h" 6 | #include "mhtext.h" 7 | 8 | HWND mswin_init_RIP_window () 9 | { 10 | return mswin_init_text_window(); 11 | } 12 | 13 | void mswin_display_RIP_window (HWND hWnd) 14 | { 15 | mswin_display_text_window(hWnd); 16 | } 17 | 18 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhrip.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINRIPWindow_h 5 | #define MSWINRIPWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_RIP_window (); 12 | void mswin_display_RIP_window (HWND hwnd); 13 | 14 | #endif /* MSWINRIPWindow_h */ 15 | 16 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhstatus.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINStatusWindow_h 5 | #define MSWINStatusWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_status_window (); 12 | void mswin_status_window_size (HWND hWnd, LPSIZE sz); 13 | 14 | #endif /* MSWINStatusWindow_h */ 15 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhtext.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINTextWindow_h 5 | #define MSWINTextWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_text_window (); 12 | void mswin_display_text_window (HWND hwnd); 13 | 14 | #endif /* MSWINTextWindow_h */ 15 | -------------------------------------------------------------------------------- /nethack/sys/wince/mhtxtbuf.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINTextBuffer_h 5 | #define MSWINTextBuffer_h 6 | 7 | #include "winMS.h" 8 | 9 | typedef struct mswin_nethack_text_buffer* PNHTextBuffer; 10 | PNHTextBuffer mswin_init_text_buffer(BOOL wrap_text); 11 | void mswin_free_text_buffer(PNHTextBuffer pb); 12 | void mswin_add_text(PNHTextBuffer pb, int attr, const char* text); 13 | void mswin_render_text(PNHTextBuffer pb, HWND edit_control); 14 | 15 | #endif /* MSWINTextBuffer_h */ 16 | -------------------------------------------------------------------------------- /nethack/sys/wince/newres.h: -------------------------------------------------------------------------------- 1 | #ifndef __NEWRES_H__ 2 | #define __NEWRES_H__ 3 | 4 | #if !defined(UNDER_CE) 5 | #define UNDER_CE _WIN32_WCE 6 | #endif 7 | 8 | #if defined(_WIN32_WCE) 9 | #if !defined(WCEOLE_ENABLE_DIALOGEX) 10 | #define DIALOGEX DIALOG DISCARDABLE 11 | #endif 12 | #include 13 | #define SHMENUBAR RCDATA 14 | #if (defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)) && (_WIN32_WCE >= 300) 15 | #include 16 | #else 17 | #define I_IMAGENONE (-2) 18 | #define NOMENU 0xFFFF 19 | #define IDS_SHNEW 1 20 | 21 | #define IDM_SHAREDNEW 10 22 | #define IDM_SHAREDNEWDEFAULT 11 23 | #endif 24 | #endif // _WIN32_WCE 25 | 26 | 27 | #ifdef RC_INVOKED 28 | #ifndef _INC_WINDOWS 29 | #define _INC_WINDOWS 30 | #include "winuser.h" // extract from windows header 31 | #endif 32 | #endif 33 | 34 | #ifdef IDC_STATIC 35 | #undef IDC_STATIC 36 | #endif 37 | #define IDC_STATIC (-1) 38 | 39 | #endif //__NEWRES_H__ 40 | 41 | -------------------------------------------------------------------------------- /nethack/sys/wince/winhack.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/wince/winhack.rc -------------------------------------------------------------------------------- /nethack/sys/wince/winhcksp.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/nethack/sys/wince/winhcksp.rc -------------------------------------------------------------------------------- /nethack/sys/winnt/console.rc: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)console.rc 3.4 $Date: 2003/10/14 01:31:28 $ */ 2 | /* Copyright (c) Yitzhak Sapir, 2002. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #include "windows.h" 6 | 7 | 1 ICON DISCARDABLE "NetHack.ICO" 8 | 9 | ///////////////////////////////////////////////////////////////////////////// 10 | // 11 | // Version 12 | // 13 | 14 | VS_VERSION_INFO VERSIONINFO 15 | FILEVERSION 3,4,3,0 16 | PRODUCTVERSION 3,4,3,0 17 | FILEFLAGSMASK 0x1fL 18 | #ifdef _DEBUG 19 | FILEFLAGS 0x9L 20 | #else 21 | FILEFLAGS 0x8L 22 | #endif 23 | FILEOS 0x4L 24 | FILETYPE 0x0L 25 | FILESUBTYPE 0x0L 26 | BEGIN 27 | BLOCK "StringFileInfo" 28 | BEGIN 29 | BLOCK "040904b0" 30 | BEGIN 31 | VALUE "FileDescription", "NetHack for Windows - TTY Interface\0" 32 | VALUE "FileVersion", "3.4.3\0" 33 | VALUE "InternalName", "NetHack\0" 34 | VALUE "LegalCopyright", "Copyright (C) 1985 - 2003. By Stichting Mathematisch Centrum and M. Stephenson. See license for details.\0" 35 | VALUE "OriginalFilename", "NetHack.exe\0" 36 | VALUE "PrivateBuild", "031014\0" 37 | VALUE "ProductName", "NetHack\0" 38 | VALUE "ProductVersion", "3.4.3\0" 39 | END 40 | END 41 | BLOCK "VarFileInfo" 42 | BEGIN 43 | VALUE "Translation", 0x409, 1200 44 | END 45 | END 46 | 47 | 48 | /*console.rc*/ 49 | 50 | -------------------------------------------------------------------------------- /nethack/sys/winnt/nethack.def: -------------------------------------------------------------------------------- 1 | NAME NETHACK 2 | DESCRIPTION 'NetHack 3.4.1 for Windows NT' 3 | EXETYPE WINDOWS 4 | STUB 'WINSTUB.EXE' 5 | CODE PRELOAD MOVEABLE DISCARDABLE 6 | DATA PRELOAD MOVEABLE MULTIPLE 7 | HEAPSIZE 4096 8 | STACKSIZE 9216 9 | EXPORTS WndProc 10 | -------------------------------------------------------------------------------- /nethack/sys/winnt/ntsound.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)ntsound.c 3.4 $Date: 2002/09/02 23:28:45 $ */ 2 | /* Copyright (c) NetHack PC Development Team 1993 */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | /* */ 5 | /* 6 | * ntsound.c - Windows NT NetHack sound support 7 | * 8 | *Edit History: 9 | * Initial Creation 93/12/11 10 | * 11 | */ 12 | 13 | #include "hack.h" 14 | #include "win32api.h" 15 | #include 16 | 17 | #ifdef USER_SOUNDS 18 | 19 | void play_usersound(filename, volume) 20 | const char* filename; 21 | int volume; 22 | { 23 | /* pline("play_usersound: %s (%d).", filename, volume); */ 24 | (void)sndPlaySound(filename, SND_ASYNC | SND_NODEFAULT); 25 | } 26 | 27 | #endif /*USER_SOUNDS*/ 28 | /* ntsound.c */ 29 | -------------------------------------------------------------------------------- /nethack/sys/winnt/win32api.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)win32api.h 3.4 $Date: 2002/07/24 08:25:21 $ */ 2 | /* Copyright (c) NetHack PC Development Team 1996 */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* 6 | * This header file is used to clear up some discrepencies with Visual C 7 | * header files & NetHack before including windows.h, so all NetHack 8 | * files should include "win32api.h" rather than . 9 | */ 10 | # if defined(_MSC_VER) 11 | # undef strcmpi 12 | # undef min 13 | # undef max 14 | # pragma warning(disable:4142) /* Warning, Benign redefinition of type */ 15 | # pragma pack(8) 16 | # endif 17 | 18 | #define WIN32_LEAN_AND_MEAN 19 | 20 | #include 21 | #include 22 | 23 | # if defined(_MSC_VER) 24 | # pragma pack() 25 | # endif 26 | 27 | /*win32api.h*/ 28 | -------------------------------------------------------------------------------- /nethack/util/panic.c: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)panic.c 3.4 1994/03/02 */ 2 | /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* 6 | * This code was adapted from the code in end.c to run in a standalone 7 | * mode for the makedefs / drg code. 8 | */ 9 | 10 | #define NEED_VARARGS 11 | #include "config.h" 12 | 13 | #ifdef AZTEC 14 | #define abort() exit() 15 | #endif 16 | #ifdef VMS 17 | extern void NDECL(vms_abort); 18 | #endif 19 | 20 | /*VARARGS1*/ 21 | boolean panicking; 22 | void VDECL(panic, (char *,...)); 23 | 24 | void 25 | panic VA_DECL(char *,str) 26 | VA_START(str); 27 | VA_INIT(str, char *); 28 | if(panicking++) 29 | #ifdef SYSV 30 | (void) 31 | #endif 32 | abort(); /* avoid loops - this should never happen*/ 33 | 34 | (void) fputs(" ERROR: ", stderr); 35 | Vfprintf(stderr, str, VA_ARGS); 36 | (void) fflush(stderr); 37 | #if defined(UNIX) || defined(VMS) 38 | # ifdef SYSV 39 | (void) 40 | # endif 41 | abort(); /* generate core dump */ 42 | #endif 43 | VA_END(); 44 | exit(EXIT_FAILURE); /* redundant */ 45 | return; 46 | } 47 | 48 | #ifdef ALLOCA_HACK 49 | /* 50 | * In case bison-generated foo_yacc.c tries to use alloca(); if we don't 51 | * have it then just use malloc() instead. This may not work on some 52 | * systems, but they should either use yacc or get a real alloca routine. 53 | */ 54 | long *alloca(cnt) 55 | unsigned cnt; 56 | { 57 | return cnt ? alloc(cnt) : (long *)0; 58 | } 59 | #endif 60 | 61 | /*panic.c*/ 62 | -------------------------------------------------------------------------------- /nethack/win/Qt/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleGetInfoHTML 6 | http://www.nethack.org 7 | CFBundleGetInfoString 8 | Copyright (C) 1985-2003 Stichting Mathematisch Centrum 9 | CFBundleIconFile 10 | nethack.icns 11 | CFBundleIdentifier 12 | org.nethack.qt 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 3.4.3 17 | CFBundleSignature 18 | NHak 19 | 20 | 21 | -------------------------------------------------------------------------------- /nethack/win/Qt/knethack.lnk: -------------------------------------------------------------------------------- 1 | # KDE Config File 2 | # Call this file knethack.kdelnk or knethack.desktop 3 | [KDE Desktop Entry] 4 | Name=Nethack 5 | Name[fr]=Nethack 6 | Name[hu]=Nethack 7 | Name[no]=Nethack 8 | Name[sk]=Nethack 9 | Name[cs]=Nethack 10 | Name[hr]=Nethack 11 | Name[pt]=Nethack 12 | Name[pt_BR]=Nethack 13 | Icon=knh.xpm 14 | Exec=knethack -caption "%c" %i %m 15 | Type=Application 16 | DocPath=knethack/index.html 17 | Comment=The classic Unix role-playing game - fight monsters and seek the Amulet of Yendor for your god! 18 | 19 | -------------------------------------------------------------------------------- /nethack/win/Qt/knh-mini.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *noname[] = { 3 | /* width height ncolors chars_per_pixel */ 4 | "16 16 7 1", 5 | /* colors */ 6 | " c #000000", 7 | ". c #DCDCDC", 8 | "X c #008080", 9 | "o c #A0A0A0", 10 | "O c None", 11 | "+ c #FFFFFF", 12 | "@ c #C3C3C3", 13 | /* pixels */ 14 | "OOOOOOOOOOOOOOOO", 15 | "OOO+O+++@@@O@OOO", 16 | "O+O+++++@@@@@O.O", 17 | "O+o+XXXXX X @ . ", 18 | "O+o+XXXX X X@ . ", 19 | "OO +XXXXX X @ O ", 20 | "OOO+XXXX X X@ OO", 21 | "OOO+XXXXX X @ OO", 22 | "OOO+XXXX X X@ OO", 23 | "OOOO+XXXX X@ OO", 24 | "OOOO+XXX X . OO", 25 | "OOO+O+XXX . . OO", 26 | "OO+++ +X . ... O", 27 | "O+++. O+. .... ", 28 | "OO+. OOOOOO.. O", 29 | "OOOOOOOOOOOOOOOO" 30 | }; 31 | -------------------------------------------------------------------------------- /nethack/win/Qt/qpe-nethack.control: -------------------------------------------------------------------------------- 1 | Files: bin/nethack apps/Games/nethack.desktop games/lib/nethackdir/[a-r]* games/lib/nethackdir/[t-z]* games/lib/nethackdir/save games/lib/nethackdir/s*.* games/lib/nethackdir/[A-Z0-9]* 2 | Priority: optional 3 | Section: qpe/games 4 | Maintainer: Warwick Allison 5 | Architecture: arm 6 | Version: 3.4.0-1 7 | Depends: qpe-base ($QPE_VERSION) 8 | Description: NetHack - The Dungeon Game 9 | Graphical version of NetHack for Qtopia 10 | -------------------------------------------------------------------------------- /nethack/win/X11/nh32icon: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)nh32icon 3.4 2002/02/12 */ 2 | /* Copyright (C) 1993,1995 by Robert Patrick Rankin */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | /* 32x32 X11 icon for NetHack. */ 6 | 7 | #define nh32icon_width 32 8 | #define nh32icon_height 32 9 | static unsigned char nh32icon_bits[] = { 10 | 0xff, 0x7f, 0xfe, 0xff, 0x01, 0xc0, 0x03, 0x80, 0x01, 0x00, 0x40, 0x82, 11 | 0x21, 0x25, 0xc0, 0x83, 0x61, 0x25, 0x80, 0x81, 0xe1, 0x3d, 0x80, 0x81, 12 | 0xa1, 0x25, 0x80, 0x81, 0x21, 0x25, 0x80, 0x81, 0x01, 0x00, 0xe0, 0x87, 13 | 0x71, 0x48, 0x90, 0x89, 0x81, 0x48, 0x80, 0x81, 0x61, 0x78, 0x80, 0x81, 14 | 0x81, 0x40, 0x80, 0x81, 0x71, 0x42, 0x84, 0x81, 0x03, 0x00, 0x8a, 0xc1, 15 | 0x02, 0x00, 0x84, 0x41, 0x32, 0x67, 0x80, 0x41, 0xf3, 0x7f, 0x80, 0xc1, 16 | 0xf1, 0x7f, 0x84, 0x81, 0x71, 0x77, 0x8a, 0x81, 0xb1, 0x68, 0x84, 0x81, 17 | 0x71, 0x77, 0x80, 0x81, 0x71, 0x77, 0x80, 0x81, 0xb1, 0x68, 0x84, 0x81, 18 | 0x71, 0x77, 0x8a, 0x81, 0xf1, 0x7f, 0x84, 0x81, 0xe1, 0x3f, 0x80, 0x81, 19 | 0xc1, 0x1f, 0x80, 0x81, 0x81, 0x0f, 0x80, 0x81, 0x01, 0x07, 0x00, 0x81, 20 | 0x01, 0xc0, 0x03, 0x80, 0xff, 0x7f, 0xfe, 0xff}; 21 | -------------------------------------------------------------------------------- /nethack/win/X11/pet_mark.xbm: -------------------------------------------------------------------------------- 1 | #define pet_mark_width 16 2 | #define pet_mark_height 16 3 | static unsigned char pet_mark_bits[] = { 4 | 0x00, 0x00, 0x6c, 0x00, 0xfe, 0x00, 0xfe, 0x00, 0x7c, 0x00, 0x38, 0x00, 5 | 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 7 | -------------------------------------------------------------------------------- /nethack/win/gem/Install.gem: -------------------------------------------------------------------------------- 1 | Hi, 2 | 3 | This is nethack3.4.1 for Atari Gem and tty 4 | Windowing System. 5 | 6 | It is by far not complete or perfect. 7 | (My english too :-)) 8 | 9 | You need at least 2Meg free RAM, 16 colors and 10 | 3 Meg free Disk space. 11 | In fact it works also with monochrome, but you 12 | have to create a nh2.img (and title2.img) on your own. 13 | 14 | Atari windowport changes from 3.3.0: 15 | added a ASCII-Mode in GEM -> F2 16 | the cursor is switchable -> F3 17 | added inventory/menu search -> : 18 | removed the redraw problem 19 | removed almost all flicker (except with NOVA-Card :-() 20 | placed the GEM-dialogues more pleasent 21 | tty corner windows (i.e. inv) display now correct in a vt52-win 22 | greyed out old messages 23 | placed the GEM-windows more convient 24 | ... 25 | 26 | Feel free to contact me about Issues and Errors. 27 | e-mail: gaston@cs.tu-berlin.de 28 | 29 | You use this program at your own risk, I can't 30 | guarantee it will work or do you no harm. 31 | 32 | Look at the nethack licence too. 33 | 34 | As you may have noticed the look and feel is from 35 | Warwick Allisons nethack3.1.3d Gem Version 36 | and I have used E_Gem2.2.0 from Christian Grunenberg. 37 | 38 | Marvin 39 | -------------------------------------------------------------------------------- /nethack/win/gem/gem_rso.uu: -------------------------------------------------------------------------------- 1 | begin 777 GEM_RSC.RSO 2 | M4E-/2 1( @ " ! !#__P __\ 3 | M 4 | M '___^!____@ 5 | M #__P #__P 6 | M 7 | M /_ '___^!____@ :1F]1)Y2KX@ 8 | M (\TJP "!$U%3E4 P'1$]!0D]55 '@9$3U%5250 __\ 0 #"E-4 9 | M05154TQ)3D4 $*1U)!0E-405154P#__P " ,&34%05TE. !DU!4$)/ 10 | M6 0E-05!#55)33U( __\ P #!4%"3U54 "$9,64%"3U54 !!T]+ 11 | M04)/550 ,+3D542$%#2TE-1S __\ ! #!4Q)3D53 "$9,64Q)3D53 12 | M !!5%,24Y% ""4Q)3D533$E35 #__P % ,(64Y#2$])0T4 +1DQ9 13 | M64Y#2$])0T4 $(64Y04D]-4%0 ()4T]-14-(05)3 # UE.,0 -0-9 14 | M3DX #<'04Y90TA!4@ . A#2$]314Y#2 .@5#3U5.5 .P193D]+ /__ 15 | M 8 P=,24Y%1T54 "D9,64Q)3D5'150 $(3$=04D]-4%0 ('3$=2 16 | M15!,60 P-13$< 0$3$=/2P#__P ' ,)1$E214-424]. #$9,641) 17 | M4D5#5$E/3@ !01$25(Q 5!$1)4CD !<'1$E21$]73@ &05$25)54 #_ 18 | M_P ( ,&35-'5TE. !!55035-' ""D=204)-4T=724X ,%1$Y-4T< 19 | M 0(35-'3$E.15, __\ "0 #!TY!345'150 *1DQ93D%-14=%5 @90 20 | M3$Y!344 0.3D542$%#2U!)0U154D4 __\ "@ #!5!!1T52 "$9,65!! 21 | @1T52 !!E%004=%4@#__P + ,&3DA)0T]. /____\ 22 | end 23 | -------------------------------------------------------------------------------- /nethack/win/gem/gr_rect.h: -------------------------------------------------------------------------------- 1 | /* gr_rect.h */ 2 | #include 3 | /********** structs **********/ 4 | typedef struct { 5 | GRECT *rects; 6 | int max,used; 7 | } dirty_rect; 8 | /********* functions ************/ 9 | dirty_rect *new_dirty_rect(int size); 10 | void delete_dirty_rect(dirty_rect *this); 11 | int add_dirty_rect(dirty_rect *dr,GRECT *area); 12 | int get_dirty_rect(dirty_rect* dr,GRECT *area); 13 | int clear_dirty_rect(dirty_rect *dr); 14 | int resize_dirty_rect(dirty_rect *dr,int new_size); 15 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnaskstr.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnaskstr.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackAskStringDialog_h 6 | #define GnomeHackAskStringDialog_h 7 | 8 | 9 | int ghack_ask_string_dialog(const char *szMessageStr, 10 | const char *szDefaultStr, const char *szTitleStr, 11 | char *buffer); 12 | 13 | #endif /* GnomeHackAskStringDialog_h */ 14 | 15 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnglyph.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnglyph.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackGlyph_h 6 | #define GnomeHackGlyph_h 7 | 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | /* the prototypes in system headers contain useless argument names 12 | that trigger spurious warnings if gcc's `-Wshadow' option is used */ 13 | #undef index 14 | #define index _hide_index_ 15 | #define time _hide_time_ 16 | 17 | #include 18 | #include 19 | 20 | #undef index 21 | #define index strchr 22 | #undef time 23 | 24 | 25 | extern short glyph2tile[]; /* From tile.c */ 26 | 27 | typedef struct { 28 | GdkImlibImage* im; 29 | int count; 30 | int width; 31 | int height; 32 | } GHackGlyphs; 33 | 34 | extern int ghack_init_glyphs( const char *); 35 | extern void ghack_free_glyphs( void); 36 | extern void ghack_dispose_glyphs( void); 37 | extern int ghack_glyph_count( void); 38 | extern GdkImlibImage* ghack_image_from_glyph( int, gboolean); 39 | extern int ghack_glyph_height( void); 40 | extern int ghack_glyph_width( void); 41 | 42 | #endif /* GnomeHackGlyph_h */ 43 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnmain.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnmain.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackMainWindow_h 6 | #define GnomeHackMainWindow_h 7 | 8 | #include 9 | #include 10 | 11 | 12 | void ghack_init_main_window( int argc, char** argv); 13 | void ghack_main_window_add_map_window(GtkWidget* win); 14 | void ghack_main_window_add_message_window(GtkWidget* win); 15 | void ghack_main_window_add_status_window(GtkWidget* win); 16 | void ghack_main_window_add_text_window(GtkWidget *); 17 | void ghack_main_window_add_worn_window(GtkWidget* win); 18 | void ghack_main_window_remove_window(GtkWidget *); 19 | void ghack_main_window_update_inventory(); 20 | void ghack_save_game_cb(GtkWidget *widget, gpointer data); 21 | GtkWidget* ghack_get_main_window(); 22 | 23 | 24 | 25 | #endif /* GnomeHackMainWindow_h */ 26 | 27 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnmap.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnmap.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackMapWindow_h 6 | #define GnomeHackMapWindow_h 7 | 8 | #include 9 | #include 10 | #include "config.h" 11 | #include "global.h" 12 | 13 | GtkWidget *ghack_init_map_window(void); 14 | void ghack_reinit_map_window(void); 15 | 16 | #endif /* GnomeHackMapWindow_h */ 17 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnmenu.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnmenu.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackMenuWindow_h 6 | #define GnomeHackMenuWindow_h 7 | 8 | #include 9 | #include "config.h" 10 | #include "global.h" 11 | #include "gnomeprv.h" 12 | 13 | GtkWidget* ghack_init_menu_window( void ); 14 | 15 | struct _GHackMenuItem 16 | { 17 | int glyph; 18 | const ANY_P *identifier; 19 | CHAR_P accelerator; 20 | CHAR_P group_accel; 21 | int attr; 22 | const char* str; 23 | BOOLEAN_P presel; 24 | }; 25 | 26 | typedef struct _GHackMenuItem GHackMenuItem; 27 | 28 | int ghack_menu_window_select_menu (GtkWidget *menuWin, 29 | MENU_ITEM_P **_selected, gint how); 30 | int ghack_menu_ext_cmd(void); 31 | 32 | #endif /* GnomeHackMenuWindow_h */ 33 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnmesg.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnmesg.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackMessageWindow_h 6 | #define GnomeHackMessageWindow_h 7 | 8 | #include 9 | #include "config.h" 10 | 11 | GtkWidget* ghack_init_message_window ( /* GnomeHackKeyBuffer g_keybuffer, 12 | GnomeHackClickBuffer g_clickbuffer */ ); 13 | void ghack_message_window_clear(GtkWidget *widget, gpointer data); 14 | void ghack_message_window_destroy(); 15 | void ghack_message_window_display(GtkWidget *widget, boolean block, 16 | gpointer data); 17 | void ghack_message_window_put_string(GtkWidget *widget, int attr, 18 | const char* text, gpointer data); 19 | void ghack_message_window_use_RIP(int how); 20 | void ghack_message_window_scroll(int dx, int dy); 21 | 22 | 23 | #endif /* GnomeHackMessageWindow_h */ 24 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnomeprv.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnomeprv.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHack_h 6 | #define GnomeHack_h 7 | 8 | /* These are the base nethack include files */ 9 | #include "hack.h" 10 | #include "dlb.h" 11 | #include "patchlevel.h" 12 | 13 | #include "winGnome.h" 14 | 15 | #endif /* GnomeHack_h */ 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnopts.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnopts.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackSettings_h 6 | #define GnomeHackSettings_h 7 | 8 | 9 | void ghack_settings_dialog( void); 10 | 11 | 12 | #endif /* GnomeHackSettings.h */ 13 | 14 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnplayer.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnplayer.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackPlayerSelDialog_h 6 | #define GnomeHackPlayerSelDialog_h 7 | 8 | int ghack_player_sel_dialog(const char **, const gchar*, const gchar*); 9 | 10 | #endif /* GnomeHackPlayerSelDialog_h */ 11 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnsignal.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnsignal.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Anthony Taylor */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackSignals_h 6 | #define GnomeHackSignals_h 7 | 8 | #include 9 | #include 10 | #include "gnomeprv.h" 11 | #include "gnglyph.h" 12 | 13 | /* The list of custom signals */ 14 | 15 | enum { 16 | GHSIG_CURS, 17 | GHSIG_PUTSTR, 18 | GHSIG_PRINT_GLYPH, 19 | GHSIG_CLEAR, 20 | GHSIG_DISPLAY, 21 | GHSIG_START_MENU, 22 | GHSIG_ADD_MENU, 23 | GHSIG_END_MENU, 24 | GHSIG_SELECT_MENU, 25 | GHSIG_CLIPAROUND, 26 | GHSIG_FADE_HIGHLIGHT, 27 | GHSIG_DELAY, 28 | GHSIG_LAST_SIG 29 | }; 30 | 31 | guint ghack_signals[GHSIG_LAST_SIG]; 32 | 33 | extern void ghack_init_signals( void); 34 | 35 | 36 | void ghack_handle_key_press(GtkWidget *widget, GdkEventKey *event, 37 | gpointer data); 38 | void ghack_handle_button_press(GtkWidget *widget, GdkEventButton *event, 39 | gpointer data); 40 | 41 | typedef struct { 42 | int x, y, mod; 43 | } GHClick; 44 | 45 | extern GList *g_keyBuffer; 46 | extern GList *g_clickBuffer; 47 | extern int g_numKeys; 48 | extern int g_numClicks; 49 | 50 | extern int g_askingQuestion; 51 | 52 | void ghack_delay( GtkWidget *win, int numMillisecs, gpointer data); 53 | 54 | 55 | #endif /* GnomeHackSignals_h */ 56 | 57 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnstatus.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnstatus.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackStatusWindow_h 6 | #define GnomeHackStatusWindow_h 7 | 8 | #include 9 | #include "config.h" 10 | #include "global.h" 11 | 12 | GtkWidget* ghack_init_status_window (); 13 | 14 | #endif /* GnomeHackStatusWindow_h */ 15 | -------------------------------------------------------------------------------- /nethack/win/gnome/gntext.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gntext.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackTextWindow_h 6 | #define GnomeHackTextWindow_h 7 | 8 | #include 9 | #include "config.h" 10 | #include "global.h" 11 | 12 | GtkWidget* ghack_init_text_window ( ); 13 | void ghack_text_window_clear(GtkWidget *widget, gpointer data); 14 | void ghack_text_window_destroy(); 15 | void ghack_text_window_display(GtkWidget *widget, boolean block, 16 | gpointer data); 17 | void ghack_text_window_put_string(GtkWidget *widget, int attr, 18 | const char* text, gpointer data); 19 | void ghack_text_window_rip_string( const char* ripString); 20 | 21 | 22 | #endif /* GnomeHackTextWindow_h */ 23 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnworn.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnbind.c 3.4 2002/04/15 */ 2 | /* Copyright (C) 2002 by Dylan Alex Simon */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackWornWindow_h 6 | #define GnomeHackWornWindow_h 7 | 8 | #include 9 | #include "config.h" 10 | #include "global.h" 11 | 12 | GtkWidget* ghack_init_worn_window(); 13 | 14 | #endif /* GnomeHackWornWindow_h */ 15 | -------------------------------------------------------------------------------- /nethack/win/gnome/gnyesno.h: -------------------------------------------------------------------------------- 1 | /* SCCS Id: @(#)gnyesno.h 3.4 2000/07/16 */ 2 | /* Copyright (C) 1998 by Erik Andersen */ 3 | /* NetHack may be freely redistributed. See license for details. */ 4 | 5 | #ifndef GnomeHackYesNoDialog_h 6 | #define GnomeHackYesNoDialog_h 7 | 8 | int ghack_yes_no_dialog( const char* szQuestionStr, 9 | const char* szChoicesStr, int nDefault); 10 | 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /nethack/win/share/tile.h: -------------------------------------------------------------------------------- 1 | typedef unsigned char pixval; 2 | 3 | typedef struct { 4 | pixval r, g, b; 5 | } pixel; 6 | 7 | #define MAXCOLORMAPSIZE 256 8 | 9 | #define CM_RED 0 10 | #define CM_GREEN 1 11 | #define CM_BLUE 2 12 | 13 | /* shared between reader and writer */ 14 | extern pixval ColorMap[3][MAXCOLORMAPSIZE]; 15 | extern int colorsinmap; 16 | /* writer's accumulated colormap */ 17 | extern pixval MainColorMap[3][MAXCOLORMAPSIZE]; 18 | extern int colorsinmainmap; 19 | 20 | #include "dlb.h" /* for MODEs */ 21 | 22 | /* size of tiles */ 23 | #ifndef TILE_X 24 | #define TILE_X 16 25 | #endif 26 | #ifndef TILE_Y 27 | #define TILE_Y 16 28 | #endif 29 | 30 | #define Fprintf (void) fprintf 31 | 32 | 33 | extern boolean FDECL(fopen_text_file, (const char *, const char *)); 34 | extern boolean FDECL(read_text_tile, (pixel (*)[TILE_X])); 35 | extern boolean FDECL(write_text_tile, (pixel (*)[TILE_X])); 36 | extern int NDECL(fclose_text_file); 37 | 38 | extern void NDECL(init_colormap); 39 | extern void NDECL(merge_colormap); 40 | 41 | #if defined(MICRO) || defined(WIN32) 42 | #undef exit 43 | # if !defined(MSDOS) && !defined(WIN32) 44 | extern void FDECL(exit, (int)); 45 | # endif 46 | #endif 47 | -------------------------------------------------------------------------------- /nethack/win/win32/dgnstuff.mak: -------------------------------------------------------------------------------- 1 | #Set all of these or none of them 2 | #YACC = byacc.exe 3 | #LEX = flex.exe 4 | #YTABC = y_tab.c 5 | #YTABH = y_tab.h 6 | #LEXYYC = lexyy.c 7 | 8 | !IF "$(YACC)"!="" 9 | @echo Yacc-alike set to $(YACC) 10 | @echo YTABC set to $(YTABC) 11 | @echo YTABH set to $(YTABH) 12 | !ENDIF 13 | 14 | !IF "$(LEX)"!="" 15 | @echo Lex-alike set to $(LEX) 16 | @echo LEXYYC set to $(LEXYYC) 17 | !ENDIF 18 | 19 | default: all 20 | 21 | all: ..\util\dgn_yacc.c ..\util\dgn_lex.c 22 | 23 | rebuild: clean all 24 | 25 | clean: 26 | -del ..\util\dgn_lex.c 27 | -del ..\util\dgn_yacc.c 28 | -del ..\include\dgn_comp.h 29 | 30 | #========================================== 31 | # Dungeon Compiler Stuff 32 | #========================================== 33 | 34 | ..\util\dgn_yacc.c ..\include\dgn_comp.h : ..\util\dgn_comp.y 35 | !IF "$(YACC)"=="" 36 | @echo Using pre-built dgn_yacc.c and dgn_comp.h 37 | @copy ..\sys\share\dgn_yacc.c ..\util\dgn_yacc.c 38 | @copy ..\sys\share\dgn_comp.h ..\include\dgn_comp.h 39 | !ELSE 40 | chdir ..\util 41 | $(YACC) -d dgn_comp.y 42 | copy $(YTABC) $@ 43 | copy $(YTABH) ..\include\dgn_comp.h 44 | @del $(YTABC) 45 | @del $(YTABH) 46 | chdir ..\build 47 | !ENDIF 48 | 49 | ..\util\dgn_lex.c: ..\util\dgn_comp.l 50 | !IF "$(LEX)"=="" 51 | @echo Using pre-built dgn_lex.c 52 | @copy ..\sys\share\dgn_lex.c $@ 53 | !ELSE 54 | chdir ..\util 55 | $(LEX) dgn_comp.l 56 | copy $(LEXYYC) $@ 57 | @del $(LEXYYC) 58 | chdir ..\build 59 | !ENDIF 60 | -------------------------------------------------------------------------------- /nethack/win/win32/levstuff.mak: -------------------------------------------------------------------------------- 1 | #YACC = byacc.exe 2 | #LEX = flex.exe 3 | #YTABC = y_tab.c 4 | #YTABH = y_tab.h 5 | #LEXYYC = lexyy.c 6 | 7 | !IF "$(YACC)"!="" 8 | @echo Yacc-alike set to $(YACC) 9 | @echo YTABC set to $(YTABC) 10 | @echo YTABH set to $(YTABH) 11 | !ENDIF 12 | 13 | !IF "$(LEX)"!="" 14 | @echo Lex-alike set to $(LEX) 15 | @echo LEXYYC set to $(LEXYYC) 16 | !ENDIF 17 | 18 | 19 | default: all 20 | 21 | all: ..\util\lev_yacc.c ..\util\lev_lex.c 22 | 23 | rebuild: clean all 24 | 25 | clean: 26 | -del ..\util\lev_lex.c 27 | -del ..\util\lev_yacc.c 28 | -del ..\include\lev_comp.h 29 | 30 | #========================================== 31 | # Level Compiler Stuff 32 | #========================================== 33 | ..\util\lev_yacc.c ..\include\lev_comp.h: ..\util\lev_comp.y 34 | !IF "$(YACC)"=="" 35 | @echo Using pre-built lev_yacc.c and lev_comp.h 36 | @copy ..\sys\share\lev_yacc.c ..\util\lev_yacc.c 37 | @copy ..\sys\share\lev_comp.h ..\include\lev_comp.h 38 | !ELSE 39 | chdir ..\util 40 | $(YACC) -d lev_comp.y 41 | copy $(YTABC) $@ 42 | copy $(YTABH) ..\include\lev_comp.h 43 | @del $(YTABC) 44 | @del $(YTABH) 45 | chdir ..\build 46 | !ENDIF 47 | 48 | ..\util\lev_lex.c: ..\util\lev_comp.l 49 | !IF "$(LEX)"=="" 50 | @echo Using pre-built lev_lex.c 51 | @copy ..\sys\share\lev_lex.c $@ 52 | !ELSE 53 | chdir ..\util 54 | $(LEX) lev_comp.l 55 | copy $(LEXYYC) $@ 56 | @del $(LEXYYC) 57 | chdir ..\build 58 | !ENDIF 59 | 60 | -------------------------------------------------------------------------------- /nethack/win/win32/mhaskyn.c: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #include 5 | #include "winMS.h" 6 | #include "mhaskyn.h" 7 | 8 | int mswin_yes_no_dialog( const char *question, const char *choices, int def) 9 | { 10 | return '\032'; 11 | } 12 | -------------------------------------------------------------------------------- /nethack/win/win32/mhaskyn.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINAskYesNO_h 5 | #define MSWINAskYesNO_h 6 | 7 | #include "winMS.h" 8 | 9 | int mswin_yes_no_dialog( const char *question, const char *choices, int def); 10 | 11 | #endif /* MSWINAskYesNO_h */ 12 | -------------------------------------------------------------------------------- /nethack/win/win32/mhdlg.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINDlgWindow_h 5 | #define MSWINDlgWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | int mswin_getlin_window (const char *question, char *result, size_t result_size); 12 | int mswin_ext_cmd_window (int* selection); 13 | int mswin_player_selection_window(int* selection); 14 | 15 | #endif /* MSWINDlgWindow_h */ 16 | -------------------------------------------------------------------------------- /nethack/win/win32/mhfont.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | /* font management functions */ 5 | 6 | #ifndef MSWINFont_h 7 | #define MSWINFont_h 8 | 9 | #include "winMS.h" 10 | 11 | HGDIOBJ mswin_get_font(int win_type, int attr, HDC hdc, BOOL replace); 12 | void mswin_init_splashfonts(HWND hWnd); 13 | void mswin_destroy_splashfonts(void); 14 | UINT mswin_charset(void); 15 | 16 | #endif /* MSWINFont_h */ 17 | -------------------------------------------------------------------------------- /nethack/win/win32/mhinput.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINInput_h 5 | #define MSWINInput_h 6 | 7 | /* nethack input queue - store/extract input events */ 8 | #include "winMS.h" 9 | 10 | #define NHEVENT_CHAR 1 11 | #define NHEVENT_MOUSE 2 12 | typedef struct mswin_event { 13 | int type; 14 | union { 15 | struct { 16 | int ch; 17 | } kbd; 18 | 19 | struct { 20 | int mod; 21 | int x, y; 22 | } ms; 23 | }; 24 | } MSNHEvent, *PMSNHEvent; 25 | 26 | #define NHEVENT_KBD(c) { MSNHEvent e; e.type=NHEVENT_CHAR; e.kbd.ch=(c); mswin_input_push(&e); } 27 | #define NHEVENT_MS(_mod, _x, _y) { MSNHEvent e; e.type=NHEVENT_MOUSE; e.ms.mod = (_mod); e.ms.x=(_x); e.ms.y=(_y); mswin_input_push(&e); } 28 | 29 | void mswin_nh_input_init(void); 30 | int mswin_have_input(void); 31 | void mswin_input_push(PMSNHEvent event); 32 | PMSNHEvent mswin_input_pop(void); 33 | PMSNHEvent mswin_input_peek(void); 34 | 35 | #endif /* MSWINInput_h */ 36 | -------------------------------------------------------------------------------- /nethack/win/win32/mhmain.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMainWindow_h 5 | #define MSWINMainWindow_h 6 | 7 | /* this is a main appliation window */ 8 | 9 | #include "winMS.h" 10 | 11 | HWND mswin_init_main_window (void); 12 | void mswin_layout_main_window(HWND changed_child); 13 | void mswin_select_map_mode(int map_mode); 14 | void mswin_menu_check_intf_mode(void); 15 | 16 | #endif /* MSWINMainWindow_h */ 17 | -------------------------------------------------------------------------------- /nethack/win/win32/mhmap.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMapWindow_h 5 | #define MSWINMapWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | 12 | HWND mswin_init_map_window (void); 13 | void mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw); 14 | int mswin_map_mode(HWND hWnd, int mode); 15 | 16 | #define ROGUE_LEVEL_MAP_MODE MAP_MODE_ASCII12x16 17 | 18 | #define DEF_CLIPAROUND_MARGIN 5 19 | #define DEF_CLIPAROUND_AMOUNT 1 20 | 21 | #endif /* MSWINMapWindow_h */ 22 | -------------------------------------------------------------------------------- /nethack/win/win32/mhmenu.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMenuWindow_h 5 | #define MSWINMenuWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | #define MENU_TYPE_TEXT 1 12 | #define MENU_TYPE_MENU 2 13 | 14 | HWND mswin_init_menu_window ( int type ); 15 | int mswin_menu_window_select_menu (HWND hwnd, int how, MENU_ITEM_P **); 16 | void mswin_menu_window_size (HWND hwnd, LPSIZE sz); 17 | 18 | #endif /* MSWINTextWindow_h */ 19 | -------------------------------------------------------------------------------- /nethack/win/win32/mhmsgwnd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINMessageWindow_h 5 | #define MSWINMessageWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_message_window (void); 12 | void mswin_message_window_size (HWND hWnd, LPSIZE sz); 13 | 14 | 15 | #endif /* MSWINMessageWindow_h */ 16 | -------------------------------------------------------------------------------- /nethack/win/win32/mhrip.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINRIPWindow_h 5 | #define MSWINRIPWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | void mswin_finish_rip_text(winid wid); 12 | HWND mswin_init_RIP_window (void); 13 | void mswin_display_RIP_window (HWND hwnd); 14 | 15 | #endif /* MSWINRIPWindow_h */ 16 | -------------------------------------------------------------------------------- /nethack/win/win32/mhsplash.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINSplashWindow_h 5 | #define MSWINSplashWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | void mswin_display_splash_window (BOOL); 12 | 13 | #endif /* MSWINSplashWindow_h */ 14 | -------------------------------------------------------------------------------- /nethack/win/win32/mhstatus.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINStatusWindow_h 5 | #define MSWINStatusWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_status_window (void); 12 | void mswin_status_window_size (HWND hWnd, LPSIZE sz); 13 | 14 | #endif /* MSWINStatusWindow_h */ 15 | -------------------------------------------------------------------------------- /nethack/win/win32/mhtext.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001 by Alex Kompel */ 2 | /* NetHack may be freely redistributed. See license for details. */ 3 | 4 | #ifndef MSWINTextWindow_h 5 | #define MSWINTextWindow_h 6 | 7 | #include "winMS.h" 8 | #include "config.h" 9 | #include "global.h" 10 | 11 | HWND mswin_init_text_window (void); 12 | void mswin_display_text_window (HWND hwnd); 13 | 14 | #endif /* MSWINTextWindow_h */ 15 | -------------------------------------------------------------------------------- /nethack/win/win32/mnsel.uu: -------------------------------------------------------------------------------- 1 | begin 600 mnsel.bmp 2 | M0DU^`````````#X````H````$````!`````!``$``````$````!T$@``=!(` 3 | M`````````````````/___P```````````#_\```W_```,_P``"7\```F_``` 4 | D)WP``">\```_W```/^P``#_T```__```/_P````````````` 5 | ` 6 | end 7 | -------------------------------------------------------------------------------- /nethack/win/win32/mnselcnt.uu: -------------------------------------------------------------------------------- 1 | begin 600 mnselcnt.bmp 2 | M0DU^`````````#X````H````$````!`````!``$``````$````!T$@``=!(` 3 | M`````````````````/___P```````````#_\```__```.]P``#`,```[W``` 4 | D.]P``#O<```[W```,`P``#O<```__```/_P````````````` 5 | ` 6 | end 7 | -------------------------------------------------------------------------------- /nethack/win/win32/mnunsel.uu: -------------------------------------------------------------------------------- 1 | begin 600 mnunsel.bmp 2 | M0DU^`````````#X````H````$````!`````!``$``````$````!T$@``=!(` 3 | M`````````````````/___P```````````#_\```__```/_P``#_\```__``` 4 | D/_P``#_\```__```/_P``#_\```__```/_P````````````` 5 | ` 6 | end 7 | -------------------------------------------------------------------------------- /nethack/win/win32/petmark.uu: -------------------------------------------------------------------------------- 1 | begin 600 petmark.bmp 2 | M0DWV`````````'8````H````$````!`````!``0``````(`````````````` 3 | M````````````;&Q'````_P```````("``(````"``(``@(```,#`P`#`W,`` 4 | M\,JF``0$!``("`@`#`P,`!$1$0`6%A8`'!P<```````````````````````` 5 | M```````````````````````````````````````````````````````````` 6 | M``````````````````````````````````````````````````````$````` 7 | 5````$1````````$1$0```````!`0 8 | ` 9 | end 10 | -------------------------------------------------------------------------------- /nethack/win/win32/tiles.mak: -------------------------------------------------------------------------------- 1 | default: all 2 | 3 | all: ..\win\win32\tiles.bmp 4 | 5 | clean: 6 | -del ..\src\win\win32\tiles.bmp 7 | -del ..\win\win32\tiles.bmp 8 | 9 | #========================================== 10 | # Building the tiles file tile.bmp 11 | #========================================== 12 | 13 | ..\src\tiles.bmp : ..\win\share\monsters.txt ..\win\share\objects.txt \ 14 | ..\win\share\other.txt 15 | chdir ..\src 16 | ..\util\tile2bmp.exe tiles.bmp 17 | chdir ..\build 18 | 19 | ..\win\win32\tiles.bmp: ..\src\tiles.bmp 20 | @copy ..\src\tiles.bmp ..\win\win32\tiles.bmp 21 | 22 | -------------------------------------------------------------------------------- /petmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkz/iNetHack/53f38ba57ffbf72506287b61d685acf38d565e35/petmark.png --------------------------------------------------------------------------------