Header reorganisation

Lots of #includes are moved from C4Game.h to the files that actually need
them
stable-5.2
Günther Brammer 2009-06-05 20:00:23 +02:00
parent ad3c2509ca
commit 6e4df10454
66 changed files with 118 additions and 49 deletions

View File

@ -28,7 +28,6 @@
#include "C4ToolsDlg.h"
#include "C4ObjectListDlg.h"
#include "C4EditCursor.h"
#include "C4Game.h"
#include <StdWindow.h>

View File

@ -26,10 +26,6 @@
#include "C4MainMenu.h"
#include <StdWindow.h>
#ifndef BIG_C4INCLUDE
#include "C4Game.h"
#endif
bool IsKeyDown(int iKey);
class C4FullScreen: public CStdWindow

View File

@ -26,42 +26,24 @@
#ifdef C4ENGINE
#include <C4Def.h>
#include <C4Texture.h>
#include <C4RankSystem.h>
#include <C4GraphicsSystem.h>
#include <C4GraphicsResource.h>
#include <C4GameMessage.h>
#include <C4MouseControl.h>
#include <C4MessageInput.h>
#include <C4Weather.h>
#include <C4Material.h>
#include <C4GameObjects.h>
#include <C4Landscape.h>
#include <C4Scenario.h>
#include <C4MassMover.h>
#include <C4PXS.h>
#include <C4PlayerList.h>
#include <C4Teams.h>
#include <C4Client.h>
#include <C4GameParameters.h>
#include <C4PlayerInfo.h>
#include <C4RoundResults.h>
#include <C4GameMessage.h>
#include <C4Weather.h>
#include <C4GameObjects.h>
#include <C4Scenario.h>
#include <C4PlayerList.h>
#include <C4Material.h>
#include <C4GameControl.h>
#include <C4Control.h>
#include <C4PathFinder.h>
#include <C4ComponentHost.h>
#include <C4ScriptHost.h>
#include <C4Particles.h>
#include <C4GroupSet.h>
#include <C4Extra.h>
#include <C4GameControl.h>
#include <C4Effects.h>
#include <C4Fonts.h>
#include "C4LangStringTable.h"
#include "C4Scoreboard.h"
#include <C4Network2.h>
#include <C4Scenario.h>
#include <C4Client.h>
#include <C4Network2Reference.h>
#include <C4VideoPlayback.h>
#include <C4RoundResults.h>
class C4Game
{

View File

@ -31,6 +31,9 @@
#include <C4Game.h>
#include <C4Landscape.h>
#include <C4Log.h>
#include "C4Texture.h"
#include "C4GraphicsSystem.h"
#include "C4GraphicsResource.h"
#endif
//=================================== ID2Def ==============================================

View File

@ -31,6 +31,10 @@
#endif
#ifndef BIG_C4INCLUDE
#include "C4Game.h"
#include "C4GraphicsSystem.h"
#include "C4GraphicsResource.h"
#include "C4MessageInput.h"
#include <C4FileClasses.h>
#include <C4FullScreen.h>
#include <C4Language.h>

View File

@ -22,9 +22,10 @@
#include "C4Include.h"
#include "C4ChatDlg.h"
#include "C4Game.h"
#include "C4InputValidation.h"
#include "C4Network2IRC.h"
#include "C4MessageInput.h"
void convUTF8toWindows(StdStrBuf &sText)
{

View File

@ -28,10 +28,14 @@
#include <C4Application.h>
#include <C4GameSave.h>
#include <C4Game.h>
#include <C4MessageInput.h>
#include <C4UserMessages.h>
#include <C4Version.h>
#include <C4Language.h>
#include <C4Player.h>
#include <C4Landscape.h>
#include <C4GraphicsSystem.h>
#include <StdFile.h>
#include <StdRegistry.h>

View File

@ -36,6 +36,9 @@
#include <C4Log.h>
#include <C4Wrappers.h>
#include <C4Player.h>
#include <C4RankSystem.h>
#include <C4PXS.h>
#include <C4MassMover.h>
#endif
// *** C4ControlPacket

View File

@ -35,7 +35,7 @@
#include <C4Components.h>
#include <C4Config.h>
#include <C4ValueList.h>
#include <C4RankSystem.h>
#ifdef C4ENGINE
#include <C4Wrappers.h>
#include <C4Object.h>

View File

@ -32,6 +32,7 @@
#include <C4Application.h>
#include <C4Random.h>
#include <C4Wrappers.h>
#include <C4MouseControl.h>
#endif
#ifdef WITH_DEVELOPER_MODE

View File

@ -30,6 +30,7 @@
#include <C4Log.h>
#include <C4Game.h>
#include <C4Wrappers.h>
#include <C4PXS.h>
#endif
void C4Effect::AssignCallbackFunctions()

View File

@ -24,6 +24,7 @@
#include <C4Include.h>
#include <C4Facet.h>
#include <C4Game.h>
#include <C4GraphicsResource.h>
#include <StdD3D.h>

View File

@ -23,7 +23,8 @@
#include <C4FileSelDlg.h>
#ifndef BIG_C4INCLUDE
#include <C4Game.h> // only for single use of ::GraphicsResource.fctOKCancel below...
#include <C4GraphicsResource.h> // only for single use of ::GraphicsResource.fctOKCancel below...
#include <C4Version.h>
#endif
#ifdef _WIN32

View File

@ -25,6 +25,7 @@
#include <C4FullScreen.h>
#ifndef BIG_C4INCLUDE
#include <C4Game.h>
#include <C4Application.h>
#include <C4UserMessages.h>
#include <C4Viewport.h>
@ -36,6 +37,8 @@
#include <C4GamePadCon.h>
#include <C4Player.h>
#include <C4GameOverDlg.h>
#include <C4GraphicsSystem.h>
#include <C4MouseControl.h>
#endif
#ifdef _WIN32

View File

@ -58,6 +58,11 @@
#include <C4ObjectMenu.h>
#include <C4GameLobby.h>
#include <C4ChatDlg.h>
#include <C4MouseControl.h>
#include <C4PXS.h>
#include <C4MessageInput.h>
#include <C4MassMover.h>
#include <C4RankSystem.h>
#endif
#include <StdFile.h>

View File

@ -27,6 +27,7 @@
#include <C4GameControl.h>
#include <C4Game.h>
#include <C4Log.h>
#include <C4GraphicsSystem.h>
#endif
// *** C4GameControlNetwork

View File

@ -33,6 +33,7 @@
#include "C4RTF.H"
#include "C4ChatDlg.h"
#include "C4PlayerInfoListBox.h"
#include <C4MessageInput.h>
#endif
namespace C4GameLobby {

View File

@ -26,6 +26,7 @@
#ifndef BIG_C4INCLUDE
#include <C4Object.h>
#include <C4Application.h>
#include <C4GraphicsResource.h>
#include <C4Game.h>
#include <C4Player.h>
#endif

View File

@ -21,7 +21,7 @@
#include "C4Include.h"
#include "C4GameOptions.h"
#include "C4Game.h"
#include <C4Game.h>
// ----------- C4GameOptionsList::Option ----------------------------------------------------------------

View File

@ -24,7 +24,7 @@
#ifndef BIG_C4INCLUDE
#include "C4Log.h"
#include "C4Components.h"
#include "C4Game.h"
#include "C4Wrappers.h"
#endif

View File

@ -32,6 +32,9 @@
#include <C4Console.h>
#include <C4Log.h>
#include <C4Player.h>
#include <C4Landscape.h>
#include <C4PXS.h>
#include <C4MassMover.h>
#endif
// *** C4GameSave main class

View File

@ -29,6 +29,7 @@
#include <C4Gui.h>
#include <C4Log.h>
#include <C4Game.h>
#include <C4GraphicsSystem.h>
#endif
#include <StdGL.h>

View File

@ -36,6 +36,7 @@
#include <C4Wrappers.h>
#include <C4Player.h>
#include <C4SoundSystem.h>
#include <C4MouseControl.h>
#endif
#include <StdPNG.h>

View File

@ -31,6 +31,7 @@
#include <C4Wrappers.h>
#include <C4Log.h>
#include <C4GamePadCon.h>
#include <C4MouseControl.h>
#endif
namespace C4GUI {

View File

@ -24,6 +24,7 @@
#include <C4FullScreen.h>
#include <C4LoaderScreen.h>
#include <C4Application.h>
#include <C4MouseControl.h>
namespace C4GUI {

View File

@ -25,6 +25,7 @@
#include <C4FullScreen.h>
#include <C4LoaderScreen.h>
#include <C4Application.h>
#include <C4MouseControl.h>
namespace C4GUI {

View File

@ -33,6 +33,7 @@
#include <C4Console.h>
#include <C4Def.h>
#include <C4Wrappers.h>
#include <C4MouseControl.h>
#endif
#include <StdGL.h>

View File

@ -25,6 +25,7 @@
#include <C4FullScreen.h>
#include <C4LoaderScreen.h>
#include <C4Application.h>
#include <C4MouseControl.h>
namespace C4GUI {

View File

@ -24,6 +24,7 @@
#include <C4FullScreen.h>
#include <C4LoaderScreen.h>
#include <C4Application.h>
#include <C4MouseControl.h>
namespace C4GUI {

View File

@ -23,6 +23,7 @@
#include <C4FullScreen.h>
#include <C4LoaderScreen.h>
#include <C4Application.h>
#include <C4MouseControl.h>
namespace C4GUI {

View File

@ -27,6 +27,7 @@
#include <C4FullScreen.h>
#include <C4LoaderScreen.h>
#include <C4Application.h>
#include <C4MouseControl.h>
namespace C4GUI {

View File

@ -27,7 +27,7 @@
#ifndef BIG_C4INCLUDE
#include <C4Def.h>
#include <C4Application.h>
#include <C4Game.h>
#include <C4GraphicsResource.h>
#endif
C4IDListChunk::C4IDListChunk()

View File

@ -42,6 +42,8 @@
#include <C4Application.h>
#include <C4Wrappers.h>
#include <C4Stat.h>
#include <C4MassMover.h>
#include <C4PXS.h>
#endif
#include <StdPNG.h>

View File

@ -25,9 +25,10 @@
#ifndef BIG_C4INCLUDE
#include <C4LogBuf.h>
#include <C4Log.h>
#include <C4Game.h>
#include <C4GraphicsResource.h>
#include <C4Random.h>
#include <C4GroupSet.h>
#include <C4Game.h>
#endif
C4LoaderScreen::C4LoaderScreen() : TitleFont(::GraphicsResource.FontTitle), LogFont(::GraphicsResource.FontTiny)

View File

@ -28,8 +28,11 @@
#ifndef BIG_C4INCLUDE
#include <C4Console.h>
#include <C4GameLobby.h>
#include <C4Game.h>
#include <C4LogBuf.h>
#include <C4Language.h>
#include <C4Network2.h>
#include <C4GraphicsSystem.h>
#endif
#if defined(HAVE_SHARE_H) || defined(_WIN32)

View File

@ -28,7 +28,7 @@
#ifndef BIG_C4INCLUDE
#include <C4Group.h>
#include <C4Game.h>
#include <C4PXS.h>
#include <C4Random.h>
#include <C4ToolsDlg.h> // For C4TLS_MatSky...
#ifdef C4ENGINE

View File

@ -30,6 +30,7 @@
#include <C4Viewport.h>
#include <C4Wrappers.h>
#include <C4Player.h>
#include <C4MouseControl.h>
#endif
const int32_t C4MN_DefInfoWdt = 270, // default width of info windows

View File

@ -32,6 +32,10 @@
#include <C4Console.h>
#include <C4Network2Dialogs.h>
#include <C4Player.h>
#include <C4GraphicsSystem.h>
#include <C4GraphicsResource.h>
#include <C4MessageInput.h>
#include <C4Game.h>
#endif
const int C4LogSize=30000, C4LogMaxLines=1000;

View File

@ -35,6 +35,7 @@
#include <C4Log.h>
#include <C4Player.h>
#include <C4GameLobby.h>
#include <C4GraphicsSystem.h>
#endif
#include <cctype>

View File

@ -30,6 +30,9 @@
#include <C4Console.h>
#include <C4GameSave.h>
#include <C4RoundResults.h>
#include <C4Game.h>
#include <C4GraphicsSystem.h>
#include <C4GraphicsResource.h>
// lobby
#include <C4Gui.h>

View File

@ -27,6 +27,7 @@
#include <C4Network2IO.h>
#include <C4Network2Stats.h>
#include <C4GameLobby.h> // fullscreen network lobby
#include <C4Game.h>
#endif
#ifndef _WIN32

View File

@ -27,9 +27,10 @@
#ifndef BIG_C4INCLUDE
#include "C4Network2.h"
#include "C4Network2Stats.h"
#include "C4Game.h"
#include "C4Viewport.h"
#include "C4GameOptions.h"
#include <C4Game.h>
#endif
#ifndef HAVE_WINSOCK

View File

@ -25,7 +25,8 @@
#include "C4Network2Players.h"
#include "C4PlayerInfo.h"
#include "C4GameLobby.h"
#include "C4Game.h"
#include <C4Game.h>
#include "C4Control.h"
// *** C4Network2Players

View File

@ -18,9 +18,7 @@
* See clonk_trademark_license.txt for full license.
*/
#include "C4Include.h"
#ifdef C4ENGINE
#include "C4Game.h"
#endif
#include <C4Game.h>
#include "C4Version.h"
#include "C4Network2Reference.h"

View File

@ -22,7 +22,7 @@
#include "C4Include.h"
#include "C4GameLobby.h"
#include "C4FullScreen.h"
#include "C4Game.h"
#include "C4Network2.h"
#include "C4PlayerInfo.h"
#include "C4Network2Players.h"

View File

@ -45,6 +45,8 @@
#include <C4Wrappers.h>
#include <C4Player.h>
#include <C4ObjectMenu.h>
#include <C4RankSystem.h>
#include <C4GameVersion.h>
#endif
void DrawVertex(C4Facet &cgo, int32_t tx, int32_t ty, int32_t col, int32_t contact)

View File

@ -29,6 +29,7 @@
#include <C4Object.h>
#include <C4Wrappers.h>
#include <C4Application.h>
#include <C4Region.h>
#endif
C4ObjectList::C4ObjectList(): FirstIter(0)

View File

@ -24,6 +24,7 @@
#include <C4Console.h>
#include <C4Object.h>
#include <C4Language.h>
#include <C4Game.h>
#ifdef WITH_DEVELOPER_MODE

View File

@ -27,6 +27,7 @@
#include <C4Wrappers.h>
#include <C4Player.h>
#include <C4Viewport.h>
#include <C4MouseControl.h>
#endif

View File

@ -19,10 +19,13 @@
*/
#include "C4Include.h"
#include "C4Game.h"
#include "C4Network2Res.h"
#include "C4Version.h"
#include "C4GameLobby.h"
#include <C4Network2.h>
#include <C4RoundResults.h>
#include <C4GameControlNetwork.h>
// *** constants

View File

@ -52,6 +52,7 @@
#ifndef BIG_C4INCLUDE
#include <C4FacetEx.h>
#include <C4Game.h>
#include <C4GraphicsSystem.h>
#endif
const int32_t C4PF_MaxDepth = 35,

View File

@ -41,6 +41,7 @@
#include <C4FullScreen.h>
#include <C4GameOverDlg.h>
#include <C4ObjectMenu.h>
#include <C4MouseControl.h>
#endif
#define C4FOW_Def_View_RangeX 500

View File

@ -29,6 +29,8 @@
#include <C4Teams.h>
#include <C4Game.h>
#include <C4FileSelDlg.h>
#include <C4GraphicsResource.h>
#include <C4MouseControl.h>
#endif
DWORD GenerateRandomPlayerColor(int32_t iTry); // in C4PlayerInfoConflicts.cpp

View File

@ -32,6 +32,8 @@
#include <C4Log.h>
#include <C4Player.h>
#include <C4Object.h>
#include <C4Game.h>
#include <C4GraphicsSystem.h>
#endif
C4PlayerList::C4PlayerList()

View File

@ -29,6 +29,7 @@
#include <C4ComponentHost.h>
#include <C4FacetEx.h>
#include <C4Game.h>
#include <C4GraphicsResource.h>
#endif
#include <StdRegistry.h>

View File

@ -22,8 +22,9 @@
#include "C4Include.h"
#include "C4Scoreboard.h"
#include "C4Gui.h"
#include "C4Game.h"
#include "C4GameOverDlg.h"
#include <C4GraphicsResource.h>
// ************************************************
// *** C4Scoreboard

View File

@ -41,6 +41,9 @@
#include <C4ObjectInfoList.h>
#include <C4Player.h>
#include <C4ObjectMenu.h>
#include <C4RankSystem.h>
#include <C4PXS.h>
#include <C4MessageInput.h>
#endif
//========================== Some Support Functions =======================================

View File

@ -30,6 +30,7 @@
#include <C4Game.h>
#include <C4Config.h>
#include <C4Application.h>
#include <C4GraphicsSystem.h>
#endif
C4SoundEffect::C4SoundEffect():

View File

@ -32,6 +32,8 @@
#include <C4Game.h>
#include <C4Application.h>
#include <C4Log.h>
#include <C4GraphicsResource.h>
#include <C4GraphicsSystem.h>
#endif
bool C4StartupGraphics::LoadFile(C4FacetID &rToFct, const char *szFilename)

View File

@ -35,6 +35,7 @@
#include <C4Game.h>
#include <C4Log.h>
#include <C4Language.h>
#include <C4GraphicsResource.h>
#endif

View File

@ -32,6 +32,8 @@
#include <C4Language.h>
#include <C4FileSelDlg.h>
#include <C4Log.h>
#include <C4GraphicsResource.h>
#include <C4RankSystem.h>
#endif
#include <cctype>

View File

@ -38,6 +38,7 @@
#include <C4GameDialogs.h>
#include <C4Language.h>
#include <C4FileSelDlg.h>
#include <C4MouseControl.h>
#endif
#include <set>

View File

@ -24,6 +24,7 @@
#include <C4Game.h>
#include <C4Config.h>
#include <C4Application.h>
#include <C4GraphicsResource.h>
#endif
C4UpperBoard::C4UpperBoard()

View File

@ -30,6 +30,8 @@
#include <C4Application.h>
#include <C4Game.h>
#include <C4Player.h>
#include <C4GraphicsResource.h>
#include <C4GraphicsSystem.h>
#endif
#ifdef _WIN32

View File

@ -41,6 +41,8 @@
#include <C4Player.h>
#include <C4ChatDlg.h>
#include <C4ObjectMenu.h>
#include <C4MouseControl.h>
#include <C4PXS.h>
#endif
#include <StdGL.h>

View File

@ -29,6 +29,8 @@
#include <C4Console.h>
#include <C4FullScreen.h>
#include <C4Log.h>
#include <C4Game.h>
#include <C4Version.h>
C4Application Application;
C4Console Console;