Open source remastering of the Freespace 2 engine
multi_options.h File Reference
#include "globalincs/pstypes.h"
#include "psnet2.h"

Go to the source code of this file.


struct  multi_global_options
struct  multi_local_options
struct  multi_server_options


#define OBJ_UPDATE_LOW   0
#define OBJ_UPDATE_HIGH   2
#define OBJ_UPDATE_LAN   3
#define STD_PASSWD_LEN   16
#define STD_NAME_LEN   32
#define MLO_FLAG_ACCEPT_PIX   (1<<0)
#define MLO_FLAG_NO_VOICE   (1<<1)
#define MLO_FLAG_FLUSH_CACHE   (1<<3)
#define MLO_FLAG_XFER_MULTIDATA   (1<<4)
#define MLO_FLAG_TEMP_CLOSED   (1<<5)
#define MSO_SQUAD_RANK   0
#define MSO_SQUAD_LEADER   1
#define MSO_SQUAD_ANY   2
#define MSO_SQUAD_HOST   3
#define MSO_END_RANK   0
#define MSO_END_LEADER   1
#define MSO_END_ANY   2
#define MSO_END_HOST   3
#define MSO_FLAG_INGAME_XFER   (1<<0)
#define MSO_FLAG_ACCEPT_PIX   (1<<1)
#define MSO_FLAG_NO_VOICE   (1<<2)
#define MSO_FLAG_SS_LEADERS   (1<<3)


typedef struct multi_global_options multi_global_options
typedef struct multi_local_options multi_local_options
typedef struct multi_server_options multi_server_options


void multi_options_read_config ()
void multi_options_set_netgame_defaults (multi_server_options *options)
void multi_options_set_local_defaults (multi_local_options *options)
void multi_options_netgame_load (multi_server_options *options)
void multi_options_local_load (multi_local_options *options, net_player *pxo_pl)
void multi_options_update_netgame ()
void multi_options_update_local ()
void multi_options_update_start_game (netgame_info *ng)
void multi_options_update_mission (netgame_info *ng, int campaign_mode)
void multi_options_process_packet (unsigned char *data, header *hinfo)


multi_global_options Multi_options_g

Macro Definition Documentation


Definition at line 16 of file multi_options.h.

#define MLO_FLAG_ACCEPT_PIX   (1<<0)

Definition at line 99 of file multi_options.h.

#define MLO_FLAG_FLUSH_CACHE   (1<<3)

Definition at line 102 of file multi_options.h.


Definition at line 101 of file multi_options.h.

#define MLO_FLAG_NO_VOICE   (1<<1)

Definition at line 100 of file multi_options.h.

#define MLO_FLAG_TEMP_CLOSED   (1<<5)

Definition at line 104 of file multi_options.h.

#define MLO_FLAG_XFER_MULTIDATA   (1<<4)

Definition at line 103 of file multi_options.h.

#define MSO_END_ANY   2

Definition at line 120 of file multi_options.h.

#define MSO_END_HOST   3

Definition at line 121 of file multi_options.h.

#define MSO_END_LEADER   1

Definition at line 119 of file multi_options.h.

#define MSO_END_RANK   0

Definition at line 118 of file multi_options.h.

#define MSO_FLAG_ACCEPT_PIX   (1<<1)

Definition at line 124 of file multi_options.h.

#define MSO_FLAG_INGAME_XFER   (1<<0)

Definition at line 123 of file multi_options.h.

#define MSO_FLAG_NO_VOICE   (1<<2)

Definition at line 125 of file multi_options.h.

#define MSO_FLAG_SS_LEADERS   (1<<3)

Definition at line 126 of file multi_options.h.

#define MSO_SQUAD_ANY   2

Definition at line 115 of file multi_options.h.

#define MSO_SQUAD_HOST   3

Definition at line 116 of file multi_options.h.

#define MSO_SQUAD_LEADER   1

Definition at line 114 of file multi_options.h.

#define MSO_SQUAD_RANK   0

Definition at line 113 of file multi_options.h.


Definition at line 29 of file multi_options.h.

#define OBJ_UPDATE_HIGH   2

Definition at line 19 of file multi_options.h.

#define OBJ_UPDATE_LAN   3

Definition at line 20 of file multi_options.h.

#define OBJ_UPDATE_LOW   0

Definition at line 17 of file multi_options.h.


Definition at line 18 of file multi_options.h.

#define STD_NAME_LEN   32

Definition at line 28 of file multi_options.h.

#define STD_PASSWD_LEN   16

Definition at line 27 of file multi_options.h.

Typedef Documentation

Function Documentation

void multi_options_local_load ( multi_local_options options,
net_player pxo_pl 

Definition at line 379 of file multi_options.cpp.

void multi_options_netgame_load ( multi_server_options options)

Definition at line 371 of file multi_options.cpp.

void multi_options_process_packet ( unsigned char *  data,
header hinfo 

Definition at line 577 of file multi_options.cpp.

void multi_options_read_config ( )

Definition at line 59 of file multi_options.cpp.

void multi_options_set_local_defaults ( multi_local_options options)

Definition at line 356 of file multi_options.cpp.

void multi_options_set_netgame_defaults ( multi_server_options options)

Definition at line 321 of file multi_options.cpp.

void multi_options_update_local ( )

Definition at line 482 of file multi_options.cpp.

void multi_options_update_mission ( netgame_info ng,
int  campaign_mode 

Definition at line 539 of file multi_options.cpp.

void multi_options_update_netgame ( )

Definition at line 458 of file multi_options.cpp.

void multi_options_update_start_game ( netgame_info ng)

Definition at line 505 of file multi_options.cpp.

Variable Documentation

multi_global_options Multi_options_g

Definition at line 47 of file multi_options.cpp.