616a3a6b70
Conflicts: SConstruct common/main/cntrlcen.h common/main/fuelcen.h common/main/fvi.h common/main/gameseq.h common/main/gauges.h common/main/multibot.h common/main/net_udp.h common/main/object.h common/main/player.h common/main/vers_id.h d1x-rebirth/main/hostage.c d1x-rebirth/main/multi.c main/controls.c main/hostage.h main/laser.h main/screens.h similar/arch/ogl/gr.c similar/editor/centers.c similar/main/inferno.c similar/main/lighting.c similar/main/multibot.c similar/main/paging.c similar/main/physics.c similar/main/player.c similar/main/robot.c similar/main/wall.c
63 lines
2.2 KiB
C
63 lines
2.2 KiB
C
/*
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
*/
|
|
|
|
/*
|
|
*
|
|
* Header file for multiplayer robot support.
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef _MULTIBOT_H
|
|
#define _MULTIBOT_H
|
|
|
|
#if defined(DXX_BUILD_DESCENT_I)
|
|
#define MAX_ROBOTS_CONTROLLED 3
|
|
#elif defined(DXX_BUILD_DESCENT_II)
|
|
#define MAX_ROBOTS_CONTROLLED 5
|
|
#endif
|
|
|
|
extern int robot_controlled[MAX_ROBOTS_CONTROLLED];
|
|
extern int robot_agitation[MAX_ROBOTS_CONTROLLED];
|
|
extern int robot_fired[MAX_ROBOTS_CONTROLLED];
|
|
|
|
int multi_can_move_robot(int objnum, int agitation);
|
|
void multi_send_robot_position(int objnum, int fired);
|
|
void multi_send_robot_fire(int objnum, int gun_num, vms_vector *fire);
|
|
void multi_send_claim_robot(int objnum);
|
|
void multi_send_robot_explode(int objnum, int killer, char unused);
|
|
void multi_send_create_robot(int robotcen, int objnum, int type);
|
|
void multi_send_boss_actions(int bossobjnum, int action, int secondary, int objnum);
|
|
int multi_send_robot_frame(int sent);
|
|
|
|
void multi_do_robot_explode(const ubyte *buf);
|
|
void multi_do_robot_position(const ubyte *buf);
|
|
void multi_do_claim_robot(const ubyte *buf);
|
|
void multi_do_release_robot(const ubyte *buf);
|
|
void multi_do_robot_fire(const ubyte *buf);
|
|
void multi_do_create_robot(const ubyte *buf);
|
|
void multi_do_boss_actions(const ubyte *buf);
|
|
void multi_do_create_robot_powerups(const ubyte *buf);
|
|
|
|
int multi_explode_robot_sub(int botnum, int killer, char unused);
|
|
|
|
void multi_drop_robot_powerups(int objnum);
|
|
void multi_dump_robots(void);
|
|
|
|
void multi_strip_robots(int playernum);
|
|
void multi_check_robot_timeout(void);
|
|
|
|
void multi_robot_request_change(object *robot, int playernum);
|
|
|
|
#endif /* _MULTIBOT_H */
|