version 1.3 | | version 1.4 |
---|
| | |
* Defines and exported variables for multi.c | | * Defines and exported variables for multi.c |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.4 2003/03/09 06:34:10 donut |
| | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | * |
* Revision 1.3 1999/11/25 09:50:00 sekmu | | * Revision 1.3 1999/11/25 09:50:00 sekmu |
* observer mode fixes (broadcast) | | * observer mode fixes (broadcast) |
* | | * |
| | |
// Exported functions | | // Exported functions |
| | |
int objnum_remote_to_local(int remote_obj, int owner); | | int objnum_remote_to_local(int remote_obj, int owner); |
int objnum_local_to_remote(int local_obj, byte *owner); | | int objnum_local_to_remote(int local_obj, sbyte *owner); |
void map_objnum_local_to_remote(int local, int remote, int owner); | | void map_objnum_local_to_remote(int local, int remote, int owner); |
void map_objnum_local_to_local(int objnum); | | void map_objnum_local_to_local(int objnum); |
| | |
| | |
| | |
extern short remote_to_local[MAX_NUM_NET_PLAYERS][MAX_OBJECTS]; // Network object num for each | | extern short remote_to_local[MAX_NUM_NET_PLAYERS][MAX_OBJECTS]; // Network object num for each |
extern short local_to_remote[MAX_OBJECTS]; // Local object num for each network objnum | | extern short local_to_remote[MAX_OBJECTS]; // Local object num for each network objnum |
extern byte object_owner[MAX_OBJECTS]; // Who 'owns' each local object for network purposes | | extern sbyte object_owner[MAX_OBJECTS]; // Who 'owns' each local object for network purposes |
| | |
extern int multi_in_menu; // Flag to tell if we're executing GameLoop from within a newmenu. | | extern int multi_in_menu; // Flag to tell if we're executing GameLoop from within a newmenu. |
extern int multi_leave_menu; | | extern int multi_leave_menu; |
| | |
ubyte server[4]; | | ubyte server[4]; |
ubyte node[6]; | | ubyte node[6]; |
ushort socket; | | ushort socket; |
byte connected; | | sbyte connected; |
#ifndef SHAREWARE | | #ifndef SHAREWARE |
/* following D1X only */ | | /* following D1X only */ |
ubyte sub_protocol; | | ubyte sub_protocol; |