Source:NetHack 3.4.3/include/trampoli.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/trampoli.h from NetHack 3.4.3. To link to a particular line, write [[trampoli.h#line123]], for example.

  1. /*	SCCS Id: @(#)trampoli.h 3.4	1995/06/01	*/
  2. /* Copyright (c) 1989, by Norm Meluch and Stephen Spackman	  */
  3. /* NetHack may be freely redistributed.  See license for details. */

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1. #ifndef TRAMPOLI_H
  2. #define TRAMPOLI_H
  3.  
  4. #ifdef USE_TRAMPOLI
  5.  
  6. /* ### apply.c ### */
  7. #define dig()	  dig_()
  8. #define doapply() doapply_()
  9. #define dojump()  dojump_()
  10. #define dorub()   dorub_()
  11.  
  12.  
  13. /* ### artifact.c ### */
  14. #define doinvoke()     doinvoke_()
  15.  
  16.  
  17. /* ### cmd.c ### */
  18. #define doextcmd()	   doextcmd_()
  19. #define doextlist()	   doextlist_()
  20. #define domonability()	   domonability_()
  21. #define enter_explore_mode() enter_explore_mode_()
  22. #define doprev_message() doprev_message_()
  23. #define timed_occupation() timed_occupation_()
  24. #define wiz_attributes()   wiz_attributes_()
  25. #ifdef WIZARD
  26. #define wiz_detect()	   wiz_detect_()
  27. #define wiz_genesis()	   wiz_genesis_()
  28. #define wiz_identify()	   wiz_identify_()
  29. #define wiz_level_tele()   wiz_level_tele_()
  30. #define wiz_map()	   wiz_map_()
  31. #define wiz_where()	   wiz_where_()
  32. #define wiz_wish()	   wiz_wish_()
  33. #endif
  34.  
  35. /* ### display.c ### */
  36. #define doredraw() doredraw_()
  37.  
  38. /* ### do.c ### */
  39. #define doddrop()  doddrop_()
  40. #define dodown()   dodown_()
  41. #define dodrop()   dodrop_()
  42. #define donull()   donull_()
  43. #define doup()	   doup_()
  44. #define dowipe()   dowipe_()
  45. #define drop(x)    drop_(x)
  46. #define wipeoff()  wipeoff_()
  47.  
  48.  
  49. /* ### do_name.c ### */
  50. #define ddocall()  ddocall_()
  51. #define do_mname() do_mname_()
  52.  
  53.  
  54. /* ### do_wear.c ### */
  55. #define Armor_off()   Armor_off_()
  56. #define Boots_off()   Boots_off_()
  57. #define Gloves_off()  Gloves_off_()
  58. #define Helmet_off()  Helmet_off_()
  59. #define Armor_on()    Armor_on_()
  60. #define Boots_on()    Boots_on_()
  61. #define Gloves_on()   Gloves_on_()
  62. #define Helmet_on()   Helmet_on_()
  63. #define doddoremarm() doddoremarm_()
  64. #define doputon()     doputon_()
  65. #define doremring()   doremring_()
  66. #define dotakeoff()   dotakeoff_()
  67. #define dowear()      dowear_()
  68. #define select_off(x) select_off_(x)
  69. #define take_off()    take_off_()
  70.  
  71.  
  72. /* ### dogmove.c ### */
  73. #define wantdoor(x, y, dummy) wantdoor_(x, y, dummy)
  74.  
  75.  
  76. /* ### dokick.c ### */
  77. #define dokick() dokick_()
  78.  
  79.  
  80. /* ### dothrow.c ### */
  81. #define dothrow() dothrow_()
  82.  
  83.  
  84. /* ### eat.c ### */
  85. #define Hear_again() Hear_again_()
  86. #define eatmdone()   eatmdone_()
  87. #define doeat()      doeat_()
  88. #define eatfood()    eatfood_()
  89. #define opentin()    opentin_()
  90. #define unfaint()    unfaint_()
  91.  
  92.  
  93. /* ### end.c ### */
  94. #define done1(sig)  done1_(sig)
  95. #define done2()     done2_()
  96. #define done_intr(sig) done_intr_(sig)
  97. #if defined(UNIX) || defined (VMS) || defined(__EMX__)
  98. #define done_hangup(sig) done_hangup_(sig)
  99. #endif
  100.  
  101.  
  102. /* ### engrave.c ### */
  103. #define doengrave() doengrave_()
  104.  
  105.  
  106. /* ### fountain.c ### */
  107. #define gush(x, y, poolcnt) gush_(x, y, poolcnt)
  108.  
  109.  
  110. /* ### hack.c ### */
  111. #define dopickup() dopickup_()
  112. #define identify(x) identify_(x)
  113.  
  114.  
  115. /* ### invent.c ### */
  116. #define ckunpaid(x)  ckunpaid_(x)
  117. #define ddoinv()     ddoinv_()
  118. #define dolook()     dolook_()
  119. #define dopramulet() dopramulet_()
  120. #define doprarm()    doprarm_()
  121. #define doprgold()   doprgold_()
  122. #define doprring()   doprring_()
  123. #define doprtool()   doprtool_()
  124. #define doprwep()    doprwep_()
  125. #define dotypeinv()  dotypeinv_()
  126. #define doorganize() doorganize_()
  127.  
  128.  
  129. /* ### ioctl.c ### */
  130. #ifdef UNIX
  131. # ifdef SUSPEND
  132. #define dosuspend() dosuspend_()
  133. # endif /* SUSPEND */
  134. #endif /* UNIX */
  135.  
  136.  
  137. /* ### lock.c ### */
  138. #define doclose()   doclose_()
  139. #define doforce()   doforce_()
  140. #define doopen()    doopen_()
  141. #define forcelock() forcelock_()
  142. #define picklock()  picklock_()
  143.  
  144.  
  145. /* ### mklev.c ### */
  146. #define do_comp(x, y)  comp_(x, y)
  147.  
  148.  
  149. /* ### mondata.c ### */
  150. /* See comment in trampoli.c before uncommenting canseemon. */
  151. /* #define canseemon(x) canseemon_(x) */
  152.  
  153.  
  154. /* ### muse.c ### */
  155. #define mbhitm(x, y) mbhitm_(x, y)
  156.  
  157.  
  158. /* ### o_init.c ### */
  159. #define dodiscovered() dodiscovered_()
  160.  
  161.  
  162. /* ### objnam.c ### */
  163. #define doname(x)   doname_(x)
  164. #define xname(x)    xname_(x)
  165.  
  166.  
  167. /* ### options.c ### */
  168. #define doset()		 doset_()
  169. #define dotogglepickup() dotogglepickup_()
  170.  
  171.  
  172. /* ### pager.c ### */
  173. #define dohelp()     dohelp_()
  174. #define dohistory()  dohistory_()
  175. #ifdef UNIX
  176. #define intruph()    intruph_()
  177. #endif /* UNIX */
  178. #define dowhatdoes() dowhatdoes_()
  179. #define dowhatis()   dowhatis_()
  180. #define doquickwhatis()   doquickwhatis_()
  181.  
  182.  
  183. /* ### pcsys.c ### */
  184. #ifdef SHELL
  185. #define dosh()	     dosh_()
  186. #endif /* SHELL */
  187.  
  188.  
  189. /* ### pickup.c ### */
  190. #define ck_bag(x)	 ck_bag_(x)
  191. #define doloot()	 doloot_()
  192. #define in_container(x)  in_container_(x)
  193. #define out_container(x) out_container_(x)
  194.  
  195.  
  196. /* ### potion.c ### */
  197. #define dodrink() dodrink_()
  198. #define dodip()   dodip_()
  199.  
  200.  
  201. /* ### pray.c ### */
  202. #define doturn()      doturn_()
  203. #define dopray()      dopray_()
  204. #define prayer_done() prayer_done_()
  205. #define dosacrifice() dosacrifice_()
  206.  
  207.  
  208. /* ### read.c ### */
  209. #define doread()	   doread_()
  210. #define set_lit(x, y, val) set_lit_(x, y, val)
  211.  
  212.  
  213. /* ### rip.c ### */
  214. #define genl_outrip(tmpwin, how) genl_outrip_(tmpwin, how)
  215.  
  216.  
  217. /* ### save.c ### */
  218. #define dosave() dosave_()
  219. #if defined(UNIX) || defined (VMS) || defined(__EMX__)
  220. #define hangup(sig) hangup_(sig)
  221. #endif
  222.  
  223.  
  224. /* ### search.c ### */
  225. #define doidtrap()	     doidtrap_()
  226. #define dosearch()	     dosearch_()
  227. #define findone(zx, zy, num) findone_(zx, zy, num)
  228. #define openone(zx, zy, num) openone_(zx, zy, num)
  229.  
  230.  
  231. /* ### shk.c ### */
  232. #define dopay() dopay_()
  233.  
  234.  
  235. /* ### sit.c ### */
  236. #define dosit() dosit_()
  237.  
  238.  
  239. /* ### sounds.c ### */
  240. #define dotalk() dotalk_()
  241.  
  242.  
  243. /* ### spell.c ### */
  244. #define learn()    learn_()
  245. #define docast()   docast_()
  246. #define dovspell() dovspell_()
  247.  
  248.  
  249. /* ### steal.c ### */
  250. #define stealarm() stealarm_()
  251.  
  252.  
  253. /* ### trap.c ### */
  254. #define dotele()     dotele_()
  255. #define dountrap()   dountrap_()
  256. #define float_down() float_down_()
  257.  
  258.  
  259. /* ### version.c ### */
  260. #define doversion()    doversion_()
  261. #define doextversion() doextversion_()
  262.  
  263.  
  264. /* ### wield.c ### */
  265. #define dowield() dowield_()
  266.  
  267.  
  268. /* ### zap.c ### */
  269. #define bhitm(x, y) bhitm_(x, y)
  270. #define bhito(x, y) bhito_(x, y)
  271. #define dozap()     dozap_()
  272.  
  273.  
  274. /* ### getline.c ### */
  275. #define tty_getlin(x,y)			tty_getlin_(x,y)
  276. #define tty_get_ext_cmd()		tty_get_ext_cmd_()
  277.  
  278.  
  279. /* ### termcap.c ### */
  280. #define tty_nhbell()			tty_nhbell_()
  281. #define tty_number_pad(x)		tty_number_pad_(x)
  282. #define tty_delay_output()		tty_delay_output_()
  283. #define tty_start_screen()		tty_start_screen_()
  284. #define tty_end_screen()		tty_end_screen_()
  285.  
  286.  
  287. /* ### topl.c ### */
  288. #define tty_doprev_message()		tty_doprev_message_()
  289. #define tty_yn_function(x,y,z)		tty_yn_function_(x,y,z)
  290.  
  291.  
  292. /* ### wintty.c ### */
  293. #define tty_init_nhwindows(x,y)		tty_init_nhwindows_(x,y)
  294. #define tty_player_selection()		tty_player_selection_()
  295. #define tty_askname()			tty_askname_()
  296. #define tty_get_nh_event()		tty_get_nh_event_()
  297. #define tty_exit_nhwindows(x)		tty_exit_nhwindows_(x)
  298. #define tty_suspend_nhwindows(x)	tty_suspend_nhwindows_(x)
  299. #define tty_resume_nhwindows()		tty_resume_nhwindows_()
  300. #define tty_create_nhwindow(x)		tty_create_nhwindow_(x)
  301. #define tty_clear_nhwindow(x)		tty_clear_nhwindow_(x)
  302. #define tty_display_nhwindow(x,y)	tty_display_nhwindow_(x,y)
  303. #define tty_destroy_nhwindow(x)		tty_destroy_nhwindow_(x)
  304. #define tty_curs(x,y,z)			tty_curs_(x,y,z)
  305. #define tty_putstr(x,y,z)		tty_putstr_(x,y,z)
  306. #define tty_display_file(x,y)		tty_display_file_(x,y)
  307. #define tty_start_menu(x)		tty_start_menu_(x)
  308. #define tty_add_menu(a,b,c,d,e,f,g,h)	tty_add_menu_(a,b,c,d,e,f,g,h)
  309. #define tty_end_menu(a,b)		tty_end_menu_(a,b)
  310. #define tty_select_menu(a,b,c)		tty_select_menu_(a,b,c)
  311. #define tty_update_inventory()		tty_update_inventory_()
  312. #define tty_mark_synch()		tty_mark_synch_()
  313. #define tty_wait_synch()		tty_wait_synch_()
  314. #ifdef CLIPPING
  315. #define tty_cliparound(x,y)		tty_cliparound_(x,y)
  316. #endif
  317. #ifdef POSITIONBAR
  318. #define tty_update_positionbar(x)	tty_update_positionbar_(x)
  319. #endif
  320. #define tty_print_glyph(a,b,c,d)	tty_print_glyph_(a,b,c,d)
  321. #define tty_raw_print(x)		tty_raw_print_(x)
  322. #define tty_raw_print_bold(x)		tty_raw_print_bold_(x)
  323. #define tty_nhgetch()			tty_nhgetch_()
  324. #define tty_nh_poskey(x,y,z)		tty_nh_poskey_(x,y,z)
  325.  
  326. #endif /* USE_TRAMPOLI */
  327.  
  328. #endif /* TRAMPOLI_H */