2007-01-29 01:18:16 +00:00
|
|
|
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
|
|
|
|
// Ken Silverman's official web site: "http://www.advsys.net/ken"
|
|
|
|
// See the included license file "BUILDLIC.TXT" for license info.
|
|
|
|
|
|
|
|
#ifndef __editor_h__
|
|
|
|
#define __editor_h__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-05-16 00:23:33 +00:00
|
|
|
// Build keys
|
|
|
|
#define BK_MOVEFORWARD 0
|
|
|
|
#define BK_MOVEBACKWARD 1
|
|
|
|
#define BK_TURNLEFT 2
|
|
|
|
#define BK_TURNRIGHT 3
|
|
|
|
#define BK_RUN 4
|
|
|
|
#define BK_STRAFE 5
|
|
|
|
#define BK_SHOOT 6
|
|
|
|
#define BK_OPEN 7
|
|
|
|
#define BK_MOVEUP 8
|
|
|
|
#define BK_MOVEDOWN 9
|
|
|
|
#define BK_LOOKUP 10
|
|
|
|
#define BK_LOOKDOWN 11
|
|
|
|
#define BK_STRAFELEFT 12
|
|
|
|
#define BK_STRAFERIGHT 13
|
|
|
|
#define BK_MODE2D_3D 14
|
|
|
|
#define BK_PLAYERVIEW 15
|
|
|
|
#define BK_ZOOMIN 16
|
|
|
|
#define BK_ZOOMOUT 17
|
|
|
|
#define BK_MESSAGE 18
|
|
|
|
#define BK_CONSOLE 19
|
2007-01-29 01:18:16 +00:00
|
|
|
#define NUMBUILDKEYS 20
|
|
|
|
|
2007-12-12 17:42:14 +00:00
|
|
|
extern int qsetmode;
|
2007-01-29 01:18:16 +00:00
|
|
|
extern short searchsector, searchwall, searchstat;
|
2007-12-12 17:42:14 +00:00
|
|
|
extern int zmode, kensplayerheight;
|
2007-01-29 01:18:16 +00:00
|
|
|
extern short defaultspritecstat;
|
|
|
|
|
|
|
|
extern short temppicnum, tempcstat, templotag, temphitag, tempextra;
|
2008-05-16 19:51:38 +00:00
|
|
|
extern unsigned char temppal, tempxrepeat, tempyrepeat;
|
|
|
|
signed char tempshade;
|
2007-01-29 01:18:16 +00:00
|
|
|
extern unsigned char somethingintab;
|
|
|
|
|
|
|
|
extern unsigned char buildkeys[NUMBUILDKEYS];
|
|
|
|
|
2007-12-12 17:42:14 +00:00
|
|
|
extern int ydim16, xdimgame, ydimgame, bppgame, xdim2d, ydim2d, forcesetup;
|
2008-05-16 19:51:38 +00:00
|
|
|
extern char unrealedlook, quickmapcycling;
|
2008-05-18 21:09:30 +00:00
|
|
|
extern int pk_turnaccel,pk_turndecel,pk_uedaccel;
|
|
|
|
extern int revertCTRL,scrollamount;
|
2008-05-30 09:07:50 +00:00
|
|
|
extern unsigned char autosave;
|
2007-01-29 01:18:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
extern int ExtInit(void);
|
2007-08-17 03:16:46 +00:00
|
|
|
extern int ExtPreInit(int argc,const char **argv);
|
2007-01-29 01:18:16 +00:00
|
|
|
extern void ExtUnInit(void);
|
|
|
|
extern void ExtPreCheckKeys(void);
|
|
|
|
#ifdef SUPERBUILD
|
|
|
|
extern void ExtAnalyzeSprites(void);
|
|
|
|
#endif
|
|
|
|
extern void ExtCheckKeys(void);
|
|
|
|
extern void ExtPreLoadMap(void);
|
|
|
|
extern void ExtLoadMap(const char *mapname);
|
|
|
|
extern void ExtPreSaveMap(void);
|
|
|
|
extern void ExtSaveMap(const char *mapname);
|
|
|
|
extern const char *ExtGetSectorCaption(short sectnum);
|
|
|
|
extern const char *ExtGetWallCaption(short wallnum);
|
|
|
|
extern const char *ExtGetSpriteCaption(short spritenum);
|
|
|
|
extern void ExtShowSectorData(short sectnum);
|
|
|
|
extern void ExtShowWallData(short wallnum);
|
|
|
|
extern void ExtShowSpriteData(short spritenum);
|
|
|
|
extern void ExtEditSectorData(short sectnum);
|
|
|
|
extern void ExtEditWallData(short wallnum);
|
|
|
|
extern void ExtEditSpriteData(short spritenum);
|
|
|
|
extern char ExtCustomSpriteColor(short picnum);
|
|
|
|
extern void ExtSetupSpecialSpriteCols(void);
|
|
|
|
|
|
|
|
int loadsetup(const char *fn); // from config.c
|
|
|
|
int writesetup(const char *fn); // from config.c
|
|
|
|
|
|
|
|
void editinput(void);
|
|
|
|
void clearmidstatbar16(void);
|
|
|
|
|
2007-12-12 17:42:14 +00:00
|
|
|
int getnumber256(char namestart[80], int num, int maxnumber, char sign);
|
|
|
|
int getnumber16(char namestart[80], int num, int maxnumber, char sign);
|
2007-01-29 01:18:16 +00:00
|
|
|
void printmessage256(char name[82]);
|
|
|
|
void printmessage16(char name[82]);
|
|
|
|
|
2007-12-12 17:42:14 +00:00
|
|
|
void getpoint(int searchxe, int searchye, int *x, int *y);
|
|
|
|
int getpointhighlight(int xplc, int yplc);
|
2007-01-29 01:18:16 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|