]> icculus.org git repositories - btb/d2x.git/blob - main/multibot.h
use the orientation parameter of g3_draw_bitmap
[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 /*
15  *
16  * Header file for multiplayer robot support.
17  *
18  */
19
20
21 #ifndef _MULTIBOT_H
22 #define _MULTIBOT_H
23
24 #define MAX_ROBOTS_CONTROLLED 5
25
26 extern int robot_controlled[MAX_ROBOTS_CONTROLLED];
27 extern int robot_agitation[MAX_ROBOTS_CONTROLLED];
28 extern int robot_fired[MAX_ROBOTS_CONTROLLED];
29
30 int multi_can_move_robot(int objnum, int agitation);
31 void multi_send_robot_position(int objnum, int fired);
32 void multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire);
33 void multi_send_claim_robot(int objnum);
34 void multi_send_robot_explode(int,int,char);
35 void multi_send_create_robot(int robotcen, int objnum, int type);
36 void multi_send_boss_actions(int bossobjnum, int action, int secondary, int objnum);
37 int multi_send_robot_frame(int sent);
38
39 void multi_do_robot_explode(char *buf);
40 void multi_do_robot_position(char *buf);
41 void multi_do_claim_robot(char *buf);
42 void multi_do_release_robot(char *buf);
43 void multi_do_robot_fire(char *buf);
44 void multi_do_create_robot(char *buf);
45 void multi_do_boss_actions(char *buf);
46 void multi_do_create_robot_powerups(char *buf);
47
48 int multi_explode_robot_sub(int botnum, int killer,char);
49
50 void multi_drop_robot_powerups(int objnum);
51 void multi_dump_robots(void);
52
53 void multi_strip_robots(int playernum);
54 void multi_check_robot_timeout(void);
55
56 void multi_robot_request_change(object *robot, int playernum);
57
58 #endif /* _MULTIBOT_H */