2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/Network/multi_rate.h $
16 * Revision 1.2 2002/06/09 04:41:14 relnev
17 * added copyright header
19 * Revision 1.1.1.1 2002/05/03 03:28:12 root
23 * 2 3/09/99 6:24p Dave
24 * More work on object update revamping. Identified several sources of
25 * unnecessary bandwidth.
31 #ifndef _FS2_MULTI_DATA_RATE_HEADER_FILE
32 #define _FS2_MULTI_DATA_RATE_HEADER_FILE
34 // -----------------------------------------------------------------------------------------------------------------------
35 // MULTI RATE DEFINES/VARS
38 #define MAX_RATE_TYPE_LEN 50 // max length of a type string
39 #define MAX_RATE_PLAYERS 12 // how many player we'll keep track of
40 #define MAX_RATE_TYPES 32 // how many types we'll keep track of per player
42 // -----------------------------------------------------------------------------------------------------------------------
43 // MULTI RATE FUNCTIONS
46 // notify of a player join
47 void multi_rate_reset(int np_index);
49 // add data of the specified type to datarate processing, returns 0 on fail (if we ran out of types, etc, etc)
50 int multi_rate_add(int np_index, const char *type, int size);
52 // process. call _before_ doing network operations each frame
53 void multi_rate_process();
56 void multi_rate_display(int np_index, int x, int y);