Open source remastering of the Freespace 2 engine
multi_pmsg.cpp File Reference
#include <ctype.h>
#include "network/multi_pmsg.h"
#include "network/multi.h"
#include "network/multimsgs.h"
#include "network/multiutil.h"
#include "network/multi_kick.h"
#include "gamesnd/gamesnd.h"
#include "hud/hudmessage.h"
#include "hud/hudsquadmsg.h"
#include "io/key.h"
#include "io/timer.h"
#include "playerman/player.h"
#include "ship/ship.h"
#include "object/object.h"
#include "parse/parselo.h"
#include "sound/fsspeech.h"

Go to the source code of this file.


#define MULTI_MSG_MAX_LEN   75
#define MULTI_MSG_CMD_KICK   0


int multi_msg_check_command (char *str)
void multi_msg_perform_command (int command, char *param)
void multi_msg_key_down (int mode)
int multi_msg_voice_record ()
void multi_msg_process ()
int multi_msg_mode ()
int multi_msg_text_mode ()
void multi_msg_eval_text_msg ()
int multi_msg_text_process (int k)
int multi_msg_message_text (char *txt)
void multi_msg_display_mission_text (const char *msg, int player_index)
int multi_msg_matches_expr (net_player *np, const char *expr)
void multi_msg_text_flush ()
void multi_msg_show_squadmsg (net_player *source, int command, ushort target_sig, int subsys_type)
int multi_msg_player_in_wing (int wingnum, net_player *pl)
int multi_msg_player_in_ship (int shipnum, net_player *pl)
void multi_msg_send_squadmsg_packet (net_player *target, net_player *source, int command, ushort net_sig, int subsys_type)
int multi_msg_eval_wing_squadmsg (int wingnum, int command, ai_info *aif, int player_num)
int multi_msg_eval_ship_squadmsg (int shipnum, int command, ai_info *aif, int player_num)
void multi_msg_process_squadmsg_packet (unsigned char *data, header *hinfo)


int Multi_msg_mode = MULTI_MSG_NONE
int Multi_msg_stamp = -1
int Multi_msg_repeat_flag = 0
int Multi_msg_eat_stamp = -1
int Multi_msg_text_enter = 0
char Multi_msg_text [MULTI_MSG_MAX_TEXT_LEN+1]
char * Multi_msg_commands [MULTI_MSG_CMD_COUNT]
char * Multi_msg_subsys_name [SUBSYSTEM_MAX]

Macro Definition Documentation


Definition at line 68 of file multi_pmsg.cpp.

#define MULTI_MSG_CMD_KICK   0

Definition at line 69 of file multi_pmsg.cpp.


Definition at line 38 of file multi_pmsg.cpp.

#define MULTI_MSG_MAX_LEN   75

Definition at line 44 of file multi_pmsg.cpp.


Definition at line 41 of file multi_pmsg.cpp.

Function Documentation

int multi_msg_check_command ( char *  str)

Definition at line 347 of file multi_pmsg.cpp.

void multi_msg_display_mission_text ( const char *  msg,
int  player_index 

Definition at line 302 of file multi_pmsg.cpp.

int multi_msg_eval_ship_squadmsg ( int  shipnum,
int  command,
ai_info aif,
int  player_num 

Definition at line 677 of file multi_pmsg.cpp.

void multi_msg_eval_text_msg ( )

Definition at line 169 of file multi_pmsg.cpp.

int multi_msg_eval_wing_squadmsg ( int  wingnum,
int  command,
ai_info aif,
int  player_num 

Definition at line 621 of file multi_pmsg.cpp.

void multi_msg_key_down ( int  mode)

Definition at line 89 of file multi_pmsg.cpp.

int multi_msg_matches_expr ( net_player np,
const char *  expr 

Definition at line 318 of file multi_pmsg.cpp.

int multi_msg_message_text ( char *  txt)

Definition at line 264 of file multi_pmsg.cpp.

int multi_msg_mode ( )

Definition at line 157 of file multi_pmsg.cpp.

void multi_msg_perform_command ( int  command,
char *  param 

Definition at line 407 of file multi_pmsg.cpp.

int multi_msg_player_in_ship ( int  shipnum,
net_player pl 

Definition at line 575 of file multi_pmsg.cpp.

int multi_msg_player_in_wing ( int  wingnum,
net_player pl 

Definition at line 554 of file multi_pmsg.cpp.

void multi_msg_process ( )

Definition at line 125 of file multi_pmsg.cpp.

void multi_msg_process_squadmsg_packet ( unsigned char *  data,
header hinfo 

Definition at line 725 of file multi_pmsg.cpp.

void multi_msg_send_squadmsg_packet ( net_player target,
net_player source,
int  command,
ushort  net_sig,
int  subsys_type 

Definition at line 587 of file multi_pmsg.cpp.

void multi_msg_show_squadmsg ( net_player source,
int  command,
ushort  target_sig,
int  subsys_type 

Definition at line 445 of file multi_pmsg.cpp.

void multi_msg_text_flush ( )

Definition at line 329 of file multi_pmsg.cpp.

int multi_msg_text_mode ( )

Definition at line 163 of file multi_pmsg.cpp.

int multi_msg_text_process ( int  k)

Definition at line 207 of file multi_pmsg.cpp.

int multi_msg_voice_record ( )

Definition at line 119 of file multi_pmsg.cpp.

Variable Documentation

char* Multi_msg_commands[MULTI_MSG_CMD_COUNT]
Initial value:
= {

Definition at line 72 of file multi_pmsg.cpp.

int Multi_msg_eat_stamp = -1

Definition at line 56 of file multi_pmsg.cpp.

int Multi_msg_mode = MULTI_MSG_NONE

Definition at line 47 of file multi_pmsg.cpp.

int Multi_msg_repeat_flag = 0

Definition at line 53 of file multi_pmsg.cpp.

int Multi_msg_stamp = -1

Definition at line 50 of file multi_pmsg.cpp.

char* Multi_msg_subsys_name[SUBSYSTEM_MAX]
Initial value:
= {
"Solar Array",

Definition at line 428 of file multi_pmsg.cpp.

char Multi_msg_text[MULTI_MSG_MAX_TEXT_LEN+1]

Definition at line 60 of file multi_pmsg.cpp.

int Multi_msg_text_enter = 0

Definition at line 59 of file multi_pmsg.cpp.