]> icculus.org git repositories - btb/d2x.git/blob - main/multibot.h
change __ENV_WINDOWS__ to __WINDOWS__, __ENV_MSDOS__ to __MSDOS__
[btb/d2x.git] / main / multibot.h
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-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 #ifndef _MULTIBOT_H
15 #define _MULTIBOT_H
16
17 #define MAX_ROBOTS_CONTROLLED 5
18
19 extern int robot_controlled[MAX_ROBOTS_CONTROLLED];
20 extern int robot_agitation[MAX_ROBOTS_CONTROLLED];
21 extern int robot_fired[MAX_ROBOTS_CONTROLLED];
22
23 int multi_can_move_robot(int objnum, int agitation);
24 void multi_send_robot_position(int objnum, int fired);
25 void multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire);
26 void multi_send_claim_robot(int objnum);
27 void multi_send_robot_explode(int,int,char);
28 void multi_send_create_robot(int robotcen, int objnum, int type);
29 void multi_send_boss_actions(int bossobjnum, int action, int secondary, int objnum);
30 int multi_send_robot_frame(int sent);
31
32 void multi_do_robot_explode(char *buf);
33 void multi_do_robot_position(char *buf);
34 void multi_do_claim_robot(char *buf);
35 void multi_do_release_robot(char *buf);
36 void multi_do_robot_fire(char *buf);
37 void multi_do_create_robot(char *buf);
38 void multi_do_boss_actions(char *buf);
39 void multi_do_create_robot_powerups(char *buf);
40
41 int multi_explode_robot_sub(int botnum, int killer,char);
42
43 void multi_drop_robot_powerups(int objnum);
44 void multi_dump_robots(void);
45
46 void multi_strip_robots(int playernum);
47 void multi_check_robot_timeout(void);
48
49 void multi_robot_request_change(object *robot, int playernum);
50
51 #endif