Open source remastering of the Freespace 2 engine
fred.cpp File Reference
#include "stdafx.h"
#include "FRED.h"
#include "MainFrm.h"
#include "FREDDoc.h"
#include "FREDView.h"
#include "FredRender.h"
#include "Management.h"
#include "graphics/2d.h"
#include "io/key.h"
#include "object/object.h"
#include "editor.h"
#include "CampaignTreeWnd.h"
#include "CampaignTreeView.h"
#include "CampaignEditorDlg.h"
#include "globalincs/mspdb_callstack.h"
#include "AFXADV.H"

Go to the source code of this file.


class  CAboutDlg
struct  pending_message




void show_control_mode (void)
void process_pending_messages (void)
void add_pending_message (HWND hwnd, int id, int wparam, int lparam, int skip_count)
void init_pending_messages (void)
void update_map_window ()
void game_start_subspace_ambient_sound ()
void game_stop_subspace_ambient_sound ()


int Fred_running = 1
int User_interface = HOFFOSS_INTERFACE
int FrameCount = 0
int Fred_active = 1
int Update_window = 1
HCURSOR h_cursor_move
HCURSOR h_cursor_rotate
int Show_cpu = 0
CWnd * Prev_window
CShipEditorDlg Ship_editor_dialog
wing_editor Wing_editor_dialog
waypoint_path_dlg Waypoint_editor_dialog
bg_bitmap_dlgBg_bitmap_dialog = NULL
briefing_editor_dlgBriefing_dialog = NULL
window_data Main_wnd_data
window_data Ship_wnd_data
window_data Wing_wnd_data
window_data Object_wnd_data
window_data Mission_goals_wnd_data
window_data Messages_wnd_data
window_data Player_wnd_data
window_data Events_wnd_data
window_data Bg_wnd_data
window_data Briefing_wnd_data
window_data Reinforcement_wnd_data
window_data Waypoint_wnd_data
window_data Starfield_wnd_data
window_data Asteroid_wnd_data
window_data Mission_notes_wnd_data
CFREDApp theApp
char * c
char * tok = "whee"
char * edit_mode_text []
char * control_mode_text []
pending_message Pending_messages [MAX_PENDING_MESSAGES]
float Sun_spot = 0.0f

Macro Definition Documentation


Definition at line 399 of file fred.cpp.

Function Documentation

void add_pending_message ( HWND  hwnd,
int  id,
int  wparam,
int  lparam,
int  skip_count 

Definition at line 423 of file fred.cpp.

void game_start_subspace_ambient_sound ( )

Definition at line 704 of file fred.cpp.

void game_stop_subspace_ambient_sound ( )

Definition at line 705 of file fred.cpp.

void init_pending_messages ( void  )

Definition at line 437 of file fred.cpp.

void process_pending_messages ( void  )

Definition at line 408 of file fred.cpp.

void show_control_mode ( void  )

Definition at line 361 of file fred.cpp.

void update_map_window ( )

Definition at line 532 of file fred.cpp.

Variable Documentation

window_data Asteroid_wnd_data

Definition at line 74 of file fred.cpp.

bg_bitmap_dlg* Bg_bitmap_dialog = NULL

Definition at line 58 of file fred.cpp.

window_data Bg_wnd_data

Definition at line 69 of file fred.cpp.

briefing_editor_dlg* Briefing_dialog = NULL

Definition at line 59 of file fred.cpp.

window_data Briefing_wnd_data

Definition at line 70 of file fred.cpp.

char* c

Definition at line 119 of file fred.cpp.

char* control_mode_text[]
Initial value:
= {

Definition at line 356 of file fred.cpp.

char* edit_mode_text[]
Initial value:
= {

Definition at line 346 of file fred.cpp.

window_data Events_wnd_data

Definition at line 68 of file fred.cpp.

int FrameCount = 0

Definition at line 46 of file fred.cpp.

int Fred_active = 1

Definition at line 47 of file fred.cpp.

int Fred_running = 1

Definition at line 44 of file fred.cpp.

HCURSOR h_cursor_move

Definition at line 49 of file fred.cpp.

HCURSOR h_cursor_rotate

Definition at line 49 of file fred.cpp.

window_data Main_wnd_data

Definition at line 61 of file fred.cpp.

window_data Messages_wnd_data

Definition at line 66 of file fred.cpp.

window_data Mission_goals_wnd_data

Definition at line 65 of file fred.cpp.

window_data Mission_notes_wnd_data

Definition at line 75 of file fred.cpp.

window_data Object_wnd_data

Definition at line 64 of file fred.cpp.

Definition at line 405 of file fred.cpp.

window_data Player_wnd_data

Definition at line 67 of file fred.cpp.

CWnd* Prev_window

Definition at line 54 of file fred.cpp.

window_data Reinforcement_wnd_data

Definition at line 71 of file fred.cpp.

CShipEditorDlg Ship_editor_dialog

Definition at line 55 of file fred.cpp.

window_data Ship_wnd_data

Definition at line 62 of file fred.cpp.

int Show_cpu = 0

Definition at line 52 of file fred.cpp.

window_data Starfield_wnd_data

Definition at line 73 of file fred.cpp.

float Sun_spot = 0.0f

Definition at line 708 of file fred.cpp.

CFREDApp theApp

Definition at line 115 of file fred.cpp.

char* tok = "whee"

Definition at line 120 of file fred.cpp.

int Update_window = 1

Definition at line 48 of file fred.cpp.

int User_interface = HOFFOSS_INTERFACE

Definition at line 45 of file fred.cpp.

waypoint_path_dlg Waypoint_editor_dialog

Definition at line 57 of file fred.cpp.

window_data Waypoint_wnd_data

Definition at line 72 of file fred.cpp.

wing_editor Wing_editor_dialog

Definition at line 56 of file fred.cpp.

window_data Wing_wnd_data

Definition at line 63 of file fred.cpp.