Open source remastering of the Freespace 2 engine
managepilot.h File Reference

Go to the source code of this file.


#define VALID_PILOT_CHARS   " _-"
#define MAX_PILOTS   20
#define MAX_PILOT_IMAGES   64


void init_new_pilot (player *p, int reset=1)
void pilot_load_pic_list ()
void pilot_load_squad_pic_list ()
void pilot_set_short_callsign (player *p, int max_width)
void pilot_set_random_pic (player *p)
void pilot_set_random_squad_pic (player *p)
void pilot_format_callsign_personal (char *in_callsign, char *out_callsign)
int pilot_verify_overwrite ()
void pilot_set_start_campaign (player *p)


char Pilot_images_arr [MAX_PILOT_IMAGES][MAX_FILENAME_LEN]
char * Pilot_image_names [MAX_PILOT_IMAGES]
int Num_pilot_images
char Pilot_squad_images_arr [MAX_PILOT_IMAGES][MAX_FILENAME_LEN]
char * Pilot_squad_image_names [MAX_PILOT_IMAGES]
int Num_pilot_squad_images

Macro Definition Documentation

#define MAX_PILOT_IMAGES   64

Definition at line 20 of file managepilot.h.

#define MAX_PILOTS   20

Definition at line 19 of file managepilot.h.

#define VALID_PILOT_CHARS   " _-"

Definition at line 17 of file managepilot.h.

Function Documentation

void init_new_pilot ( player p,
int  reset = 1 

Definition at line 78 of file managepilot.cpp.

void pilot_format_callsign_personal ( char *  in_callsign,
char *  out_callsign 

Definition at line 295 of file managepilot.cpp.

void pilot_load_pic_list ( )

Definition at line 321 of file managepilot.cpp.

void pilot_load_squad_pic_list ( )

Definition at line 333 of file managepilot.cpp.

void pilot_set_random_pic ( player p)

Definition at line 260 of file managepilot.cpp.

void pilot_set_random_squad_pic ( player p)

Definition at line 279 of file managepilot.cpp.

void pilot_set_short_callsign ( player p,
int  max_width 

Definition at line 251 of file managepilot.cpp.

void pilot_set_start_campaign ( player p)

Definition at line 176 of file managepilot.cpp.

int pilot_verify_overwrite ( )

Definition at line 315 of file managepilot.cpp.

Variable Documentation

int Num_pilot_images

Definition at line 43 of file managepilot.cpp.

int Num_pilot_squad_images

Definition at line 48 of file managepilot.cpp.

char* Pilot_image_names[MAX_PILOT_IMAGES]

Definition at line 42 of file managepilot.cpp.


Definition at line 41 of file managepilot.cpp.

char* Pilot_squad_image_names[MAX_PILOT_IMAGES]

Definition at line 47 of file managepilot.cpp.

char Pilot_squad_images_arr[MAX_PILOT_IMAGES][MAX_FILENAME_LEN]

Definition at line 46 of file managepilot.cpp.