MULTIBOT.H 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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/multibot.h $
  15. * $Revision: 2.1 $
  16. * $Author: john $
  17. * $Date: 1995/03/21 14:40:18 $
  18. *
  19. * Header file for multiplayer robot support.
  20. *
  21. * $Log: multibot.h $
  22. * Revision 2.1 1995/03/21 14:40:18 john
  23. * Ifdef'd out the NETWORK code.
  24. *
  25. * Revision 2.0 1995/02/27 11:30:57 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.20 1995/02/06 18:18:05 rob
  30. * Tweaking cooperative stuff.
  31. *
  32. * Revision 1.19 1995/02/04 16:49:50 rob
  33. * Changed multi_send_robot_frame to return the number of robot positions that were sent.
  34. *
  35. * Revision 1.18 1995/02/04 12:29:32 rob
  36. * Added buffered fire sends.
  37. *
  38. * Revision 1.17 1995/01/30 17:22:02 rob
  39. * Added prototype for modem robot send function.
  40. *
  41. * Revision 1.16 1995/01/26 18:24:56 rob
  42. * Reduced # of controlled bots.
  43. *
  44. * Revision 1.15 1995/01/25 19:26:35 rob
  45. * Added define for robot laser agitation.
  46. *
  47. * Revision 1.14 1995/01/25 13:45:26 rob
  48. * Added prototype of robot transfer fucm.
  49. *
  50. * Revision 1.13 1995/01/14 19:01:08 rob
  51. * Added prototypes for new functionality.
  52. *
  53. * Revision 1.12 1995/01/12 16:41:53 rob
  54. * Added new prototypes.
  55. *
  56. * Revision 1.11 1995/01/12 15:42:55 rob
  57. * Fixing score awards for coop.
  58. *
  59. * Revision 1.10 1995/01/02 21:00:40 rob
  60. * added robot matcen support.
  61. *
  62. * Revision 1.9 1994/12/31 21:03:53 rob
  63. * More tweaking for robot behavior.
  64. *
  65. * Revision 1.8 1994/12/29 13:54:25 rob
  66. * Ooops.. fixed a bug..
  67. *
  68. * Revision 1.7 1994/12/29 12:51:38 rob
  69. * ADded proto for multi_robot_explode_sub
  70. *
  71. * Revision 1.6 1994/12/21 21:08:32 rob
  72. * Added new functions for robot firing.
  73. *
  74. * Revision 1.5 1994/12/21 19:04:02 rob
  75. * Fixing score accounting for multi robot games.
  76. *
  77. * Revision 1.4 1994/12/21 17:36:09 rob
  78. * Added a new func.
  79. *
  80. * Revision 1.3 1994/12/21 11:12:02 rob
  81. * Added new function and new vars.
  82. *
  83. * Revision 1.2 1994/12/19 16:41:42 rob
  84. * first revision.
  85. *
  86. * Revision 1.1 1994/12/16 15:48:20 rob
  87. * Initial revision
  88. *
  89. *
  90. */
  91. #ifdef NETWORK
  92. #ifndef _MULTIBOT_H
  93. #define _MULTIBOT_H
  94. #ifndef SHAREWARE
  95. #define MAX_ROBOTS_CONTROLLED 3
  96. #define ROBOT_FIRE_AGITATION 94
  97. extern int robot_controlled[MAX_ROBOTS_CONTROLLED];
  98. extern int robot_agitation[MAX_ROBOTS_CONTROLLED];
  99. extern int robot_fired[MAX_ROBOTS_CONTROLLED];
  100. int multi_can_move_robot(int objnum, int agitation);
  101. void multi_send_robot_position(int objnum, int fired);
  102. void multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire);
  103. void multi_send_claim_robot(int objnum);
  104. void multi_send_robot_explode(int objnum, int killer);
  105. void multi_send_create_robot(int robotcen, int objnum, int type);
  106. void multi_send_boss_actions(int bossobjnum, int action, int secondary, int objnum);
  107. int multi_send_robot_frame(int sent);
  108. void multi_do_robot_explode(char *buf);
  109. void multi_do_robot_position(char *buf);
  110. void multi_do_claim_robot(char *buf);
  111. void multi_do_release_robot(char *buf);
  112. void multi_do_robot_fire(char *buf);
  113. void multi_do_create_robot(char *buf);
  114. void multi_do_boss_actions(char *buf);
  115. void multi_do_create_robot_powerups(char *buf);
  116. int multi_explode_robot_sub(int botnum, int killer);
  117. void multi_drop_robot_powerups(int objnum);
  118. void multi_dump_robots(void);
  119. void multi_strip_robots(int playernum);
  120. void multi_check_robot_timeout(void);
  121. void multi_robot_request_change(struct object *robot, int playernum);
  122. #endif
  123. #endif
  124. #endif
  125.