Permalink
Browse files

Added engine class

  • Loading branch information...
1 parent 6ff7e01 commit 8fa2556ef7226f52cb4bfdd6d1605041bb06e46f @mmavipc committed Apr 22, 2012
Showing with 43 additions and 1 deletion.
  1. +8 −1 Core/Core.cpp
  2. +2 −0 Core/Core.vcxproj
  3. +12 −0 Core/Core.vcxproj.filters
  4. +6 −0 Core/Engine/Engine.cpp
  5. +15 −0 Core/Engine/Engine.h
View
@@ -2,9 +2,16 @@
//
#include "Core.h"
+#include "Engine\Engine.h"
+Mavgine2::Engine* g_engine = NULL;
void* GetEngine()
{
- return 0;
+ if(g_engine == NULL)
+ {
+ g_engine = new Mavgine2::Engine;
+ return g_engine;
+ }
+ return g_engine;
}
View
@@ -86,10 +86,12 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
</PrecompiledHeader>
</ClCompile>
+ <ClCompile Include="Engine\Engine.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="Core.h" />
<ClInclude Include="CoreExport.h" />
+ <ClInclude Include="Engine\Engine.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
View
@@ -13,6 +13,12 @@
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
+ <Filter Include="Header Files\Engine">
+ <UniqueIdentifier>{f32a263c-b7e7-45de-b162-17056567200e}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Source Files\Engine">
+ <UniqueIdentifier>{028b3499-3b1f-4a9d-9c5e-f249ec9c3e77}</UniqueIdentifier>
+ </Filter>
</ItemGroup>
<ItemGroup>
<None Include="ReadMe.txt" />
@@ -24,6 +30,9 @@
<ClCompile Include="dllmain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="Engine\Engine.cpp">
+ <Filter>Source Files\Engine</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="CoreExport.h">
@@ -32,5 +41,8 @@
<ClInclude Include="Core.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="Engine\Engine.h">
+ <Filter>Header Files\Engine</Filter>
+ </ClInclude>
</ItemGroup>
</Project>
View
@@ -0,0 +1,6 @@
+#include "Engine.h"
+
+void Mavgine2::Engine::Initialize(std::string strGameName)
+{
+ //TODO: implement this
+}
View
@@ -0,0 +1,15 @@
+#ifndef ENGINE_H
+#define ENGINE_H
+
+#include <string>
+
+namespace Mavgine2
+{
+ class Engine
+ {
+ public:
+ virtual void Initialize(std::string strGameName);
+ };
+};
+
+#endif

0 comments on commit 8fa2556

Please sign in to comment.