editor/med.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include "inferno.h"
#include "segment.h"
#include "gr.h"
#include "ui.h"
#include "editor.h"
#include "gamesave.h"
#include "gameseg.h"
#include "key.h"
#include "mono.h"
#include "error.h"
#include "kfuncs.h"
#include "macro.h"
#include "u_mem.h"
#include "render.h"
#include "game.h"
#include "slew.h"
#include "kdefs.h"
#include "func.h"
#include "textures.h"
#include "screens.h"
#include "texmap.h"
#include "object.h"
#include "effects.h"
#include "wall.h"
#include "info.h"
#include "ai.h"
#include "texpage.h"
#include "objpage.h"
#include "medmisc.h"
#include "meddraw.h"
#include "medsel.h"
#include "medrobot.h"
#include "medwall.h"
#include "eswitch.h"
#include "ehostage.h"
#include "centers.h"
#include "fuelcen.h"
#include "gameseq.h"
#include "newmenu.h"

Defines

#define DIAGNOSTIC_MESSAGE_MAX   90
#define EDITOR_STATUS_MESSAGE_DURATION   4
#define COMPRESS_INTERVAL   5
#define SIDE_VIEW_FRAC   (f1_0*8/10)
#define PAD_WIDTH   30
#define PAD_WIDTH1   (PAD_WIDTH + 7)

Functions

void print_status_bar (char message[DIAGNOSTIC_MESSAGE_MAX])
void print_diagnostic (char message[DIAGNOSTIC_MESSAGE_MAX])
void editor_status (const char *format,...)
void clear_editor_status (void)
void diagnostic_message (const char *format,...)
void editor_sub_status (const char *format,...)
int DropIntoDebugger ()
int ExitEditor ()
int GotoGameCommon (int mode)
int GotoGameScreen ()
int GotoGame ()
void ReadLispMacro (FILE *file, char *buffer)
void medkey_init ()
void init_editor ()
int ShowAbout ()
void move_player_2_segment (segment *seg, int side)
int SetPlayerFromCurseg ()
int fuelcen_create_from_curseg ()
int repaircen_create_from_curseg ()
int controlcen_create_from_curseg ()
int robotmaker_create_from_curseg ()
int fuelcen_reset_all ()
int fuelcen_delete_from_curseg ()
void move_player_2_segment_and_rotate (segment *seg, int side)
int SetPlayerFromCursegAndRotate ()
int SetPlayerFromCursegMinusOne ()
int ToggleLighting (void)
void find_concave_segs ()
int FindConcaveSegs ()
int DosShell ()
int ToggleOutlineMode ()
int GameZoomOut ()
int GameZoomIn ()
int med_keypad_goto_0 ()
int med_keypad_goto_1 ()
int med_keypad_goto_2 ()
int med_keypad_goto_3 ()
int med_keypad_goto_4 ()
int med_keypad_goto_5 ()
int med_keypad_goto_6 ()
int med_keypad_goto_7 ()
int med_keypad_goto_8 ()
void init_editor_screen ()
void close_editor_screen ()
void med_show_warning (char *s)
int SafetyCheck ()
void close_editor ()
void subtract_found_segments_from_selected_list (void)
void add_found_segments_to_selected_list (void)
void gamestate_restore_check ()
int RestoreGameState ()
void check_wall_validity (void)
void editor (void)
void test_fade (void)
void dump_stuff (void)
int MarkStart (void)
int MarkEnd (void)

Variables

int initializing
grs_canvas _canv_editor_game
grs_canvasCanv_editor
grs_canvasCanv_editor_game = &_canv_editor_game
grs_canvascanv_offscreen
grs_canvasPad_text_canvas
grs_fonteditor_font = NULL
vms_vector Ed_view_target = {0,0,0}
int gamestate_not_restored = 0
UI_WINDOWEditorWindow
int Large_view_index = -1
UI_GADGET_USERBOXGameViewBox
UI_GADGET_USERBOXLargeViewBox
UI_GADGET_USERBOXGroupViewBox
UI_GADGET_ICONViewIcon
UI_GADGET_ICONAllIcon
UI_GADGET_ICONAxesIcon
UI_GADGET_ICONChaseIcon
UI_GADGET_ICONOutlineIcon
UI_GADGET_ICONLockIcon
UI_EVENTDemoBuffer = NULL
int Found_seg_index = 0
static char status_line [DIAGNOSTIC_MESSAGE_MAX]
tm Editor_status_last_time
static char sub_status_line [DIAGNOSTIC_MESSAGE_MAX]
static int(* KeyFunction [2048])()
int editor_screen_open = 0

Define Documentation

#define COMPRESS_INTERVAL   5
 

#define DIAGNOSTIC_MESSAGE_MAX   90
 

#define EDITOR_STATUS_MESSAGE_DURATION   4
 

#define PAD_WIDTH   30
 

#define PAD_WIDTH1   (PAD_WIDTH + 7)
 

#define SIDE_VIEW_FRAC   (f1_0*8/10)
 


Function Documentation

void add_found_segments_to_selected_list void   ) 
 

void check_wall_validity void   ) 
 

void clear_editor_status void   ) 
 

void close_editor void   ) 
 

void close_editor_screen void   ) 
 

int controlcen_create_from_curseg  ) 
 

void diagnostic_message const char *  format,
  ...
 

int DosShell  ) 
 

int DropIntoDebugger  ) 
 

void dump_stuff void   ) 
 

void editor void   ) 
 

void editor_status const char *  format,
  ...
 

void editor_sub_status const char *  format,
  ...
 

int ExitEditor  ) 
 

void find_concave_segs  ) 
 

int FindConcaveSegs  ) 
 

int fuelcen_create_from_curseg  ) 
 

int fuelcen_delete_from_curseg  ) 
 

int fuelcen_reset_all  ) 
 

void gamestate_restore_check  ) 
 

int GameZoomIn  ) 
 

int GameZoomOut  ) 
 

int GotoGame  ) 
 

int GotoGameCommon int  mode  ) 
 

int GotoGameScreen  ) 
 

void init_editor void   ) 
 

void init_editor_screen void   ) 
 

int MarkEnd void   ) 
 

int MarkStart void   ) 
 

int med_keypad_goto_0  ) 
 

int med_keypad_goto_1  ) 
 

int med_keypad_goto_2  ) 
 

int med_keypad_goto_3  ) 
 

int med_keypad_goto_4  ) 
 

int med_keypad_goto_5  ) 
 

int med_keypad_goto_6  ) 
 

int med_keypad_goto_7  ) 
 

int med_keypad_goto_8  ) 
 

void med_show_warning char *  s  ) 
 

void medkey_init  ) 
 

void move_player_2_segment segment seg,
int  side
 

void move_player_2_segment_and_rotate segment seg,
int  side
 

void print_diagnostic char  message[DIAGNOSTIC_MESSAGE_MAX]  ) 
 

void print_status_bar char  message[DIAGNOSTIC_MESSAGE_MAX]  ) 
 

void ReadLispMacro FILE *  file,
char *  buffer
 

int repaircen_create_from_curseg  ) 
 

int RestoreGameState  ) 
 

int robotmaker_create_from_curseg  ) 
 

int SafetyCheck  ) 
 

int SetPlayerFromCurseg  ) 
 

int SetPlayerFromCursegAndRotate  ) 
 

int SetPlayerFromCursegMinusOne  ) 
 

int ShowAbout  ) 
 

void subtract_found_segments_from_selected_list void   ) 
 

void test_fade void   ) 
 

int ToggleLighting void   ) 
 

int ToggleOutlineMode  ) 
 


Variable Documentation

grs_canvas _canv_editor_game
 

UI_GADGET_ICON* AllIcon
 

UI_GADGET_ICON* AxesIcon
 

grs_canvas* Canv_editor
 

grs_canvas* Canv_editor_game = &_canv_editor_game
 

grs_canvas* canv_offscreen
 

UI_GADGET_ICON* ChaseIcon
 

UI_EVENT* DemoBuffer = NULL
 

vms_vector Ed_view_target = {0,0,0}
 

grs_font* editor_font = NULL
 

int editor_screen_open = 0
 

struct tm Editor_status_last_time
 

UI_WINDOW* EditorWindow
 

int Found_seg_index = 0
 

int gamestate_not_restored = 0
 

UI_GADGET_USERBOX* GameViewBox
 

UI_GADGET_USERBOX* GroupViewBox
 

int initializing
 

int(* KeyFunction[2048])() [static]
 

int Large_view_index = -1
 

UI_GADGET_USERBOX* LargeViewBox
 

UI_GADGET_ICON* LockIcon
 

UI_GADGET_ICON* OutlineIcon
 

grs_canvas* Pad_text_canvas
 

char status_line[DIAGNOSTIC_MESSAGE_MAX] [static]
 

char sub_status_line[DIAGNOSTIC_MESSAGE_MAX] [static]
 

UI_GADGET_ICON* ViewIcon
 


Generated on Mon Aug 28 20:55:31 2006 for D1X-Rebirth by  doxygen 1.4.6