From 72296e7ea5903e38da1a7f88d3086916fe2f34c6 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Mon, 18 Aug 2025 00:31:19 -0400 Subject: [PATCH] Renamed tools class files to use a Tool_ prefix to group them in the project and make it align more with Sample_ etc. --- .../{ConvexVolumeTool.h => Tool_ConvexVolume.h} | 0 RecastDemo/Include/{CrowdTool.h => Tool_Crowd.h} | 0 .../{NavMeshPruneTool.h => Tool_NavMeshPrune.h} | 0 .../{NavMeshTesterTool.h => Tool_NavMeshTester.h} | 0 ...fMeshConnectionTool.h => Tool_OffMeshConnection.h} | 0 RecastDemo/Source/Sample_SoloMesh.cpp | 10 +++++----- RecastDemo/Source/Sample_TempObstacles.cpp | 8 ++++---- RecastDemo/Source/Sample_TileMesh.cpp | 11 +++++------ .../{ConvexVolumeTool.cpp => Tool_ConvexVolume.cpp} | 2 +- RecastDemo/Source/{CrowdTool.cpp => Tool_Crowd.cpp} | 3 ++- .../{NavMeshPruneTool.cpp => Tool_NavMeshPrune.cpp} | 2 +- .../{NavMeshTesterTool.cpp => Tool_NavMeshTester.cpp} | 4 +++- ...hConnectionTool.cpp => Tool_OffMeshConnection.cpp} | 4 +++- 13 files changed, 24 insertions(+), 20 deletions(-) rename RecastDemo/Include/{ConvexVolumeTool.h => Tool_ConvexVolume.h} (100%) rename RecastDemo/Include/{CrowdTool.h => Tool_Crowd.h} (100%) rename RecastDemo/Include/{NavMeshPruneTool.h => Tool_NavMeshPrune.h} (100%) rename RecastDemo/Include/{NavMeshTesterTool.h => Tool_NavMeshTester.h} (100%) rename RecastDemo/Include/{OffMeshConnectionTool.h => Tool_OffMeshConnection.h} (100%) rename RecastDemo/Source/{ConvexVolumeTool.cpp => Tool_ConvexVolume.cpp} (99%) rename RecastDemo/Source/{CrowdTool.cpp => Tool_Crowd.cpp} (99%) rename RecastDemo/Source/{NavMeshPruneTool.cpp => Tool_NavMeshPrune.cpp} (99%) rename RecastDemo/Source/{NavMeshTesterTool.cpp => Tool_NavMeshTester.cpp} (99%) rename RecastDemo/Source/{OffMeshConnectionTool.cpp => Tool_OffMeshConnection.cpp} (99%) diff --git a/RecastDemo/Include/ConvexVolumeTool.h b/RecastDemo/Include/Tool_ConvexVolume.h similarity index 100% rename from RecastDemo/Include/ConvexVolumeTool.h rename to RecastDemo/Include/Tool_ConvexVolume.h diff --git a/RecastDemo/Include/CrowdTool.h b/RecastDemo/Include/Tool_Crowd.h similarity index 100% rename from RecastDemo/Include/CrowdTool.h rename to RecastDemo/Include/Tool_Crowd.h diff --git a/RecastDemo/Include/NavMeshPruneTool.h b/RecastDemo/Include/Tool_NavMeshPrune.h similarity index 100% rename from RecastDemo/Include/NavMeshPruneTool.h rename to RecastDemo/Include/Tool_NavMeshPrune.h diff --git a/RecastDemo/Include/NavMeshTesterTool.h b/RecastDemo/Include/Tool_NavMeshTester.h similarity index 100% rename from RecastDemo/Include/NavMeshTesterTool.h rename to RecastDemo/Include/Tool_NavMeshTester.h diff --git a/RecastDemo/Include/OffMeshConnectionTool.h b/RecastDemo/Include/Tool_OffMeshConnection.h similarity index 100% rename from RecastDemo/Include/OffMeshConnectionTool.h rename to RecastDemo/Include/Tool_OffMeshConnection.h diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 0cab1efb..2df40410 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -18,20 +18,20 @@ #include "Sample_SoloMesh.h" -#include "ConvexVolumeTool.h" -#include "CrowdTool.h" #include "DetourDebugDraw.h" #include "DetourNavMesh.h" #include "DetourNavMeshBuilder.h" #include "InputGeom.h" -#include "NavMeshPruneTool.h" -#include "NavMeshTesterTool.h" -#include "OffMeshConnectionTool.h" #include "Recast.h" #include "RecastDebugDraw.h" #include "RecastDump.h" #include "SDL_opengl.h" #include "Sample.h" +#include "Tool_ConvexVolume.h" +#include "Tool_Crowd.h" +#include "Tool_NavMeshPrune.h" +#include "Tool_NavMeshTester.h" +#include "Tool_OffMeshConnection.h" #include diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 4e37b1f4..43e63dd8 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -27,22 +27,22 @@ # include #endif #include "PartitionedMesh.h" -#include "ConvexVolumeTool.h" -#include "CrowdTool.h" #include "DetourCommon.h" #include "DetourDebugDraw.h" #include "DetourNavMesh.h" #include "DetourNavMeshBuilder.h" #include "DetourTileCache.h" #include "InputGeom.h" -#include "NavMeshTesterTool.h" -#include "OffMeshConnectionTool.h" #include "Recast.h" #include "RecastDebugDraw.h" #include "Sample.h" #include "Sample_TempObstacles.h" #include "fastlz.h" #include "imguiHelpers.h" +#include "Tool_ConvexVolume.h" +#include "Tool_Crowd.h" +#include "Tool_NavMeshTester.h" +#include "Tool_OffMeshConnection.h" #ifdef WIN32 # define snprintf _snprintf diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 3d23704e..248126d6 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -29,20 +29,19 @@ #else # include #endif - #include "PartitionedMesh.h" -#include "ConvexVolumeTool.h" -#include "CrowdTool.h" #include "DetourDebugDraw.h" #include "DetourNavMesh.h" #include "DetourNavMeshBuilder.h" #include "InputGeom.h" -#include "NavMeshPruneTool.h" -#include "NavMeshTesterTool.h" -#include "OffMeshConnectionTool.h" #include "Recast.h" #include "RecastDebugDraw.h" #include "Sample.h" +#include "Tool_ConvexVolume.h" +#include "Tool_Crowd.h" +#include "Tool_NavMeshPrune.h" +#include "Tool_NavMeshTester.h" +#include "Tool_OffMeshConnection.h" #include diff --git a/RecastDemo/Source/ConvexVolumeTool.cpp b/RecastDemo/Source/Tool_ConvexVolume.cpp similarity index 99% rename from RecastDemo/Source/ConvexVolumeTool.cpp rename to RecastDemo/Source/Tool_ConvexVolume.cpp index f6044121..00e2ca41 100644 --- a/RecastDemo/Source/ConvexVolumeTool.cpp +++ b/RecastDemo/Source/Tool_ConvexVolume.cpp @@ -16,7 +16,7 @@ // 3. This notice may not be removed or altered from any source distribution. // -#include "ConvexVolumeTool.h" +#include "Tool_ConvexVolume.h" #include "InputGeom.h" #include "Recast.h" diff --git a/RecastDemo/Source/CrowdTool.cpp b/RecastDemo/Source/Tool_Crowd.cpp similarity index 99% rename from RecastDemo/Source/CrowdTool.cpp rename to RecastDemo/Source/Tool_Crowd.cpp index dbfc412f..c95e1f58 100644 --- a/RecastDemo/Source/CrowdTool.cpp +++ b/RecastDemo/Source/Tool_Crowd.cpp @@ -16,6 +16,8 @@ // 3. This notice may not be removed or altered from any source distribution. // +#include "Tool_Crowd.h" + #include "SDL.h" #include "SDL_opengl.h" @@ -29,7 +31,6 @@ # include #endif -#include "CrowdTool.h" #include "DetourCommon.h" #include "DetourCrowd.h" #include "DetourDebugDraw.h" diff --git a/RecastDemo/Source/NavMeshPruneTool.cpp b/RecastDemo/Source/Tool_NavMeshPrune.cpp similarity index 99% rename from RecastDemo/Source/NavMeshPruneTool.cpp rename to RecastDemo/Source/Tool_NavMeshPrune.cpp index 12970cd9..edd5eefb 100644 --- a/RecastDemo/Source/NavMeshPruneTool.cpp +++ b/RecastDemo/Source/Tool_NavMeshPrune.cpp @@ -16,7 +16,7 @@ // 3. This notice may not be removed or altered from any source distribution. // -#include "NavMeshPruneTool.h" +#include "Tool_NavMeshPrune.h" #include "DetourAssert.h" #include "DetourCommon.h" diff --git a/RecastDemo/Source/NavMeshTesterTool.cpp b/RecastDemo/Source/Tool_NavMeshTester.cpp similarity index 99% rename from RecastDemo/Source/NavMeshTesterTool.cpp rename to RecastDemo/Source/Tool_NavMeshTester.cpp index 26e52135..476235fd 100644 --- a/RecastDemo/Source/NavMeshTesterTool.cpp +++ b/RecastDemo/Source/Tool_NavMeshTester.cpp @@ -16,6 +16,8 @@ // 3. This notice may not be removed or altered from any source distribution. // +#include "Tool_NavMeshTester.h" + #include "SDL_opengl.h" #include @@ -31,7 +33,7 @@ #include "DetourDebugDraw.h" #include "DetourNavMesh.h" #include "DetourPathCorridor.h" -#include "NavMeshTesterTool.h" + #include "Sample.h" #include "imguiHelpers.h" diff --git a/RecastDemo/Source/OffMeshConnectionTool.cpp b/RecastDemo/Source/Tool_OffMeshConnection.cpp similarity index 99% rename from RecastDemo/Source/OffMeshConnectionTool.cpp rename to RecastDemo/Source/Tool_OffMeshConnection.cpp index d9c14545..7baf0931 100644 --- a/RecastDemo/Source/OffMeshConnectionTool.cpp +++ b/RecastDemo/Source/Tool_OffMeshConnection.cpp @@ -16,6 +16,8 @@ // 3. This notice may not be removed or altered from any source distribution. // +#include "Tool_OffMeshConnection.h" + #include "SDL_opengl.h" #include "imguiHelpers.h" @@ -29,7 +31,7 @@ #endif #include "DetourDebugDraw.h" #include "InputGeom.h" -#include "OffMeshConnectionTool.h" + #include "Recast.h" #include "Sample.h"