FS2_Open
Open source remastering of the Freespace 2 engine
managepilot.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 #ifndef _MANAGEPILOT_H
11 #define _MANAGEPILOT_H
12 
13 #include "globalincs/pstypes.h"
14 
15 class player;
16 
17 #define VALID_PILOT_CHARS " _-"
18 
19 #define MAX_PILOTS 20
20 #define MAX_PILOT_IMAGES 64
21 
22 // pilot pic image list stuff ( call pilot_load_pic_list() to make these valid )
25 extern int Num_pilot_images;
26 
27 // squad logo list stuff (call pilot_load_squad_pic_list() to make these valid )
30 extern int Num_pilot_squad_images;
31 
32 void init_new_pilot(player *p, int reset = 1);
33 
34 // load up the list of pilot image filenames (do this at game startup as well as barracks startup)
35 void pilot_load_pic_list();
36 
37 // load up the list of pilot squad filenames
39 
40 // set the truncated version of the callsign in the player struct
41 void pilot_set_short_callsign(player *p, int max_width);
42 
43 // pick a random image for the passed player
45 
46 // pick a random squad logo for the passed player
48 
49 // format a pilot's callsign into a "personal" form - ie, adding a 's or just an ' as appropriate
50 void pilot_format_callsign_personal(char *in_callsign,char *out_callsign);
51 
52 // throw up a popup asking the user to verify the overwrite of an existing pilot name
53 // 1 == ok to overwrite, 0 == not ok
55 
57 
58 #endif // _MANAGEPILOT_H
#define MAX_FILENAME_LEN
Definition: pstypes.h:324
int pilot_verify_overwrite()
char * Pilot_squad_image_names[MAX_PILOT_IMAGES]
Definition: managepilot.cpp:47
void pilot_load_pic_list()
Definition: player.h:85
void pilot_format_callsign_personal(char *in_callsign, char *out_callsign)
void pilot_load_squad_pic_list()
char Pilot_squad_images_arr[MAX_PILOT_IMAGES][MAX_FILENAME_LEN]
Definition: managepilot.cpp:46
void pilot_set_short_callsign(player *p, int max_width)
void pilot_set_random_pic(player *p)
GLfloat GLfloat p
Definition: Glext.h:8373
#define MAX_PILOT_IMAGES
Definition: managepilot.h:20
char Pilot_images_arr[MAX_PILOT_IMAGES][MAX_FILENAME_LEN]
Definition: managepilot.cpp:41
GLboolean reset
Definition: Glext.h:5243
void pilot_set_start_campaign(player *p)
void pilot_set_random_squad_pic(player *p)
void init_new_pilot(player *p, int reset=1)
Definition: managepilot.cpp:78
int Num_pilot_images
Definition: managepilot.cpp:43
char * Pilot_image_names[MAX_PILOT_IMAGES]
Definition: managepilot.cpp:42
int Num_pilot_squad_images
Definition: managepilot.cpp:48