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

Go to the source code of this file.


#define SHIP_SELECT_ICON_0   10
#define SHIP_SELECT_ICON_1   11
#define SHIP_SELECT_ICON_2   12
#define SHIP_SELECT_ICON_3   13
#define WING_0_SHIP_0   14
#define WING_0_SHIP_1   15
#define WING_0_SHIP_2   16
#define WING_0_SHIP_3   17
#define WING_1_SHIP_0   18
#define WING_1_SHIP_1   19
#define WING_1_SHIP_2   20
#define WING_1_SHIP_3   21
#define WING_2_SHIP_0   22
#define WING_2_SHIP_1   23
#define WING_2_SHIP_2   24
#define WING_2_SHIP_3   25
#define SHIP_SELECT_RESET   39


void draw_wing_block (int wb_num, int hot_slot, int selected_slot, int class_select, bool ship_selection=true)
void ship_select_init ()
void ship_select_do (float frametime)
void ship_select_close ()
void ship_select_common_init ()
void ship_select_common_close ()
int ss_get_ship_class (int ship_entry_index)
int ss_get_selected_ship ()
void ss_blit_ship_icon (int x, int y, int ship_class, int bmap_num)
int ss_return_ship (int wing_block, int wing_slot, int *ship_index, p_object **ppobjp)
void ss_return_name (int wing_block, int wing_slot, char *name)
int ss_return_original_ship_class (int slot_num)
int ss_return_saindex (int slot_num)
int ss_disabled_slot (int slot_num, bool ship_selection=true)
int ss_valid_slot (int slot_num)
int ss_wing_slot_is_console_player (int index)
void ss_recalc_multiplayer_slots ()
int create_default_player_ship (int use_last_flown=1)
void update_player_ship (int si_index)
void ss_synch_interface ()
void ss_make_slot_empty (int slot_index)
void ss_make_slot_full (int slot_index)
int ss_dump_to_list (int from_slot, int to_list, int *sound)
int ss_swap_slot_slot (int from_slot, int to_slot, int *sound)
int ss_grab_from_list (int from_list, int to_slot, int *sound)
int ss_swap_list_slot (int from_list, int to_slot, int *sound)
void ss_apply (int mode, int from_slot, int from_index, int to_slot, int to_index, int player_index=-1)
void ss_drop (int from_slot, int from_index, int to_slot, int to_index, int player_index=-1)


int Ship_select_open
int Commit_pressed
char default_player_ship [255]
int Select_default_ship
float ShipSelectScreenShipRot
int ShipSelectModelNum
int Ship_select_overlay_id

Macro Definition Documentation


Definition at line 45 of file missionshipchoice.h.


Definition at line 43 of file missionshipchoice.h.

#define SHIP_SELECT_ICON_0   10

Definition at line 23 of file missionshipchoice.h.

#define SHIP_SELECT_ICON_1   11

Definition at line 24 of file missionshipchoice.h.

#define SHIP_SELECT_ICON_2   12

Definition at line 25 of file missionshipchoice.h.

#define SHIP_SELECT_ICON_3   13

Definition at line 26 of file missionshipchoice.h.

#define SHIP_SELECT_RESET   39

Definition at line 41 of file missionshipchoice.h.


Definition at line 46 of file missionshipchoice.h.


Definition at line 21 of file missionshipchoice.h.


Definition at line 20 of file missionshipchoice.h.

#define WING_0_SHIP_0   14

Definition at line 28 of file missionshipchoice.h.

#define WING_0_SHIP_1   15

Definition at line 29 of file missionshipchoice.h.

#define WING_0_SHIP_2   16

Definition at line 30 of file missionshipchoice.h.

#define WING_0_SHIP_3   17

Definition at line 31 of file missionshipchoice.h.

#define WING_1_SHIP_0   18

Definition at line 32 of file missionshipchoice.h.

#define WING_1_SHIP_1   19

Definition at line 33 of file missionshipchoice.h.

#define WING_1_SHIP_2   20

Definition at line 34 of file missionshipchoice.h.

#define WING_1_SHIP_3   21

Definition at line 35 of file missionshipchoice.h.

#define WING_2_SHIP_0   22

Definition at line 36 of file missionshipchoice.h.

#define WING_2_SHIP_1   23

Definition at line 37 of file missionshipchoice.h.

#define WING_2_SHIP_2   24

Definition at line 38 of file missionshipchoice.h.

#define WING_2_SHIP_3   25

Definition at line 39 of file missionshipchoice.h.

Function Documentation

int create_default_player_ship ( int  use_last_flown = 1)

Definition at line 2479 of file missionshipchoice.cpp.

void draw_wing_block ( int  wb_num,
int  hot_slot,
int  selected_slot,
int  class_select,
bool  ship_selection = true 

Definition at line 2061 of file missionshipchoice.cpp.

void ship_select_close ( )

Definition at line 1559 of file missionshipchoice.cpp.

void ship_select_common_close ( )

Definition at line 3179 of file missionshipchoice.cpp.

void ship_select_common_init ( )

Definition at line 3153 of file missionshipchoice.cpp.

void ship_select_do ( float  frametime)

Definition at line 1266 of file missionshipchoice.cpp.

void ship_select_init ( )

Definition at line 645 of file missionshipchoice.cpp.

void ss_apply ( int  mode,
int  from_slot,
int  from_index,
int  to_slot,
int  to_index,
int  player_index = -1 

Definition at line 3372 of file missionshipchoice.cpp.

void ss_blit_ship_icon ( int  x,
int  y,
int  ship_class,
int  bmap_num 

Definition at line 2256 of file missionshipchoice.cpp.

int ss_disabled_slot ( int  slot_num,
bool  ship_selection = true 

Definition at line 2843 of file missionshipchoice.cpp.

void ss_drop ( int  from_slot,
int  from_index,
int  to_slot,
int  to_index,
int  player_index = -1 

Definition at line 3412 of file missionshipchoice.cpp.

int ss_dump_to_list ( int  from_slot,
int  to_list,
int sound 

Definition at line 3255 of file missionshipchoice.cpp.

int ss_get_selected_ship ( )

Definition at line 2640 of file missionshipchoice.cpp.

int ss_get_ship_class ( int  ship_entry_index)
int ss_grab_from_list ( int  from_list,
int  to_slot,
int sound 

Definition at line 3288 of file missionshipchoice.cpp.

void ss_make_slot_empty ( int  slot_index)

Definition at line 2213 of file missionshipchoice.cpp.

void ss_make_slot_full ( int  slot_index)

Definition at line 2235 of file missionshipchoice.cpp.

void ss_recalc_multiplayer_slots ( )

Definition at line 3424 of file missionshipchoice.cpp.

void ss_return_name ( int  wing_block,
int  wing_slot,
char *  name 

Definition at line 2604 of file missionshipchoice.cpp.

int ss_return_original_ship_class ( int  slot_num)

Definition at line 2522 of file missionshipchoice.cpp.

int ss_return_saindex ( int  slot_num)

Definition at line 2535 of file missionshipchoice.cpp.

int ss_return_ship ( int  wing_block,
int  wing_slot,
int ship_index,
p_object **  ppobjp 

Definition at line 2567 of file missionshipchoice.cpp.

int ss_swap_list_slot ( int  from_list,
int  to_slot,
int sound 

Definition at line 3324 of file missionshipchoice.cpp.

int ss_swap_slot_slot ( int  from_slot,
int  to_slot,
int sound 

Definition at line 3219 of file missionshipchoice.cpp.

void ss_synch_interface ( )

Definition at line 3186 of file missionshipchoice.cpp.

int ss_valid_slot ( int  slot_num)

Definition at line 2869 of file missionshipchoice.cpp.

int ss_wing_slot_is_console_player ( int  index)

Definition at line 2972 of file missionshipchoice.cpp.

void update_player_ship ( int  si_index)

Definition at line 2454 of file missionshipchoice.cpp.

Variable Documentation

int Commit_pressed

Definition at line 64 of file missionshipchoice.cpp.

char default_player_ship[255]

Definition at line 57 of file missionshipchoice.cpp.

int Select_default_ship

Definition at line 58 of file missionshipchoice.cpp.

int Ship_select_open

Definition at line 59 of file missionshipchoice.cpp.

int Ship_select_overlay_id

Definition at line 126 of file missionshipchoice.cpp.

int ShipSelectModelNum

Definition at line 75 of file missionshipchoice.cpp.

float ShipSelectScreenShipRot

Definition at line 74 of file missionshipchoice.cpp.