summaryrefslogtreecommitdiffstats
path: root/tools/worldbuilder/code/gameengine/gameengine.h
diff options
context:
space:
mode:
authorSvxy <aidan61605@gmail.com>2023-05-31 23:31:32 +0200
committerSvxy <aidan61605@gmail.com>2023-05-31 23:31:32 +0200
commiteb4b3404aa00220d659e532151dab13d642c17a3 (patch)
tree7e1107c4995489a26c4007e41b53ea8d00ab2134 /tools/worldbuilder/code/gameengine/gameengine.h
downloadThe-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.gz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.bz2
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.lz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.xz
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.tar.zst
The-Simpsons-Hit-and-Run-eb4b3404aa00220d659e532151dab13d642c17a3.zip
Diffstat (limited to 'tools/worldbuilder/code/gameengine/gameengine.h')
-rw-r--r--tools/worldbuilder/code/gameengine/gameengine.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/tools/worldbuilder/code/gameengine/gameengine.h b/tools/worldbuilder/code/gameengine/gameengine.h
new file mode 100644
index 0000000..b3b3fa0
--- /dev/null
+++ b/tools/worldbuilder/code/gameengine/gameengine.h
@@ -0,0 +1,85 @@
+//=============================================================================
+// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
+//
+// File: gameengine.h
+//
+// Description: Blahblahblah
+//
+// History: 19/07/2002 + Created -- Cary Brisebois
+//
+//=============================================================================
+
+#ifndef GAMEENGINE_H
+#define GAMEENGINE_H
+
+//========================================
+// Nested Includes
+//========================================
+#include "main/toolhack.h"
+
+#include "precompiled/PCH.h"
+
+#include "mayacamera.h"
+
+//========================================
+// Forward References
+//========================================
+class RailCam;
+class SuperCam;
+class WBCamTarget;
+class StaticCam;
+
+//=============================================================================
+//
+// Synopsis: Blahblahblah
+//
+//=============================================================================
+
+class GameEngine
+{
+public:
+ static void CreateInstance();
+ static void DestroyInstance();
+
+ static GameEngine* GetInstance();
+
+ void UpdateRailCam( MObject& railCam );
+ void UpdateStaticCam( MObject& staticCam );
+
+ MayaCamera& GetMayaCam();
+
+private:
+ void UpdateRailSettings( RailCam* railCam, MObject obj );
+ void UpdateStaticCamSettings( StaticCam* staticCam, MObject obj );
+
+ static GameEngine* mInstance;
+ MayaCamera* mMayaCam;
+
+ unsigned int mTimeStart;
+
+ GameEngine();
+ virtual ~GameEngine();
+ void Init();
+ void UpdateFOV( SuperCam* cam, const rmt::Vector position );
+
+ //Prevent wasteful constructor creation.
+ GameEngine( const GameEngine& gameengine );
+ GameEngine& operator=( const GameEngine& gameengine );
+};
+
+//=============================================================================
+// GameEngine::GetMayaCam
+//=============================================================================
+// Description: Comment
+//
+// Parameters: ()
+//
+// Return: void
+//
+//=============================================================================
+inline MayaCamera& GameEngine::GetMayaCam()
+{
+ return *mMayaCam;
+}
+
+#endif //GAMEENGINE_H