FS2_Open
Open source remastering of the Freespace 2 engine
multi_team.cpp File Reference
#include "network/multi_team.h"
#include "globalincs/linklist.h"
#include "network/multimsgs.h"
#include "network/multiutil.h"
#include "network/multi_endgame.h"
#include "network/multi_pmsg.h"
#include "network/multi.h"
#include "object/object.h"
#include "ship/ship.h"
#include "iff_defs/iff_defs.h"
#include "stats/scoring.h"
#include "playerman/player.h"

Go to the source code of this file.

Macros

#define MT_CODE_TEAM_UPDATE   0
 
#define MT_CODE_TEAM_REQUEST   1
 
#define SEND_AND_DISPLAY(mesg)   do { send_game_chat_packet(Net_player, mesg, MULTI_MSG_ALL, NULL, NULL, 1); multi_display_chat_msg(mesg, 0, 0); } while(0);
 

Functions

void multi_team_process_team_change_request (net_player *pl, net_player *who_from, int team)
 
void multi_team_send_team_request (net_player *pl, int team)
 
void multi_team_host_assign_default_teams ()
 
void multi_team_sync_captains ()
 
int multi_team_process_team_update (ubyte *data)
 
void multi_team_level_init ()
 
int multi_team_winner ()
 
void multi_team_maybe_add_score (int points, int team)
 
void multi_team_reset ()
 
void multi_team_set_captain (net_player *pl, int set)
 
void multi_team_set_team (net_player *pl, int team)
 
int multi_team_ok_to_commit ()
 
void multi_team_handle_drop ()
 
void multi_team_handle_join (net_player *pl)
 
void multi_team_mark_all_ships ()
 
void multi_team_mark_ship (ship *sp)
 
void multi_team_host_lock_all ()
 
void multi_team_get_player_counts (int *team0, int *team1)
 
void multi_team_report ()
 
void multi_team_process_packet (unsigned char *data, header *hinfo)
 
void multi_team_send_update ()
 
void multi_team_verify ()
 

Variables

int Multi_team_score [MAX_TVT_TEAMS]
 

Macro Definition Documentation

#define MT_CODE_TEAM_REQUEST   1

Definition at line 36 of file multi_team.cpp.

#define MT_CODE_TEAM_UPDATE   0

Definition at line 35 of file multi_team.cpp.

#define SEND_AND_DISPLAY (   mesg)    do { send_game_chat_packet(Net_player, mesg, MULTI_MSG_ALL, NULL, NULL, 1); multi_display_chat_msg(mesg, 0, 0); } while(0);

Definition at line 571 of file multi_team.cpp.

Function Documentation

void multi_team_get_player_counts ( int team0,
int team1 
)

Definition at line 546 of file multi_team.cpp.

void multi_team_handle_drop ( )

Definition at line 356 of file multi_team.cpp.

void multi_team_handle_join ( net_player pl)

Definition at line 438 of file multi_team.cpp.

void multi_team_host_assign_default_teams ( )

Definition at line 220 of file multi_team.cpp.

void multi_team_host_lock_all ( )

Definition at line 530 of file multi_team.cpp.

void multi_team_level_init ( )

Definition at line 68 of file multi_team.cpp.

void multi_team_mark_all_ships ( )

Definition at line 497 of file multi_team.cpp.

void multi_team_mark_ship ( ship sp)

Definition at line 514 of file multi_team.cpp.

void multi_team_maybe_add_score ( int  points,
int  team 
)

Definition at line 105 of file multi_team.cpp.

int multi_team_ok_to_commit ( )

Definition at line 323 of file multi_team.cpp.

void multi_team_process_packet ( unsigned char *  data,
header hinfo 
)

Definition at line 628 of file multi_team.cpp.

void multi_team_process_team_change_request ( net_player pl,
net_player who_from,
int  team 
)

Definition at line 191 of file multi_team.cpp.

int multi_team_process_team_update ( ubyte data)

Definition at line 754 of file multi_team.cpp.

void multi_team_report ( )

Definition at line 572 of file multi_team.cpp.

void multi_team_reset ( )

Definition at line 128 of file multi_team.cpp.

void multi_team_send_team_request ( net_player pl,
int  team 
)

Definition at line 675 of file multi_team.cpp.

void multi_team_send_update ( )

Definition at line 696 of file multi_team.cpp.

void multi_team_set_captain ( net_player pl,
int  set 
)

Definition at line 150 of file multi_team.cpp.

void multi_team_set_team ( net_player pl,
int  team 
)

Definition at line 166 of file multi_team.cpp.

void multi_team_sync_captains ( )

Definition at line 275 of file multi_team.cpp.

void multi_team_verify ( )

Definition at line 802 of file multi_team.cpp.

int multi_team_winner ( )

Definition at line 76 of file multi_team.cpp.

Variable Documentation

int Multi_team_score[MAX_TVT_TEAMS]

Definition at line 41 of file multi_team.cpp.