4343// FORWARD DECLARATIONS ///////////////////////////////////////////////////////////////////////////
4444struct FieldParse ;
4545enum _TerrainLOD CPP_11 (: Int);
46+ class CommandLine ;
4647class GlobalData ;
4748class INI ;
4849class WeaponBonusSet ;
@@ -53,6 +54,21 @@ enum AIDebugOptions CPP_11(: Int);
5354
5455const Int MAX_GLOBAL_LIGHTS = 3 ;
5556
57+ // -------------------------------------------------------------------------------------------------
58+ class CommandLineData
59+ {
60+ friend class CommandLine ;
61+ friend class GlobalData ;
62+
63+ CommandLineData ()
64+ : m_hasParsedCommandLineForStartup(false )
65+ , m_hasParsedCommandLineForEngineInit(false )
66+ {}
67+
68+ Bool m_hasParsedCommandLineForStartup;
69+ Bool m_hasParsedCommandLineForEngineInit;
70+ };
71+
5672// -------------------------------------------------------------------------------------------------
5773/* * Global data container class
5874 * Defines all global game data used by the system
@@ -67,9 +83,9 @@ class GlobalData : public SubsystemInterface
6783 GlobalData ();
6884 virtual ~GlobalData ();
6985
70- void init ();
71- void reset ();
72- void update () { }
86+ virtual void init ();
87+ virtual void reset ();
88+ virtual void update () { }
7389
7490 Bool setTimeOfDay ( TimeOfDay tod ); // /< Use this function to set the Time of day;
7591
@@ -87,6 +103,8 @@ class GlobalData : public SubsystemInterface
87103 // -----------------------------------------------------------------------------------------------
88104 // -----------------------------------------------------------------------------------------------
89105
106+ CommandLineData m_commandLineData;
107+
90108 AsciiString m_mapName; // /< hack for now, this whole this is going away
91109 AsciiString m_moveHintName;
92110 Bool m_useTrees;
0 commit comments