43
43
// FORWARD DECLARATIONS ///////////////////////////////////////////////////////////////////////////
44
44
struct FieldParse ;
45
45
enum _TerrainLOD CPP_11 (: Int);
46
+ class CommandLine ;
46
47
class GlobalData ;
47
48
class INI ;
48
49
class WeaponBonusSet ;
@@ -53,6 +54,21 @@ enum AIDebugOptions CPP_11(: Int);
53
54
54
55
const Int MAX_GLOBAL_LIGHTS = 3 ;
55
56
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
+
56
72
// -------------------------------------------------------------------------------------------------
57
73
/* * Global data container class
58
74
* Defines all global game data used by the system
@@ -67,9 +83,9 @@ class GlobalData : public SubsystemInterface
67
83
GlobalData ();
68
84
virtual ~GlobalData ();
69
85
70
- void init ();
71
- void reset ();
72
- void update () { }
86
+ virtual void init ();
87
+ virtual void reset ();
88
+ virtual void update () { }
73
89
74
90
Bool setTimeOfDay ( TimeOfDay tod ); // /< Use this function to set the Time of day;
75
91
@@ -87,6 +103,8 @@ class GlobalData : public SubsystemInterface
87
103
// -----------------------------------------------------------------------------------------------
88
104
// -----------------------------------------------------------------------------------------------
89
105
106
+ CommandLineData m_commandLineData;
107
+
90
108
AsciiString m_mapName; // /< hack for now, this whole this is going away
91
109
AsciiString m_moveHintName;
92
110
Bool m_useTrees;
0 commit comments