123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488 |
- #pragma once
- typedef struct
- {
- int x, y;
- } fpoint_t;
- typedef struct
- {
- fpoint_t a, b;
- } fline_t;
- typedef struct
- {
- fixed_t x,y;
- } mpoint_t;
- typedef struct
- {
- mpoint_t a, b;
- } mline_t;
- typedef struct
- {
- fixed_t slp, islp;
- } islope_t;
- typedef struct
- {
- char *name;
- mobjtype_t type;
- } castinfo_t;
- enum {
- J_DELTAX,
- J_DELTAY,
- };
- enum InputEventType
- {
- IETAxis,
- IETButtonDigital,
- IETButtonAnalog,
- IETNone,
- } ;
- struct InputEvent
- {
- InputEventType type;
- int data;
- int action;
- int port;
- } ;
- typedef struct tagMUSheader_t {
- char ID[4];
- WORD scoreLen;
- WORD scoreStart;
- WORD channels;
- WORD sec_channels;
- WORD instrCnt;
- WORD dummy;
-
- } MUSheader_t ;
- typedef struct tagMidiHeaderChunk_t {
- char name[4];
- int length;
- short format;
- short ntracks;
- short division;
- } MidiHeaderChunk_t;
- typedef struct tagMidiTrackChunk_t {
- char name[4];
- int length;
- } MidiTrackChunk_t;
- typedef struct
- {
-
- short status;
- char name[10];
-
-
-
- void (*routine)(int choice);
-
- char alphaKey;
- } menuitem_t;
- typedef struct menu_s
- {
- short numitems;
- struct menu_s* prevMenu;
- menuitem_t* menuitems;
- void (*routine)();
- short x;
- short y;
- short lastOn;
- } menu_t;
- typedef enum
- {
- newgame = 0,
- options,
- loadgame,
- savegame,
- quitdoom,
- main_end
- } main_e;
- typedef enum
- {
- g_accept,
- g_cancel,
- g_change,
- qut_end
- } quit_e;
- typedef enum
- {
- ep1,
- ep2,
- ep3,
- ep4,
- ep_end
- } episodes_e;
- typedef enum
- {
- ex1,
- ex2,
- ex_end
- } expansions_e;
- typedef enum
- {
- killthings,
- toorough,
- hurtme,
- violence,
- nightmare,
- newg_end
- } newgame_e;
- typedef enum
- {
- endgame,
- scrnsize,
- messages,
-
- option_empty1,
- mousesens,
- option_empty2,
- soundvol,
- opt_end
- } options_e;
- typedef enum
- {
- rdthsempty1,
- read1_end
- } read_e;
- typedef enum
- {
- rdthsempty2,
- read2_end
- } read_e2;
- typedef enum
- {
- sfx_vol,
- sfx_empty1,
- music_vol,
- sfx_empty2,
- sound_end
- } sound_e;
- typedef enum
- {
- load1,
- load2,
- load3,
- load4,
- load5,
- load6,
- load_end
- } load_e;
- struct default_t
- {
- char* name;
- union {
- int * location;
- const char * * charLocation;
- };
- union {
- int defaultvalue;
- const char * charDefault;
- };
- int scantranslate;
- int untranslated;
- default_t( ) :
- name( NULL ),
- location( NULL ),
- defaultvalue( 0 ),
- scantranslate( 0 ),
- untranslated( 0 ) {
- }
- default_t( char * name_, int * location_, int defaultvalue_ ) :
- name( name_ ),
- location( location_ ),
- defaultvalue( defaultvalue_ ) {
- }
- default_t( char * name_, const char * * charLocation_, const char * charDefault_ ) :
- name( name_ ),
- charLocation( charLocation_ ),
- charDefault( charDefault_ ) {
- }
- };
- typedef struct
- {
- char manufacturer;
- char version;
- char encoding;
- char bits_per_pixel;
- unsigned short xmin;
- unsigned short ymin;
- unsigned short xmax;
- unsigned short ymax;
-
- unsigned short hres;
- unsigned short vres;
- unsigned char palette[48];
-
- char reserved;
- char color_planes;
- unsigned short bytes_per_line;
- unsigned short palette_type;
-
- char filler[58];
- unsigned char data;
- } pcx_t;
- typedef enum
- {
- DI_EAST,
- DI_NORTHEAST,
- DI_NORTH,
- DI_NORTHWEST,
- DI_WEST,
- DI_SOUTHWEST,
- DI_SOUTH,
- DI_SOUTHEAST,
- DI_NODIR,
- NUMDIRS
-
- } dirtype_t;
- typedef enum
- {
- tc_end = 0,
- tc_mobj
- } thinkerclass_t;
- typedef enum
- {
- tc_ceiling = 2,
- tc_door,
- tc_floor,
- tc_plat,
- tc_flash,
- tc_strobe,
- tc_glow,
- tc_endspecials,
- tc_fire
- } specials_e;
- typedef struct
- {
- qboolean istexture;
- int picnum;
- int basepic;
- int numpics;
- int speed;
- } anim_t2;
- typedef struct
- {
- qboolean istexture;
- char endname[9];
- char startname[9];
- int speed;
- } animdef_t;
- typedef struct
- {
- int first;
- int last;
-
- } cliprange_t;
- typedef struct
- {
- short originx;
- short originy;
- short patch;
- short stepdir;
- short colormap;
- } mappatch_t;
- typedef struct
- {
- char name[8];
- int masked;
- short width;
- short height;
- void **columndirectory;
- short patchcount;
- mappatch_t patches[1];
- } maptexture_t;
- typedef struct
- {
-
-
-
- int originx;
- int originy;
- int patch;
- } texpatch_t;
- typedef struct
- {
-
- char name[8];
- short width;
- short height;
-
-
-
- short patchcount;
- texpatch_t patches[1];
-
- } texture_t;
- typedef struct
- {
- int x1;
- int x2;
-
- int column;
- int topclip;
- int bottomclip;
- } maskdraw_t;
- typedef enum
- {
- NoState = -1,
- StatCount,
- ShowNextLoc
- } stateenum_t;
- typedef struct
- {
-
- sfxinfo_t* sfxinfo;
-
- void* origin;
-
- int handle;
- } channel_t;
- typedef enum
- {
- ANIM_ALWAYS,
- ANIM_RANDOM,
- ANIM_LEVEL
- } animenum_t;
- typedef struct
- {
- int x;
- int y;
-
- } point_t;
- typedef struct
- {
- animenum_t type;
-
- int period;
-
- int nanims;
-
- point_t loc;
-
-
-
- int data1;
-
-
-
- int data2;
-
- patch_t* p[3];
-
-
- int nexttic;
-
- int lastdrawn;
-
- int ctr;
-
-
- int state;
- } anim_t;
- struct lumplookup
- {
- int lump;
- lumplookup *next;
- lumplookup *prev;
- };
- typedef struct
- {
-
- int size;
-
- memblock_t blocklist;
-
- memblock_t* rover;
-
- } memzone_t;
|