]> icculus.org git repositories - taylor/freespace2.git/blob - include/multi_rate.h
Initial revision
[taylor/freespace2.git] / include / multi_rate.h
1 /*
2  * $Logfile: /Freespace2/code/Network/multi_rate.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  * 
7  * $Log$
8  * Revision 1.1  2002/05/03 03:28:12  root
9  * Initial revision
10  *
11  * 
12  * 2     3/09/99 6:24p Dave
13  * More work on object update revamping. Identified several sources of
14  * unnecessary bandwidth.
15  *  
16  *   
17  * $NoKeywords: $
18  */
19
20 #ifndef _FS2_MULTI_DATA_RATE_HEADER_FILE
21 #define _FS2_MULTI_DATA_RATE_HEADER_FILE
22
23 // -----------------------------------------------------------------------------------------------------------------------
24 // MULTI RATE DEFINES/VARS
25 //
26
27 #define MAX_RATE_TYPE_LEN                       50                              // max length of a type string
28 #define MAX_RATE_PLAYERS                        12                              // how many player we'll keep track of
29 #define MAX_RATE_TYPES                          32                              // how many types we'll keep track of per player
30
31 // -----------------------------------------------------------------------------------------------------------------------
32 // MULTI RATE FUNCTIONS
33 //
34
35 // notify of a player join
36 void multi_rate_reset(int np_index);
37
38 // add data of the specified type to datarate processing, returns 0 on fail (if we ran out of types, etc, etc)
39 int multi_rate_add(int np_index, char *type, int size);
40
41 // process. call _before_ doing network operations each frame
42 void multi_rate_process();
43
44 // display
45 void multi_rate_display(int np_index, int x, int y);
46
47 #endif
48