FS2_Open
Open source remastering of the Freespace 2 engine
missionpause.cpp File Reference
#include "controlconfig/controlsconfig.h"
#include "freespace2/freespace.h"
#include "gamesequence/gamesequence.h"
#include "globalincs/alphacolors.h"
#include "graphics/font.h"
#include "hud/hud.h"
#include "hud/hudmessage.h"
#include "io/key.h"
#include "missionui/missionpause.h"
#include "network/multi_pause.h"
#include "object/object.h"
#include "popup/popup.h"
#include "sound/audiostr.h"
#include "ui/ui.h"
#include "weapon/weapon.h"

Go to the source code of this file.

Functions

int pause_get_type ()
 
void pause_set_type (int type)
 
void pause_init ()
 
int button_function_demo_valid (int n)
 
int button_function (int n)
 
void pause_do ()
 
void pause_close ()
 
void pause_debug_init ()
 
void pause_debug_do ()
 
void pause_debug_close ()
 

Variables

char * Pause_bmp_name [GR_NUM_RESOLUTIONS]
 
int Please_wait_coords [GR_NUM_RESOLUTIONS][4]
 
UI_WINDOW Pause_win
 
UI_CHECKBOX Pause_single_step
 
UI_CHECKBOX Pause_physics
 
UI_CHECKBOX Pause_ai
 
UI_CHECKBOX Pause_ai_render
 
UI_CHECKBOX Pause_firing
 
UI_CHECKBOX Pause_external_view_mode_check
 
UI_BUTTON Pause_continue
 
int Pause_type = PAUSE_TYPE_NORMAL
 
int Paused = 0
 
int Pause_background_bitmap = -1
 
int Pause_saved_screen = -1
 
int Pause_external_view_mode = 0
 
int Ai_render_debug_flag
 
int Ai_firing_enabled
 
int physics_paused
 
int ai_paused
 
int last_single_step
 
int game_single_step
 

Function Documentation

int button_function ( int  n)

Execute function corresponding to action n (BUTTON_ from KeyControl.h)

Returns
1 when action was taken

This switch handles the critical buttons

button_function_critical is also called from network

Assume the switches below will catch the key, if not, set to FALSE in default

Below, you must not use return in cases, else the check for invalid keys will fail

The key has been handled, return early before the timestamp is set

Update the last used timestamp of this key

All keys should have been handled above, if not panic

Definition at line 2218 of file keycontrol.cpp.

int button_function_demo_valid ( int  n)

Execute function corresponding to action n Basically, these are actions which don't affect demo playback at all

Parameters
nAction number

Definition at line 2063 of file keycontrol.cpp.

void pause_close ( )

Definition at line 238 of file missionpause.cpp.

void pause_debug_close ( )

Definition at line 345 of file missionpause.cpp.

void pause_debug_do ( )

Definition at line 297 of file missionpause.cpp.

void pause_debug_init ( )

Definition at line 271 of file missionpause.cpp.

void pause_do ( )

Definition at line 128 of file missionpause.cpp.

int pause_get_type ( )

Definition at line 87 of file missionpause.cpp.

void pause_init ( )

Definition at line 98 of file missionpause.cpp.

void pause_set_type ( int  type)

Definition at line 92 of file missionpause.cpp.

Variable Documentation

int Ai_firing_enabled

Definition at line 194 of file aicode.cpp.

int ai_paused

Definition at line 677 of file object.cpp.

int Ai_render_debug_flag

Definition at line 113 of file ship.cpp.

int game_single_step

Definition at line 209 of file fredstubs.cpp.

int last_single_step

Definition at line 210 of file fredstubs.cpp.

UI_CHECKBOX Pause_ai

Definition at line 56 of file missionpause.cpp.

UI_CHECKBOX Pause_ai_render

Definition at line 57 of file missionpause.cpp.

int Pause_background_bitmap = -1

Definition at line 67 of file missionpause.cpp.

char* Pause_bmp_name[GR_NUM_RESOLUTIONS]
Initial value:
= {
"PleaseWait",
"2_PleaseWait"
}

Definition at line 37 of file missionpause.cpp.

UI_BUTTON Pause_continue

Definition at line 60 of file missionpause.cpp.

int Pause_external_view_mode = 0

Definition at line 73 of file missionpause.cpp.

UI_CHECKBOX Pause_external_view_mode_check

Definition at line 59 of file missionpause.cpp.

UI_CHECKBOX Pause_firing

Definition at line 58 of file missionpause.cpp.

UI_CHECKBOX Pause_physics

Definition at line 55 of file missionpause.cpp.

int Pause_saved_screen = -1

Definition at line 70 of file missionpause.cpp.

UI_CHECKBOX Pause_single_step

Definition at line 54 of file missionpause.cpp.

int Pause_type = PAUSE_TYPE_NORMAL

Definition at line 61 of file missionpause.cpp.

UI_WINDOW Pause_win

Definition at line 53 of file missionpause.cpp.

int Paused = 0

Definition at line 64 of file missionpause.cpp.

int physics_paused

Definition at line 677 of file object.cpp.

int Please_wait_coords[GR_NUM_RESOLUTIONS][4]
Initial value:
= {
{
152, 217, 316, 26
},
{
247, 346, 510, 36
}
}

Definition at line 43 of file missionpause.cpp.