MODEM.H 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  12. */
  13. /*
  14. * $Source: f:/miner/source/main/rcs/modem.h $
  15. * $Revision: 2.1 $
  16. * $Author: john $
  17. * $Date: 1995/03/21 14:40:38 $
  18. *
  19. * Header file for modem support
  20. *
  21. * $Log: modem.h $
  22. * Revision 2.1 1995/03/21 14:40:38 john
  23. * Ifdef'd out the NETWORK code.
  24. *
  25. * Revision 2.0 1995/02/27 11:31:34 john
  26. * New version 2.0, which has no anonymous unions, builds with
  27. * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  28. *
  29. * Revision 1.18 1994/11/22 17:12:05 rob
  30. * Starting working on secret level fix for modem games.
  31. *
  32. * Revision 1.17 1994/11/17 16:43:17 rob
  33. * Added prototype for com_level_sync function.
  34. *
  35. * Revision 1.16 1994/11/15 21:30:32 rob
  36. * Added prototype for new menu hook.
  37. *
  38. * Revision 1.15 1994/10/07 16:15:33 rob
  39. * Changed calls to multi_send_position.
  40. *
  41. * Revision 1.14 1994/10/07 12:52:24 rob
  42. * Fixed some problems.
  43. *
  44. * Revision 1.13 1994/10/07 11:25:47 rob
  45. * Tried to fix modem to work with new multi stuff. Still a bit jacked up, tho.
  46. *
  47. * Revision 1.12 1994/10/05 19:14:50 rob
  48. * Exported macros and arrays to support network object mapping.
  49. *
  50. * Revision 1.11 1994/10/05 17:48:59 rob
  51. * Several changes, most to end_of_level sequencing.
  52. *
  53. * Revision 1.10 1994/10/05 14:22:54 rob
  54. * Added com_end_level.
  55. *
  56. * Revision 1.9 1994/09/30 18:37:22 rob
  57. * Another day's worth of work. Mostly menus, error checking. Added
  58. * level checksums during sync, carrier detect during all com calls,
  59. * generic com_abort() procedure for bailing out, and nm_messagebox
  60. * handling of QUIT instead of HUD message (which never gets seen).
  61. *
  62. * Revision 1.8 1994/09/29 20:55:16 rob
  63. * Lots of changes.
  64. *
  65. * Revision 1.7 1994/09/29 16:09:20 rob
  66. * Added explode stuff.
  67. *
  68. * Revision 1.6 1994/09/28 14:31:08 rob
  69. * Added serial setup menu.
  70. *
  71. * Revision 1.5 1994/09/27 15:02:49 rob
  72. * Null modem basic routines working. Sending DEAD messages and
  73. * missiles still need to be done.
  74. *
  75. * Revision 1.4 1994/09/24 16:52:33 rob
  76. * Added stubbed funcs for startup and stop of serial games.
  77. *
  78. * Revision 1.3 1994/09/24 14:47:31 rob
  79. * New function protos.
  80. *
  81. * Revision 1.2 1994/09/22 17:53:29 rob
  82. * First revision, not yet functional.
  83. *
  84. * Revision 1.1 1994/09/22 12:39:25 rob
  85. * Initial revision
  86. *
  87. *
  88. */
  89. #ifdef NETWORK
  90. #ifndef _MODEM_H
  91. #define _MODEM_H
  92. #define MISSILE_ADJUST 6
  93. int com_enable(void);
  94. void com_disable(void);
  95. void com_do_frame(void);
  96. void com_process_input(void);
  97. void serial_leave_game(void);
  98. void modem_start_game(void);
  99. void com_main_menu(void);
  100. void com_endlevel(int *secret);
  101. void com_abort(void);
  102. void com_send_data(char *buf, int len, int repeat);
  103. int com_level_sync(void);
  104. extern int com_port_num;
  105. extern int serial_active;
  106. extern int com_speed;
  107. extern int com_baud_rate;
  108. #endif
  109. #endif
  110.