home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / multibot.h < prev    next >
Text File  |  1998-06-08  |  4KB  |  138 lines

  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.  
  92. #ifdef NETWORK
  93.  
  94. #ifndef _MULTIBOT_H
  95. #define _MULTIBOT_H
  96.  
  97. #ifndef SHAREWARE
  98.  
  99. #define MAX_ROBOTS_CONTROLLED 3
  100.  
  101. #define ROBOT_FIRE_AGITATION 94
  102.  
  103. extern int robot_controlled[MAX_ROBOTS_CONTROLLED];
  104. extern int robot_agitation[MAX_ROBOTS_CONTROLLED];
  105. extern int robot_fired[MAX_ROBOTS_CONTROLLED];
  106.  
  107. int multi_can_move_robot(int objnum, int agitation);
  108. void multi_send_robot_position(int objnum, int fired);
  109. void multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire);
  110. void multi_send_claim_robot(int objnum);
  111. void multi_send_robot_explode(int objnum, int killer);
  112. void multi_send_create_robot(int robotcen, int objnum, int type);
  113. void multi_send_boss_actions(int bossobjnum, int action, int secondary, int objnum);
  114. int multi_send_robot_frame(int sent);
  115.  
  116. void multi_do_robot_explode(char *buf);
  117. void multi_do_robot_position(char *buf);
  118. void multi_do_claim_robot(char *buf);
  119. void multi_do_release_robot(char *buf);
  120. void multi_do_robot_fire(char *buf);
  121. void multi_do_create_robot(char *buf);
  122. void multi_do_boss_actions(char *buf);
  123. void multi_do_create_robot_powerups(char *buf);
  124.  
  125. int multi_explode_robot_sub(int botnum, int killer);
  126.  
  127. void multi_drop_robot_powerups(int objnum);
  128. void multi_dump_robots(void);
  129.  
  130. void multi_strip_robots(int playernum);
  131. void multi_check_robot_timeout(void);
  132.  
  133. void multi_robot_request_change(struct object *robot, int playernum);
  134. #endif
  135. #endif
  136. #endif
  137. 
  138.