Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Dec 29, 2024
1 parent c970d6c commit e664aed
Show file tree
Hide file tree
Showing 217 changed files with 715 additions and 529 deletions.
6 changes: 4 additions & 2 deletions Sources/Jazz2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_HAS_EXCEPTIONS=0;DEATH_DEBUG;DEATH_TRACE;DEATH_TRACE_ASYNC;WITH_GLEW;WITH_GLFW;__WITH_SDL;WITH_AUDIO;WITH_THREADS;WITH_VORBIS;WITH_VORBIS_DYNAMIC;WITH_OPENMPT;WITH_ZLIB;WITH_BACKWARD;WITH_ANGELSCRIPT;WITH_MULTIPLAYER;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_HAS_EXCEPTIONS=0;DEATH_DEBUG;DEATH_TRACE;DEATH_TRACE_ASYNC;WITH_GLEW;__WITH_GLFW;WITH_SDL;WITH_AUDIO;WITH_THREADS;WITH_VORBIS;WITH_VORBIS_DYNAMIC;WITH_OPENMPT;WITH_ZLIB;WITH_BACKWARD;WITH_ANGELSCRIPT;WITH_MULTIPLAYER;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
Expand Down Expand Up @@ -317,7 +317,7 @@
<ClInclude Include="$(ExtensionLibraryPath)\IO\Compression\DeflateStream.h" />
<ClInclude Include="$(ExtensionLibraryPath)\IO\Compression\Lz4Stream.h" />
<ClInclude Include="$(ExtensionLibraryPath)\IO\Compression\ZstdStream.h" />
<ClInclude Include="Common.h" />
<ClInclude Include="Main.h" />
<ClInclude Include="Jazz2\Actors\ActorBase.h" />
<ClInclude Include="Jazz2\Actors\Collectibles\CarrotCollectible.h" />
<ClInclude Include="Jazz2\Actors\Collectibles\CarrotFlyCollectible.h" />
Expand Down Expand Up @@ -643,6 +643,7 @@
<ClInclude Include="nCine\I18n.h" />
<ClInclude Include="nCine\IAppEventHandler.h" />
<ClInclude Include="nCine\Backends\GlfwInputManager.h" />
<ClInclude Include="nCine\imconfig.h" />
<ClInclude Include="nCine\Input\IInputEventHandler.h" />
<ClInclude Include="nCine\Input\IInputManager.h" />
<ClInclude Include="nCine\Input\ImGuiJoyMappedInput.h" />
Expand Down Expand Up @@ -714,6 +715,7 @@
<ClInclude Include="$(ExtensionLibraryPath)\Base\StackAlloc.h" />
<ClInclude Include="$(ExtensionLibraryPath)\IO\BoundedFileStream.h" />
<ClInclude Include="simdjson\simdjson.h" />
<ClInclude Include="TermLogo.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="$(ExtensionLibraryPath)\Cpu.cpp" />
Expand Down
8 changes: 7 additions & 1 deletion Sources/Jazz2.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
<ClInclude Include="Resources.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Common.h">
<ClInclude Include="Main.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="nCine\Graphics\IGfxCapabilities.h">
Expand Down Expand Up @@ -1548,6 +1548,12 @@
<ClInclude Include="Jazz2\UI\InGameConsole.h">
<Filter>Header Files\Jazz2\UI</Filter>
</ClInclude>
<ClInclude Include="nCine\imconfig.h">
<Filter>Header Files\nCine</Filter>
</ClInclude>
<ClInclude Include="TermLogo.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Main.cpp">
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Actors/Multiplayer/LocalPlayerOnServer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "PlayerOnServer.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Actors/Multiplayer/PlayerOnServer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../Player.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Actors/Multiplayer/RemotablePlayer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../Player.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Actors/Multiplayer/RemoteActor.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../ActorBase.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Actors/Multiplayer/RemotePlayerOnServer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "PlayerOnServer.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/AnimState.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

namespace Jazz2
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/AnimSetMapping.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Version.h"

#include "../../nCine/Base/HashMap.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/EventConverter.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Event.h"
#include "../EventType.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Anims.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Version.h"
#include "AnimSetMapping.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Block.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"

#include <Containers/StringView.h>
#include <IO/Stream.h>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Data.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "AnimSetMapping.h"
#include "JJ2Version.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Episode.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Level.h"

#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Event.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"

namespace Jazz2::Compatibility
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Level.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Block.h"
#include "JJ2Event.h"
#include "JJ2Version.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Strings.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Level.h"

#include <Containers/SmallVector.h>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Tileset.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"
#include "JJ2Block.h"
#include "JJ2Version.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Compatibility/JJ2Version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../../Common.h"
#include "../../Main.h"

namespace Jazz2::Compatibility
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/ContentResolver.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"
#include "AnimState.h"
#include "GameDifficulty.h"
#include "LevelDescriptor.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Direction.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

namespace Jazz2
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/EventType.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

namespace Jazz2
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/ExitType.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

namespace Jazz2
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/GameDifficulty.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

namespace Jazz2
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/IResumable.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

#include <IO/Stream.h>

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/IRootController.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"
#include "LevelInitialization.h"

#include <Containers/Function.h>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/IStateHandler.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"
#include "../nCine/Input/InputEvents.h"
#include "../nCine/Primitives/Vector2.h"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/LevelDescriptor.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"
#include "WeatherType.h"

#include "../nCine/Primitives/Vector4.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/LevelFlags.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../Common.h"
#include "../Main.h"

namespace Jazz2
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/LevelHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "UI/DiscordRpcClient.h"
#include "UI/HUD.h"
#include "UI/InGameConsole.h"
#include "../Common.h"
#include "../Main.h"

#if defined(WITH_ANGELSCRIPT)
# include "Scripting/LevelScriptLoader.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Multiplayer/ConnectionResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#if defined(WITH_MULTIPLAYER)

#include "../../Common.h"
#include "../../Main.h"

namespace Jazz2::Multiplayer
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Multiplayer/ConnectionResult.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "Reason.h"

Expand Down
4 changes: 2 additions & 2 deletions Sources/Jazz2/Multiplayer/INetworkHandler.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "ConnectionResult.h"
#include "Peer.h"
#include "Reason.h"
#include "../../Common.h"
#include "../../Main.h"

#include <Containers/StringView.h>

Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Multiplayer/MultiLevelHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "../UI/ControlScheme.h"
#include "../UI/HUD.h"
#include "../UI/InGameConsole.h"
#include "../../Common.h"
#include "../../Main.h"

#if defined(WITH_ANGELSCRIPT)
# include "../Scripting/LevelScriptLoader.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Multiplayer/MultiLevelHandler.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../LevelHandler.h"
#include "MultiplayerGameMode.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/Multiplayer/MultiplayerGameMode.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

namespace Jazz2::Multiplayer
{
Expand Down
4 changes: 2 additions & 2 deletions Sources/Jazz2/Multiplayer/NetworkManager.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "Peer.h"
#include "Reason.h"
#include "ServerDiscovery.h"
#include "../../Common.h"
#include "../../Main.h"
#include "../../nCine/Threading/Thread.h"
#include "../../nCine/Threading/ThreadSync.h"

Expand Down
4 changes: 2 additions & 2 deletions Sources/Jazz2/Multiplayer/PacketTypes.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../../Common.h"
#include "../../Main.h"

namespace Jazz2::Multiplayer
{
Expand Down
4 changes: 2 additions & 2 deletions Sources/Jazz2/Multiplayer/Peer.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../../Common.h"
#include "../../Main.h"

struct _ENetPeer;

Expand Down
4 changes: 2 additions & 2 deletions Sources/Jazz2/Multiplayer/Reason.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "../../Common.h"
#include "../../Main.h"

namespace Jazz2::Multiplayer
{
Expand Down
4 changes: 2 additions & 2 deletions Sources/Jazz2/Multiplayer/ServerDiscovery.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#if defined(WITH_MULTIPLAYER)
#if defined(WITH_MULTIPLAYER) || defined(DOXYGEN_GENERATING_OUTPUT)

#include "INetworkHandler.h"
#include "../../Common.h"
#include "../../Main.h"
#include "../../nCine/Base/TimeStamp.h"
#include "../../nCine/Threading/Thread.h"

Expand Down
Loading

0 comments on commit e664aed

Please sign in to comment.