2 * $Logfile: /Freespace2/code/Network/multi_rate.h $
8 * Revision 1.1 2002/05/03 03:28:12 root
12 * 2 3/09/99 6:24p Dave
13 * More work on object update revamping. Identified several sources of
14 * unnecessary bandwidth.
20 #ifndef _FS2_MULTI_DATA_RATE_HEADER_FILE
21 #define _FS2_MULTI_DATA_RATE_HEADER_FILE
23 // -----------------------------------------------------------------------------------------------------------------------
24 // MULTI RATE DEFINES/VARS
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
31 // -----------------------------------------------------------------------------------------------------------------------
32 // MULTI RATE FUNCTIONS
35 // notify of a player join
36 void multi_rate_reset(int np_index);
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);
41 // process. call _before_ doing network operations each frame
42 void multi_rate_process();
45 void multi_rate_display(int np_index, int x, int y);