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