Open source remastering of the Freespace 2 engine
hudescort.cpp File Reference
#include "gamesnd/gamesnd.h"
#include "globalincs/alphacolors.h"
#include "globalincs/linklist.h"
#include "globalincs/systemvars.h"
#include "hud/hudescort.h"
#include "hud/hudmessage.h"
#include "hud/hudparse.h"
#include "hud/hudshield.h"
#include "hud/hudtargetbox.h"
#include "iff_defs/iff_defs.h"
#include "io/timer.h"
#include "network/multi.h"
#include "network/multiutil.h"
#include "object/object.h"
#include "parse/parselo.h"
#include "playerman/player.h"
#include "ship/ship.h"
#include "weapon/emp.h"

Go to the source code of this file.


struct  escort_info


typedef struct escort_info escort_info


void hud_escort_update_list ()
void hud_escort_init ()
void hud_escort_clear_all (bool clear_flags)
int escort_compare_func (const void *e1, const void *e2)
void hud_create_complete_escort_list (escort_info *escorts, int *num_escorts)
void hud_setup_escort_list (int level)
void merge_escort_lists (escort_info *complete_escorts, int num_complete_escorts)
void hud_remove_ship_from_escort_index (int dead_index, int objnum)
void hud_escort_cull_list ()
void hud_escort_view_toggle ()
void hud_add_ship_to_escort (int objnum, int supress_feedback)
void hud_add_remove_ship_escort (int objnum, int supress_feedback)
void hud_remove_ship_from_escort (int objnum)
void hud_escort_ship_hit (object *objp, int quadrant)
void hud_escort_target_next ()
int hud_escort_num_ships_on_list ()
int hud_escort_return_objnum (int index)
void hud_escort_add_player (short id)
void hud_escort_remove_player (short id)


int Show_escort_view
escort_info Escort_ships [MAX_COMPLETE_ESCORT_LIST]
int Num_escort_ships
int Max_escort_ships = 3

Typedef Documentation

typedef struct escort_info escort_info

Function Documentation

int escort_compare_func ( const void e1,
const void e2 

Definition at line 501 of file hudescort.cpp.

void hud_add_remove_ship_escort ( int  objnum,
int  supress_feedback 

Definition at line 917 of file hudescort.cpp.

void hud_add_ship_to_escort ( int  objnum,
int  supress_feedback 

Definition at line 849 of file hudescort.cpp.

void hud_create_complete_escort_list ( escort_info escorts,
int num_escorts 

Definition at line 547 of file hudescort.cpp.

void hud_escort_add_player ( short  id)

Definition at line 1054 of file hudescort.cpp.

void hud_escort_clear_all ( bool  clear_flags)

Definition at line 482 of file hudescort.cpp.

void hud_escort_cull_list ( )

Definition at line 793 of file hudescort.cpp.

void hud_escort_init ( )

Definition at line 470 of file hudescort.cpp.

int hud_escort_num_ships_on_list ( )

Definition at line 1026 of file hudescort.cpp.

void hud_escort_remove_player ( short  id)

Definition at line 1074 of file hudescort.cpp.

int hud_escort_return_objnum ( int  index)

Definition at line 1032 of file hudescort.cpp.

void hud_escort_ship_hit ( object objp,
int  quadrant 

Called whenever a ship is hit to determine if that ship is in the escort list. If it is, then start timers to flash the name hull/shield icon for that ship.

objpThe object hit
quadrantShield quadrant on the object that was hit, alternatively -1 if no shield

Definition at line 989 of file hudescort.cpp.

void hud_escort_target_next ( )

Definition at line 1006 of file hudescort.cpp.

void hud_escort_update_list ( )

Definition at line 451 of file hudescort.cpp.

void hud_escort_view_toggle ( )

Definition at line 838 of file hudescort.cpp.

void hud_remove_ship_from_escort ( int  objnum)

Definition at line 954 of file hudescort.cpp.

void hud_remove_ship_from_escort_index ( int  dead_index,
int  objnum 

Definition at line 755 of file hudescort.cpp.

void hud_setup_escort_list ( int  level)

Definition at line 651 of file hudescort.cpp.

void merge_escort_lists ( escort_info complete_escorts,
int  num_complete_escorts 

Definition at line 688 of file hudescort.cpp.

Variable Documentation

Definition at line 50 of file hudescort.cpp.

int Max_escort_ships = 3

Definition at line 52 of file hudescort.cpp.

int Num_escort_ships

Definition at line 51 of file hudescort.cpp.

int Show_escort_view

Definition at line 34 of file hudescort.cpp.