home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume7 / omega3 / part14 / oextern.h < prev    next >
C/C++ Source or Header  |  1989-07-20  |  17KB  |  392 lines

  1. /* omega copyright (c) 1987,1988,1989 by Laurence Raphael Brothers */
  2. /* oextern.h -- function declarations */
  3.  
  4. /* o.c functions */
  5. void initrand(),inititem(),init_world();
  6. int game_restore(),signalexit(),main();
  7.  
  8.  
  9. /* oabyss functions */
  10. void load_abyss();
  11.  
  12.  
  13. /* oaux1 and oaux3 functions */
  14. void pickup_at(),setspot(),foodcheck(),p_death(),hourly_check();
  15. #ifndef MSDOS
  16. void calc_melee(),gain_experience(),p_damage(),minute_check();
  17. #else
  18. void calc_melee(),p_damage(),minute_check();
  19. void gain_lexperience();
  20. #endif
  21. void p_process(),p_teleport(),tacplayer(),roomcheck(),tunnelcheck();
  22. void searchat(),showroom(),weapon_use(),damage_item(),tacmode();
  23. void hand_wield(),optionset(),optionreset(),describe_player();
  24. void lightroom(),surrender(),threaten(),darkenroom(),fight_monster();
  25. void indoors_random_event(),outdoors_random_event(),tenminute_check();
  26. char getlocation(),*itemid(),*mstatus_string(),*trapid(),*levelname();
  27. int p_moveable(),cursed(),getdir(),optionp(),goberserk();
  28. int player_on_sanctuary(),maneuvers();
  29.  
  30.  
  31. /* oaux2 and oaux3 functions */
  32. char *actionlocstr();
  33. void break_weapon(),drop_weapon(),moon_check(),toggle_item_use();
  34. void p_fumble(),p_win(),p_hit(),player_miss(),addring(),torch_check();
  35. void top_level(),printactions(),movecursor(),p_drown(),enter_site();
  36. void tacexecute(),weapon_use(),minute_status_check(),tenminute_status_check();
  37. void expandsiteabbrev(),gain_level(),terrain_check();
  38. void countrysearch(),default_maneuvers(),alert_guards();
  39. #ifndef MSDOS
  40. int expval(),player_hit(),statmod(),item_value(),true_item_value();
  41. #else
  42. long expval(),item_value(),true_item_value();
  43. int player_hit(),statmod();
  44. #endif
  45. int parsecitysite(),expandsite(),hostilemonstersnear(),magic_resist();
  46. char *countryid(),*citysiteid();
  47.  
  48. /* ochar functions */
  49. void initplayer(),initstats(),save_omegarc(),omegan_character_stats();
  50. void user_character_stats();
  51. #ifndef MSDOS
  52. int calcmana(),fixnpc(),competence_check();
  53. #else
  54. long calcmana();
  55. int fixnpc(),competence_check();
  56. #endif
  57. FILE *omegarc_check();
  58.  
  59.  
  60. /* ocity functions */
  61. void load_city(),randommazesite(),assign_city_function(),make_justiciar();
  62. void resurrect_guards(),mazesite(),make_minor_undead(),make_major_undead();
  63. void repair_jail();
  64.  
  65. /* ocom1 functions */
  66. void p_country_process(),p_process();
  67.  
  68. /* ocom3 and ocom2 functions */
  69. void pickup(),drop(),magic(),disarm(),save(),restore();
  70. void inventory(),opendoor(),closedoor(),fire(),fight(),city_move();
  71. void eat(),version(),nap(),vault(),bash_item(),frobgamestatus();
  72. void search(),peruse(),quaff(),talk(),bash_location(),wizard();
  73. void give(),rest(),examine(),help();
  74. void zapwand(),floor_inv(),callitem(), charid();
  75. void moveplayer(),upstairs(),downstairs(),setoptions(),activate();
  76. void pickpocket(),rename_player(),abortshadowform(),tunnel();
  77. void change_environment();
  78. void movepincountry(),tacoptions(),hunt(),dismount_steed();
  79. int quit();
  80.  
  81. /* oeffect1 functions */
  82. void bless(),identify(),bolt(),ball(),amnesia(),p_poison();
  83. void heal(),mondet(),objdet(),enchant(),wish(),manastorm();
  84. void acquire(),cleanse(),annihilate(),sleep_monster(),apport();
  85. void sleep_player(),summon(),hide(),clairvoyance(),aggravate();
  86. void fbolt(),lbolt(),lball(),fball(),nbolt(),learnspell(),level_drain();
  87. void disintegrate(),disrupt(),snowball(),p_teleport(),acid_cloud();
  88. void strategic_teleport();
  89. int random_item(),itemlist(),monsterlist();
  90.  
  91.  
  92. /* oeffect2 functions */
  93. void knowledge(),flux(),displace(),breathe(),invisible(),warp(),alert();
  94. void haste(),regenerate(),recover_stat(),augment(),truesight(),disease();
  95. void i_chaos(),i_law(),sanctify(),hero(),level_return(),cure(),dispel();
  96. void polymorph(),hellfire(),illuminate(),drain_life(),drain();
  97. void inflict_fear(),levitate(),accuracy(),sanctuary(),shadowform();
  98. void invulnerable(),deflection();
  99.  
  100. /* oetc functions */
  101. void hint(),learnclericalspells(),add_new_npc();
  102. char *slotstr(),*wordnum(),*nameprint();
  103.  
  104.  
  105. /* ofile functions */
  106. void commandlist(),helpfile(),showfile(),showscores(),showmotd();
  107. void extendlog(),filescanstring(),checkhigh(),user_intro();
  108. void theologyfile(),cityguidefile(),combat_help(),inv_help();
  109. void abyss_file(),wishfile(),adeptfile(),copyfile(),displayfile();
  110. int filecheck();
  111. FILE *checkfopen();
  112.  
  113.  
  114. /* ogen functions */
  115. int loc_statusp(),mazeok();
  116. void lset(),lreset(),load_arena(),make_country_screen(),room_corridor();
  117. void clear_level(),create_level(),build_square_room(),build_diamond_room();
  118. void connect_room(),corridor_crawl(),build_room(),sewer_corridor();
  119. void clear_dungeon(),init_dungeon(),install_traps(),straggle_corridor();
  120. void room_connect_corridor(),sewer_level(),room_level(),make_prime();
  121. void change_level(),cavern_level(),makedoor(),make_archmage();
  122. void maze_level(),maze_corridor();
  123. void install_specials(),make_stairs();
  124. void make_plains(),make_road(),make_forest(),make_jungle();
  125. void make_river(),make_swamp(),make_mountains(),load_circle(),load_court();
  126. void find_stairs();
  127. char *roomname();
  128. plv findlevel();
  129.  
  130. /* outil functions */
  131. #ifndef MSDOS
  132. int inbounds(),random_range(),hitp(),sign(),max(),min(),distance();
  133. #else
  134. int inbounds(),random_range(),hitp(),distance();
  135. #endif
  136. #ifndef MSDOS
  137. int unblocked(),los_p(),screenmod(),offscreen(),calc_points();
  138. #else
  139. int unblocked(),los_p(),screenmod(),offscreen();
  140. long calc_points();
  141. #endif
  142. int bitp(),nighttime(),hour(),showhour(),day(),showminute();
  143. int view_unblocked(),m_unblocked(),strmem();
  144. #ifndef MSDOS
  145. int view_los_p(),confirmation(),gamestatusp();
  146. #else
  147. int view_los_p(),confirmation();
  148. long gamestatusp();
  149. #endif
  150. char inversedir(),*getarticle(),*ordinal(),*month(),*salloc();
  151. void initdirs(),do_los(),do_object_los(),bitset(),bitreset();
  152. void findspace(),setgamestatus(),resetgamestatus(),calc_weight();
  153.  
  154.  
  155. /* otime functions */
  156. void time_clock();
  157.  
  158.  
  159. /* ospell functions */
  160. void s_firebolt(),s_lball(),s_sleep(),s_objdet(),s_mondet(),s_identify();
  161. void s_teleport(),s_disrupt(),s_disintegrate(),s_missile();
  162. void s_heal(),s_dispel(),s_breathe(),s_invisible(),s_warp(),s_enchant();
  163. void s_bless(),s_truesight(),s_hellfire(),s_knowledge(),s_hero();
  164. void s_restore(),s_cure(),s_return(),s_desecrate(),s_summon();
  165. void s_accuracy(),s_ritual(),s_apport(),s_shadowform(),s_alert();
  166. void s_regenerate(),s_sanctify(),s_clairvoyance(),s_drain(),s_polymorph();
  167. void s_invulnerable(),cast_spell(),s_fear(),s_wish();
  168. void initspells(),expandspellabbrevs();
  169. int getspell(),expandspell();
  170. char *spellid();
  171.  
  172.  
  173. /* osite functions */
  174. void l_temple(),l_armorer(),l_club(),l_gym(),sign_print(),l_castle();
  175. void l_healer(),statue_random(),l_statue_wake(),l_casino(),l_bank();
  176. void l_sewer(),l_tavern(),l_alchemist(),l_vault(),l_oracle(),l_commandant();
  177. void l_countryside(),l_dpw(),l_library(),l_pawn_shop(),l_diner();
  178. void l_condo(),l_cemetary(),l_garden(),l_house(),l_hovel(),l_mansion();
  179. void l_jail(),l_adept(),l_trifid(),l_warning(),l_brothel(),l_crap();
  180. void l_safe(),l_cartographer(),l_charity(),l_mindstone();
  181. void healforpay(),cureforpay(),gymtrain(),buyfromstock(),wake_statue();
  182. void send_to_jail();
  183.  
  184.  
  185. /* oscr functions */     
  186. void redraw(),drawspot(),drawvision(),morewait(),drawmonsters(),locprint();
  187. void mprint(),title(),sitclear(),initgraf(),xredraw(),erase_monster();
  188. void plotchar(),show_screen(),blankoutspot(),show_license(),phaseprint();
  189. #ifndef MSDOS
  190. void menuclear(),showcursor(),mnumprint(),menunumprint(),display_pack();
  191. #else
  192. void menuclear(),showcursor(),display_pack();
  193. void mlongprint(),menulongprint();
  194. #endif
  195. void clearmsg(),menuprint(),print3(),nprint3(),print1(),print2(),nprint1();
  196. void clearmsg1(),clearmsg3(),commanderror(),nprint2(),deathprint();
  197. void stdmorewait(),draw_explosion(),dataprint(),comwinprint(),timeprint();
  198. void erase_level(),levelrefresh(),display_options(),display_option_slot();
  199. void refreshmsg(),menuaddch(),drawscreen(),maddch(),putspot(),checkclear();
  200. void display_quit(),showflags(),spreadroomdark(),display_win();
  201. void drawplayer(),displaystats(),display_death(),plotmon(),display_bigwin();
  202. void dobackspace(),drawandrefreshspot(),spreadroomlight(),bufferprint();
  203. void drawomega(),screencheck(),blotspot(),plotspot(),dodrawspot();
  204. void display_inventory_slot(),endgraf(),menuspellprint(),hide_line();
  205. void display_possessions(),clear_if_necessary(),buffercycle(),lightspot();
  206. #ifndef MSDOS
  207. int parsenum(),getnumber(),litroom(),move_slot(),stillonblock();
  208. #else
  209. long parsenum();
  210. int getnumber(),litroom(),move_slot(),stillonblock();
  211. #endif
  212. char getspot(),mgetc(),lgetc(),menugetc(),*msgscanstring();
  213. #ifndef MSDOS
  214. char mcigetc(),ynq(),ynq1(),ynq2();
  215. #else
  216. int mcigetc();
  217. char ynq(),ynq1(),ynq2();
  218. #endif
  219.  
  220.  
  221. /* omove functions */
  222. void p_movefunction();
  223. void l_water(),l_hedge(),l_lava(),l_lift(),l_magic_pool(),l_whirlwind();
  224. void l_abyss(),l_no_op(),l_tactical_exit(),l_rubble(),l_raise_portcullis();
  225. void l_portcullis(),l_portcullis_trap(),l_arena_exit(),l_house_exit();
  226. void l_drop_every_portcullis(),l_earth_station(),l_water_station();
  227. void l_fire_station(),l_air_station(),l_void(),stationcheck(),l_whirlwind();
  228. void l_voice1(),l_voice2(),l_voice3(),l_whirlwind(),l_void_station();
  229. void l_chaos(),l_tome1(),l_tome2(),l_enter_circle(),l_circle_library();
  230. void l_temple_warning(),l_throne(),l_enter_court(),l_escalator(),l_fire();
  231. void l_voidstone(),l_chaostone(),l_lawstone(),l_balancestone();
  232. void l_sacrificestone();
  233.  
  234. /* otrap functions */
  235. void l_trap_dart(),l_trap_pit(),l_trap_door(),l_trap_snare(),l_trap_siren();
  236. void l_trap_blade(),l_trap_fire(),l_trap_disintegrate(),l_trap_teleport();
  237. void l_trap_acid(),l_trap_manadrain(),l_trap_sleepgas(),l_trap_abyss();
  238.  
  239.  
  240.  
  241. /* ohouse functions */
  242. void load_house(),make_dog(),make_automaton(),make_house_npc();
  243. void make_mansion_npc();
  244.  
  245. /* omonf functions */
  246. void m_normal_move(),m_no_op();
  247. void m_smart_move(),m_simple_move(),m_spirit_move(),m_vanish();
  248. void m_firebolt(),m_talk_guard(),m_random_move(),m_sp_morgon();
  249. void m_flutter_move(),m_nbolt(),m_sp_surprise(),m_talk_druid();
  250. void m_talk_stupid(),m_talk_hungry(),m_talk_silent(),m_talk_greedy();
  251. void m_talk_mp(),m_follow_move(),m_sp_mp(),m_talk_evil(),m_talk_prime();
  252. void m_lball(),m_fireball(),m_talk_titter(),m_talk_thief();
  253. void m_sp_ng(),m_sp_poison_cloud(),m_huge_sounds(),m_talk_robot();
  254. void m_blind_strike(),m_talk_im(),m_confused_move(),m_talk_beg();
  255. void m_thief_f(),m_talk_man(),m_summon(),m_animal_talk(),m_move_animal();
  256. void m_teleport(),m_illusion(),m_aggravate(),m_talk_hint();
  257. void m_sp_explode(),m_sp_acid_cloud(),m_sp_bogthing(),m_talk_animal();
  258. void m_sp_whirl(),m_sp_escape(),m_sp_ghost(),m_sp_demonlover();
  259. void m_talk_mimsy(),m_talk_slithy(),m_talk_burble(),m_sp_spell();
  260. void m_scaredy_move(),m_talk_gf(),m_talk_ef(),m_sp_demon(),m_sp_av();
  261. void m_sp_seductor(),m_talk_demonlover(),m_talk_seductor(),m_sp_lw();
  262. void m_sp_eater(),m_sp_dragonlord(),m_talk_ninja(),m_talk_assassin();
  263. void m_sp_blackout(),m_sp_leash(),m_sp_were(),m_sp_angel(),m_sp_servant();
  264. void m_sp_swarm(),m_talk_servant(),m_talk_horse(),m_snowball(),m_sp_prime();
  265. void m_sp_mb(),m_sp_mirror(),m_sp_raise(),m_talk_scream(),m_strike_sonic();
  266. void m_talk_parrot(),m_talk_hyena(),m_talk_archmage(),m_talk_merchant();
  267. void m_sp_merchant(),m_sp_court(),m_sp_lair(),m_sp_whistleblower();
  268.  
  269. char *mantype();
  270.  
  271. /* omon functions */
  272. int m_statusp(),m_immunityp(),tacticalp();
  273. void m_pulse(),m_status_set(),m_damage(),monster_action();
  274. void m_death(),m_hit(),m_miss(),m_pickup(),m_dropstuff();
  275. void m_status_reset(),monster_strike(),tacmonster(),free_mlist();
  276. void monster_talk(),monster_melee(),monster_move(),monster_special();
  277. void movemonster(),make_log_npc(),m_abyss(),transcribe_monster_actions();
  278. void m_movefunction(),trasnscribe_monster_actions(),determine_npc_behavior();
  279. void m_water(),m_lava(),m_altar(),m_whirlwind(),m_fire(),make_hiscore_npc();
  280. void m_trap_dart(),m_trap_pit(),m_trap_door(),m_trap_snare();
  281. void m_trap_blade(),m_trap_fire(),m_trap_disintegrate(),m_trap_teleport();
  282. void m_trap_manadrain(),m_trap_acid(),m_trap_sleepgas(),m_trap_abyss();
  283. void strengthen_death(),fix_phantom(),destroy_order();
  284. char random_loc();
  285. int corpsevalue(),monster_hit();
  286.  
  287.  
  288. /* olev functions */
  289. void populate_level(),stock_level(),wandercheck(),make_site_monster();
  290. void free_dungeon(),tactical_map(),make_country_monsters();
  291. void make_site_treasure(),make_specific_treasure();
  292. int difficulty();
  293. pmt m_create(),make_creature();
  294.  
  295. /* osave functions */
  296. int save_game(),restore_game(), signalsave();
  297. void save_player(),save_player_items(),save_player_spells();
  298. void save_player_item_knowledge(),save_monsters(),save_country();
  299. void save_level(),save_item(),save_itemlist();
  300. void restore_player(),restore_player_items(),restore_player_spells();
  301. void restore_player_item_knowledge(),restore_monsters();
  302. void restore_level(),restore_country();
  303. pob restore_item();
  304. pol restore_itemlist();
  305.  
  306.  
  307.  
  308.  
  309. /* oitemf functions (1 to 3)*/
  310. void weapon_bare_hands(),weapon_normal_hit(),weapon_demonblade();
  311. void weapon_lightsabre(),weapon_mace_disrupt(),weapon_tangle();
  312. void weapon_vorpal(),weapon_desecrate(),weapon_firestar(),weapon_defend();
  313. void weapon_victrix(),weapon_bolt(),weapon_arrow(),weapon_scythe();
  314. void weapon_acidwhip();
  315. void i_no_op(),i_nothing(),i_stargem(),i_sceptre(),i_deflect();
  316. void i_spells(),i_bless(),i_enchant(),i_acquire(),i_jane_t();
  317. void i_flux(),i_breathing(),i_invisible(),i_perm_invisible();
  318. void i_teleport(),i_wish(),i_clairvoyance(),i_displace(),i_id(),i_augment();
  319. void i_heal(),i_objdet(),i_mondet(),i_sleep_self(),i_neutralize_poison();
  320. void i_speed(),i_restore(),i_azoth(),i_regenerate(),i_demonblade();
  321. void i_firebolt(),i_lbolt(),i_missile(),i_fireball(),i_lball(),i_snowball();
  322. void i_sleep_other(),i_summon(),i_hide(),i_disrupt(),i_disintegrate();
  323. void i_perm_vision(),i_perm_burden(),i_perm_fire_resist(),i_charge();
  324. void i_perm_poison_resist(),i_perm_strength(),i_perm_gaze_immune();
  325. void i_perm_energy_resist(), i_perm_speed(),i_perm_breathing();
  326. void i_perm_displace(),i_perm_negimmune(),i_mace_disrupt(),i_warp();
  327. void i_food(),i_poison_food(),i_stim(),i_immune(),i_lembas(),i_pow();
  328. void i_orbfire(),i_orbwater(),i_orbair(),i_orbearth(),i_orbdead();
  329. void i_orbmastery(),i_lightsabre(),i_alert(),i_knowledge(),i_pick();
  330. void i_perm_knowledge(),i_fear_resist(),i_perm_fear_resist(),i_key();
  331. void i_defend(),i_victrix(),i_apport(),i_corpse(),i_accuracy();
  332. void i_perm_accuracy(),i_hero(),i_perm_hero(),i_levitate();
  333. void i_perm_regenerate(),i_perm_levitate(),i_perm_protection();
  334. void i_perm_agility(),i_truesight(),i_perm_truesight(),i_cure();
  335. void i_dispel(),i_pepper_food(),i_enchantment(),polymorph();
  336. void i_crystal(),i_kolwynia(),i_death(),i_life(),i_helm(),i_antioch();
  337. void i_illuminate(),i_perm_illuminate(),i_desecrate();
  338. void i_trap(),i_juggernaut(),i_raise_portcullis(),i_planes();
  339. void i_fear(),i_polymorph(),i_symbol(),i_perm_deflect();
  340. void i_normal_armor(),i_normal_weapon(),i_normal_shield();
  341.  
  342. /* oitem functions */
  343. void item_use();
  344. pob create_object();
  345. void make_shield(),make_armor(),make_weapon();
  346. void make_scroll(),make_potion(),make_food();
  347. void make_thing(),make_ring(),make_artifact(),make_corpse();
  348. void make_boots(),make_cloak(),make_stick(),make_cash();
  349. int itemplus(),itemcharge(),itemblessing(),twohandedp();
  350. char *scrollname(),*potionname(),*stickname(),*ringname(),*cloakname();
  351. char *bootname(),*grotname();
  352.  
  353.  
  354. /* oinv functions */
  355. void pickup_at(),drop_at(),givemonster(),conform_lost_object();
  356. void conform_unused_object(),gain_item(),drop_money(),add_to_pack();
  357. void setplustr(),setchargestr(), setnumstr(),p_drop_at(),give_money();
  358. void conform_lost_objects(),itemlist_inventory(),take_from_pack();
  359. void merge_item(),take_from_slot(),inventory_control(),item_inventory();
  360. void drop_from_slot(),put_to_pack(),switch_to_slot(),top_inventory_control();
  361. void lose_all_items(),dispose_lost_objects(),pack_extra_items(),fixpack();
  362. int get_inventory_slot(),getitem();
  363. int objequal(),slottable(),item_useable(),find_and_remove_item();
  364. #ifndef MSDOS
  365. int getitem(),badobject(),cursed(),get_money(),get_item_number(),find_item();
  366. #else
  367. int getitem(),badobject(),cursed(),get_item_number(),find_item();
  368. long get_money();
  369. #endif
  370. pob detach_money(),split_item();
  371. char *itemid(),*cashstr();
  372.  
  373. /* oguild functions */
  374. void l_druid(),l_thieves_guild(),l_college(),l_merc_guild(),l_sorcerors();
  375. void l_altar(),l_arena(),l_order();
  376.  
  377. /* opriest functions */
  378. void make_hp(),hp_req_test(),hp_req_print(),increase_priest_rank();
  379. void answer_prayer();
  380. int check_sacrilege();
  381.  
  382. /* ocountry functions */
  383. void load_country(),load_dlair(),load_speak(),load_misle(),load_temple();
  384. void make_high_priest(),random_temple_site();
  385.  
  386. /* ovillage functions */
  387. void load_village(),make_horse(),make_sheep();
  388. void make_guard(),make_sheep(),make_merchant(),make_food_bin();
  389. void assign_village_function(),special_village_site();
  390.  
  391.  
  392.