Odamex
Setting the Standard in Multiplayer Doom
common/d_main.h
Go to the documentation of this file.
00001 // Emacs style mode select   -*- C++ -*-
00002 //-----------------------------------------------------------------------------
00003 //
00004 // $Id: d_main.h 1852 2010-09-04 23:53:26Z ladna $
00005 //
00006 // Copyright (C) 1993-1996 by id Software, Inc.
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 //      System specific interface stuff.
00021 //
00022 //-----------------------------------------------------------------------------
00023 
00024 
00025 #ifndef __D_MAIN__
00026 #define __D_MAIN__
00027 
00028 #include "d_event.h"
00029 
00030 #include <vector>
00031 #include <string>
00032 
00033 //
00034 // D_DoomMain()
00035 // Not a globally visible function, just included for source reference,
00036 // calls all startup code, parses command line options.
00037 // If not overrided by user input, calls N_AdvanceDemo.
00038 //
00039 void D_DoomMain(void);
00040 
00041 std::string BaseFileSearch(std::string file, std::string ext = "",
00042                            std::string hash = "");
00043 std::vector<size_t> D_DoomWadReboot(
00044         const std::vector<std::string> &wadnames,
00045     const std::vector<std::string> &patch_files = std::vector<std::string>(),
00046     std::vector<std::string> needhashes = std::vector<std::string>()
00047 );
00048 
00049 // Called by IO functions when input is detected.
00050 void D_PostEvent(const event_t* ev);
00051 
00052 //
00053 // BASE LEVEL
00054 //
00055 void D_PageTicker(void);
00056 void D_PageDrawer(void);
00057 void D_AdvanceDemo(void);
00058 void D_StartTitle(void);
00059 
00060 
00061 // [RH] Set this to something to draw an icon during the next screen refresh.
00062 extern char *D_DrawIcon;
00063 
00064 void D_AddSearchDir(std::vector<std::string> &dirs, const char *dir, const char separator);
00065 
00066 #endif
00067 
00068 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends