From c7dda0ff10c1d307bcf16caa66fe21dfce85a9a8 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:30:17 +0300 Subject: [PATCH] changed source files naming --- source/collision/CMakeLists.txt | 2 +- .../{LineTracer.cpp => line_tracer.cpp} | 0 source/engines/iw_engine/CMakeLists.txt | 2 +- .../iw_engine/{Camera.cpp => camera.cpp} | 0 .../iw_engine/{Formulas.cpp => formulas.cpp} | 0 source/engines/opengl_engine/CMakeLists.txt | 2 +- .../opengl_engine/{Camera.cpp => camera.cpp} | 0 .../{Formulas.cpp => formulas.cpp} | 0 source/engines/source_engine/CMakeLists.txt | 2 +- .../source_engine/{Camera.cpp => camera.cpp} | 0 .../{Formulas.cpp => formulas.cpp} | 0 source/pathfinding/CMakeLists.txt | 2 +- source/pathfinding/{Astar.cpp => a_star.cpp} | 0 ...NavigationMesh.cpp => navigation_mesh.cpp} | 0 source/projectile_prediction/CMakeLists.txt | 2 +- ...rojPredEngine.cpp => proj_pred_engine.cpp} | 0 ...gineAVX2.cpp => proj_pred_engine_avx2.cpp} | 0 ...Legacy.cpp => proj_pred_engine_legacy.cpp} | 0 .../{Projectile.cpp => projectile.cpp} | 0 .../{Target.cpp => target.cpp} | 0 source/projection/CMakeLists.txt | 2 +- tests/CMakeLists.txt | 36 +++++++++---------- ...stIwEngine.cpp => unit_test_iw_engine.cpp} | 0 ...itTestOpenGL.cpp => unit_test_open_gl.cpp} | 0 ...Engine.cpp => unit_test_source_engine.cpp} | 0 ...yEngine.cpp => unit_test_unity_engine.cpp} | 0 ...UnitTestAstar.cpp => unit_test_a_star.cpp} | 0 ...{UnitTestAngle.cpp => unit_test_angle.cpp} | 0 ...nitTestAngles.cpp => unit_test_angles.cpp} | 0 ...{UnitTestColor.cpp => unit_test_color.cpp} | 0 ...LineTrace.cpp => unit_test_line_trace.cpp} | 0 .../{UnitTestMat.cpp => unit_test_mat.cpp} | 0 ...nitTestMatrix.cpp => unit_test_matrix.cpp} | 0 ...rediction.cpp => unit_test_prediction.cpp} | 0 ...rojection.cpp => unit_test_projection.cpp} | 0 ...estTriangle.cpp => unit_test_triangle.cpp} | 0 ...tTestVector2.cpp => unit_test_vector2.cpp} | 0 ...tTestVector3.cpp => unit_test_vector3.cpp} | 0 ...tTestVector4.cpp => unit_test_vector4.cpp} | 0 ...ewAngles.cpp => unit_test_view_angles.cpp} | 0 40 files changed, 25 insertions(+), 25 deletions(-) rename source/collision/{LineTracer.cpp => line_tracer.cpp} (100%) rename source/engines/iw_engine/{Camera.cpp => camera.cpp} (100%) rename source/engines/iw_engine/{Formulas.cpp => formulas.cpp} (100%) rename source/engines/opengl_engine/{Camera.cpp => camera.cpp} (100%) rename source/engines/opengl_engine/{Formulas.cpp => formulas.cpp} (100%) rename source/engines/source_engine/{Camera.cpp => camera.cpp} (100%) rename source/engines/source_engine/{Formulas.cpp => formulas.cpp} (100%) rename source/pathfinding/{Astar.cpp => a_star.cpp} (100%) rename source/pathfinding/{NavigationMesh.cpp => navigation_mesh.cpp} (100%) rename source/projectile_prediction/{ProjPredEngine.cpp => proj_pred_engine.cpp} (100%) rename source/projectile_prediction/{ProjPredEngineAVX2.cpp => proj_pred_engine_avx2.cpp} (100%) rename source/projectile_prediction/{ProjPredEngineLegacy.cpp => proj_pred_engine_legacy.cpp} (100%) rename source/projectile_prediction/{Projectile.cpp => projectile.cpp} (100%) rename source/projectile_prediction/{Target.cpp => target.cpp} (100%) rename tests/engines/{UnitTestIwEngine.cpp => unit_test_iw_engine.cpp} (100%) rename tests/engines/{UnitTestOpenGL.cpp => unit_test_open_gl.cpp} (100%) rename tests/engines/{UnitTestSourceEngine.cpp => unit_test_source_engine.cpp} (100%) rename tests/engines/{UnitTestUnityEngine.cpp => unit_test_unity_engine.cpp} (100%) rename tests/general/{UnitTestAstar.cpp => unit_test_a_star.cpp} (100%) rename tests/general/{UnitTestAngle.cpp => unit_test_angle.cpp} (100%) rename tests/general/{UnitTestAngles.cpp => unit_test_angles.cpp} (100%) rename tests/general/{UnitTestColor.cpp => unit_test_color.cpp} (100%) rename tests/general/{UnitTestLineTrace.cpp => unit_test_line_trace.cpp} (100%) rename tests/general/{UnitTestMat.cpp => unit_test_mat.cpp} (100%) rename tests/general/{UnitTestMatrix.cpp => unit_test_matrix.cpp} (100%) rename tests/general/{UnitTestPrediction.cpp => unit_test_prediction.cpp} (100%) rename tests/general/{UnitTestProjection.cpp => unit_test_projection.cpp} (100%) rename tests/general/{UnitTestTriangle.cpp => unit_test_triangle.cpp} (100%) rename tests/general/{UnitTestVector2.cpp => unit_test_vector2.cpp} (100%) rename tests/general/{UnitTestVector3.cpp => unit_test_vector3.cpp} (100%) rename tests/general/{UnitTestVector4.cpp => unit_test_vector4.cpp} (100%) rename tests/general/{UnitTestViewAngles.cpp => unit_test_view_angles.cpp} (100%) diff --git a/source/collision/CMakeLists.txt b/source/collision/CMakeLists.txt index 22a2abc..09b4793 100644 --- a/source/collision/CMakeLists.txt +++ b/source/collision/CMakeLists.txt @@ -1,3 +1,3 @@ target_sources(omath PRIVATE - LineTracer.cpp + line_tracer.cpp ) diff --git a/source/collision/LineTracer.cpp b/source/collision/line_tracer.cpp similarity index 100% rename from source/collision/LineTracer.cpp rename to source/collision/line_tracer.cpp diff --git a/source/engines/iw_engine/CMakeLists.txt b/source/engines/iw_engine/CMakeLists.txt index 0153efa..e5e9741 100644 --- a/source/engines/iw_engine/CMakeLists.txt +++ b/source/engines/iw_engine/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp Formulas.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp formulas.cpp) \ No newline at end of file diff --git a/source/engines/iw_engine/Camera.cpp b/source/engines/iw_engine/camera.cpp similarity index 100% rename from source/engines/iw_engine/Camera.cpp rename to source/engines/iw_engine/camera.cpp diff --git a/source/engines/iw_engine/Formulas.cpp b/source/engines/iw_engine/formulas.cpp similarity index 100% rename from source/engines/iw_engine/Formulas.cpp rename to source/engines/iw_engine/formulas.cpp diff --git a/source/engines/opengl_engine/CMakeLists.txt b/source/engines/opengl_engine/CMakeLists.txt index 0153efa..e5e9741 100644 --- a/source/engines/opengl_engine/CMakeLists.txt +++ b/source/engines/opengl_engine/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp Formulas.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp formulas.cpp) \ No newline at end of file diff --git a/source/engines/opengl_engine/Camera.cpp b/source/engines/opengl_engine/camera.cpp similarity index 100% rename from source/engines/opengl_engine/Camera.cpp rename to source/engines/opengl_engine/camera.cpp diff --git a/source/engines/opengl_engine/Formulas.cpp b/source/engines/opengl_engine/formulas.cpp similarity index 100% rename from source/engines/opengl_engine/Formulas.cpp rename to source/engines/opengl_engine/formulas.cpp diff --git a/source/engines/source_engine/CMakeLists.txt b/source/engines/source_engine/CMakeLists.txt index 0153efa..e5e9741 100644 --- a/source/engines/source_engine/CMakeLists.txt +++ b/source/engines/source_engine/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp Formulas.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp formulas.cpp) \ No newline at end of file diff --git a/source/engines/source_engine/Camera.cpp b/source/engines/source_engine/camera.cpp similarity index 100% rename from source/engines/source_engine/Camera.cpp rename to source/engines/source_engine/camera.cpp diff --git a/source/engines/source_engine/Formulas.cpp b/source/engines/source_engine/formulas.cpp similarity index 100% rename from source/engines/source_engine/Formulas.cpp rename to source/engines/source_engine/formulas.cpp diff --git a/source/pathfinding/CMakeLists.txt b/source/pathfinding/CMakeLists.txt index d1da67f..e7cc7b9 100644 --- a/source/pathfinding/CMakeLists.txt +++ b/source/pathfinding/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE NavigationMesh.cpp Astar.cpp) \ No newline at end of file +target_sources(omath PRIVATE navigation_mesh.cpp a_star.cpp) \ No newline at end of file diff --git a/source/pathfinding/Astar.cpp b/source/pathfinding/a_star.cpp similarity index 100% rename from source/pathfinding/Astar.cpp rename to source/pathfinding/a_star.cpp diff --git a/source/pathfinding/NavigationMesh.cpp b/source/pathfinding/navigation_mesh.cpp similarity index 100% rename from source/pathfinding/NavigationMesh.cpp rename to source/pathfinding/navigation_mesh.cpp diff --git a/source/projectile_prediction/CMakeLists.txt b/source/projectile_prediction/CMakeLists.txt index 623aa65..1f189f7 100644 --- a/source/projectile_prediction/CMakeLists.txt +++ b/source/projectile_prediction/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE ProjPredEngineLegacy.cpp Projectile.cpp Target.cpp ProjPredEngineAVX2.cpp ProjPredEngine.cpp) \ No newline at end of file +target_sources(omath PRIVATE proj_pred_engine_legacy.cpp projectile.cpp target.cpp proj_pred_engine_avx2.cpp proj_pred_engine.cpp) \ No newline at end of file diff --git a/source/projectile_prediction/ProjPredEngine.cpp b/source/projectile_prediction/proj_pred_engine.cpp similarity index 100% rename from source/projectile_prediction/ProjPredEngine.cpp rename to source/projectile_prediction/proj_pred_engine.cpp diff --git a/source/projectile_prediction/ProjPredEngineAVX2.cpp b/source/projectile_prediction/proj_pred_engine_avx2.cpp similarity index 100% rename from source/projectile_prediction/ProjPredEngineAVX2.cpp rename to source/projectile_prediction/proj_pred_engine_avx2.cpp diff --git a/source/projectile_prediction/ProjPredEngineLegacy.cpp b/source/projectile_prediction/proj_pred_engine_legacy.cpp similarity index 100% rename from source/projectile_prediction/ProjPredEngineLegacy.cpp rename to source/projectile_prediction/proj_pred_engine_legacy.cpp diff --git a/source/projectile_prediction/Projectile.cpp b/source/projectile_prediction/projectile.cpp similarity index 100% rename from source/projectile_prediction/Projectile.cpp rename to source/projectile_prediction/projectile.cpp diff --git a/source/projectile_prediction/Target.cpp b/source/projectile_prediction/target.cpp similarity index 100% rename from source/projectile_prediction/Target.cpp rename to source/projectile_prediction/target.cpp diff --git a/source/projection/CMakeLists.txt b/source/projection/CMakeLists.txt index 0abf868..1ca3a27 100644 --- a/source/projection/CMakeLists.txt +++ b/source/projection/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp) \ No newline at end of file diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2320af9..244f7bb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -4,25 +4,25 @@ project(unit-tests) include(GoogleTest) add_executable(unit-tests - general/UnitTestPrediction.cpp - general/UnitTestMatrix.cpp - general/UnitTestMat.cpp - general/UnitTestAstar.cpp - general/UnitTestProjection.cpp - general/UnitTestVector3.cpp - general/UnitTestVector2.cpp - general/UnitTestColor.cpp - general/UnitTestVector4.cpp - general/UnitTestLineTrace.cpp - general/UnitTestAngles.cpp - general/UnitTestViewAngles.cpp - general/UnitTestAngle.cpp - general/UnitTestTriangle.cpp + general/unit_test_prediction.cpp + general/unit_test_matrix.cpp + general/unit_test_mat.cpp + general/unit_test_a_star.cpp + general/unit_test_projection.cpp + general/unit_test_vector3.cpp + general/unit_test_vector2.cpp + general/unit_test_color.cpp + general/unit_test_vector4.cpp + general/unit_test_line_trace.cpp + general/unit_test_angles.cpp + general/unit_test_view_angles.cpp + general/unit_test_angle.cpp + general/unit_test_triangle.cpp - engines/UnitTestOpenGL.cpp - engines/UnitTestUnityEngine.cpp - engines/UnitTestSourceEngine.cpp - engines/UnitTestIwEngine.cpp + engines/unit_test_open_gl.cpp + engines/unit_test_unity_engine.cpp + engines/unit_test_source_engine.cpp + engines/unit_test_iw_engine.cpp ) diff --git a/tests/engines/UnitTestIwEngine.cpp b/tests/engines/unit_test_iw_engine.cpp similarity index 100% rename from tests/engines/UnitTestIwEngine.cpp rename to tests/engines/unit_test_iw_engine.cpp diff --git a/tests/engines/UnitTestOpenGL.cpp b/tests/engines/unit_test_open_gl.cpp similarity index 100% rename from tests/engines/UnitTestOpenGL.cpp rename to tests/engines/unit_test_open_gl.cpp diff --git a/tests/engines/UnitTestSourceEngine.cpp b/tests/engines/unit_test_source_engine.cpp similarity index 100% rename from tests/engines/UnitTestSourceEngine.cpp rename to tests/engines/unit_test_source_engine.cpp diff --git a/tests/engines/UnitTestUnityEngine.cpp b/tests/engines/unit_test_unity_engine.cpp similarity index 100% rename from tests/engines/UnitTestUnityEngine.cpp rename to tests/engines/unit_test_unity_engine.cpp diff --git a/tests/general/UnitTestAstar.cpp b/tests/general/unit_test_a_star.cpp similarity index 100% rename from tests/general/UnitTestAstar.cpp rename to tests/general/unit_test_a_star.cpp diff --git a/tests/general/UnitTestAngle.cpp b/tests/general/unit_test_angle.cpp similarity index 100% rename from tests/general/UnitTestAngle.cpp rename to tests/general/unit_test_angle.cpp diff --git a/tests/general/UnitTestAngles.cpp b/tests/general/unit_test_angles.cpp similarity index 100% rename from tests/general/UnitTestAngles.cpp rename to tests/general/unit_test_angles.cpp diff --git a/tests/general/UnitTestColor.cpp b/tests/general/unit_test_color.cpp similarity index 100% rename from tests/general/UnitTestColor.cpp rename to tests/general/unit_test_color.cpp diff --git a/tests/general/UnitTestLineTrace.cpp b/tests/general/unit_test_line_trace.cpp similarity index 100% rename from tests/general/UnitTestLineTrace.cpp rename to tests/general/unit_test_line_trace.cpp diff --git a/tests/general/UnitTestMat.cpp b/tests/general/unit_test_mat.cpp similarity index 100% rename from tests/general/UnitTestMat.cpp rename to tests/general/unit_test_mat.cpp diff --git a/tests/general/UnitTestMatrix.cpp b/tests/general/unit_test_matrix.cpp similarity index 100% rename from tests/general/UnitTestMatrix.cpp rename to tests/general/unit_test_matrix.cpp diff --git a/tests/general/UnitTestPrediction.cpp b/tests/general/unit_test_prediction.cpp similarity index 100% rename from tests/general/UnitTestPrediction.cpp rename to tests/general/unit_test_prediction.cpp diff --git a/tests/general/UnitTestProjection.cpp b/tests/general/unit_test_projection.cpp similarity index 100% rename from tests/general/UnitTestProjection.cpp rename to tests/general/unit_test_projection.cpp diff --git a/tests/general/UnitTestTriangle.cpp b/tests/general/unit_test_triangle.cpp similarity index 100% rename from tests/general/UnitTestTriangle.cpp rename to tests/general/unit_test_triangle.cpp diff --git a/tests/general/UnitTestVector2.cpp b/tests/general/unit_test_vector2.cpp similarity index 100% rename from tests/general/UnitTestVector2.cpp rename to tests/general/unit_test_vector2.cpp diff --git a/tests/general/UnitTestVector3.cpp b/tests/general/unit_test_vector3.cpp similarity index 100% rename from tests/general/UnitTestVector3.cpp rename to tests/general/unit_test_vector3.cpp diff --git a/tests/general/UnitTestVector4.cpp b/tests/general/unit_test_vector4.cpp similarity index 100% rename from tests/general/UnitTestVector4.cpp rename to tests/general/unit_test_vector4.cpp diff --git a/tests/general/UnitTestViewAngles.cpp b/tests/general/unit_test_view_angles.cpp similarity index 100% rename from tests/general/UnitTestViewAngles.cpp rename to tests/general/unit_test_view_angles.cpp