Mostly cosmetic, but should help with incremental compile times:
- Moves LOS to a los.h helper header.
- Don't include Grid in Pathfinding.h (which is included everywhere), which means changing Grid.h is faster.
(On top of D2770)
Differential D2784
Move LOS to a los helper header and cleanup Grid.h includes wraitii on Jun 4 2020, 9:37 AM. Authored by
Details
Mostly cosmetic, but should help with incremental compile times:
(On top of D2770) Should be straightforward but I fully expect this to fail in some weird build case :p
Diff Detail
Event TimelineComment Actions Build failure - The Moirai have given mortals hearts that can endure. Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/1779/display/redirect Comment Actions Build failure - The Moirai have given mortals hearts that can endure. Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2310/display/redirect Comment Actions Los.h could be CLosQuerier no? Looks like patch fails to apply on windows for some reason.
Comment Actions It also includes the LosState enums, and could include more in the future.
Unlikely, they're included in .cpp files for the most part.
Probably because it's in top of D2770 Comment Actions Successful build - Chance fights ever on the side of the prudent. Linter detected issues: Executing section Source... source/graphics/TerritoryTexture.cpp | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/helpers/LongPathfinder.h | 1| /*·Copyright·(C)·2017·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2017" source/simulation2/helpers/LongPathfinder.h | 32| ·*·objects·for·equality·comparisons·and·the·VC2010·optimizer·doesn't·seem·to·automatically | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classPathGoal{' is invalid C code. Use --std or --language to configure the language. source/simulation2/components/tests/test_HierPathfinder.h | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/tests/test_HierPathfinder.h | 26| class·TestHierarchicalPathfinder·:·public·CxxTest::TestSuite | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classTestHierarchicalPathfinder:' is invalid C code. Use --std or --language to configure the language. source/simulation2/helpers/Pathfinding.h | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/helpers/Pathfinding.h | 32| | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classPathGoal{' is invalid C code. Use --std or --language to configure the language. source/simulation2/components/ICmpObstructionManager.h | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/ICmpObstructionManager.h | 28| template<typename·T> | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'template<...' is invalid C code. Use --std or --language to configure the language. source/simulation2/helpers/Los.h | 33| /** | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'template<...' is invalid C code. Use --std or --language to configure the language. source/simulation2/components/CCmpProjectileManager.cpp | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/tests/test_Pathfinder.h | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/tests/test_Pathfinder.h | 33| class·TestCmpPathfinder·:·public·CxxTest::TestSuite | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classTestCmpPathfinder:' is invalid C code. Use --std or --language to configure the language. source/graphics/tests/test_LOSTexture.h | 26| class·TestLOSTexture·:·public·CxxTest::TestSuite | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classTestLOSTexture:' is invalid C code. Use --std or --language to configure the language. source/graphics/LOSTexture.h | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/graphics/LOSTexture.h | 32| class·CLOSTexture | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classCLOSTexture{' is invalid C code. Use --std or --language to configure the language. source/simulation2/components/CCmpRallyPointRenderer.cpp | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/ICmpRangeManager.h | 90| class·ICmpRangeManager·:·public·IComponent | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classICmpRangeManager:' is invalid C code. Use --std or --language to configure the language. source/simulation2/helpers/HierarchicalPathfinder.cpp | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/graphics/TerritoryBoundary.cpp | 1| /*·Copyright·(C)·2012·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2012" source/simulation2/components/CCmpRallyPointRenderer.h | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/CCmpRallyPointRenderer.h | 29| #include·"simulation2/components/ICmpPlayer.h" | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'classICmpRallyPointRenderer:' is invalid C code. Use --std or --language to configure the language. source/simulation2/components/CCmpPathfinder_Common.h | 34| #include·"graphics/Overlay.h" | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'template<...' is invalid C code. Use --std or --language to configure the language. source/simulation2/helpers/VertexPathfinder.cpp | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" source/simulation2/components/CCmpObstructionManager.cpp | 1| /*·Copyright·(C)·2019·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2020" year instead of "2019" Executing section JS... Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2430/display/redirect |