Odamex
Setting the Standard in Multiplayer Doom
common/gi.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*-
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: gi.h 1788 2010-08-24 04:42:57Z russellrice $
00005 //
00006 // Copyright (C) 1998-2006 by Randy Heit (ZDoom).
00007 // Copyright (C) 2006-2010 by The Odamex Team.
00008 //
00009 // This program is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License
00011 // as published by the Free Software Foundation; either version 2
00012 // of the License, or (at your option) any later version.
00013 //
00014 // This program is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // DESCRIPTION:
00020 //      GI
00021 //
00022 //-----------------------------------------------------------------------------
00023 
00024 
00025 #ifndef __GI_H__
00026 #define __GI_H__
00027 
00028 #include "doomtype.h"
00029 
00030 #define GI_MAPxx                                0x00000001
00031 #define GI_PAGESARERAW                  0x00000002
00032 #define GI_SHAREWARE                    0x00000004
00033 #define GI_NOLOOPFINALEMUSIC    0x00000008
00034 #define GI_INFOINDEXED                  0x00000010
00035 #define GI_MENUHACK                             0x00000060
00036 #define GI_MENUHACK_RETAIL              0x00000020
00037 #define GI_MENUHACK_COMMERCIAL  0x00000060
00038 #define GI_NOCRAZYDEATH                 0x00000080
00039 
00040 typedef struct
00041 {
00042         byte offset;
00043         byte size;
00044         char tl[8];
00045         char t[8];
00046         char tr[8];
00047         char l[8];
00048         char r[8];
00049         char bl[8];
00050         char b[8];
00051         char br[8];
00052 } gameborder_t;
00053 
00054 typedef struct
00055 {
00056         int flags;
00057         char titlePage[8];
00058         char creditPage1[8];
00059         char creditPage2[8];
00060         char titleMusic[8];
00061         float titleTime;
00062         float advisoryTime;
00063         float pageTime;
00064         char chatSound[16];
00065         char finaleMusic[8];
00066         char finaleFlat[8];
00067         char finalePage1[8];
00068         char finalePage2[8];
00069         char finalePage3[8];
00070         union
00071         {
00072                 char infoPage[3][8];
00073                 struct
00074                 {
00075                         char basePage[8];
00076                         int numPages;
00077                 } indexed;
00078         } info;
00079         const char **quitSounds;
00080         int maxSwitch;
00081         char borderFlat[8];
00082         gameborder_t *border;
00083 } gameinfo_t;
00084 
00085 extern gameinfo_t gameinfo;
00086 
00087 #endif //__GI_H__
00088 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends