LCOV - code coverage report
Current view: top level - source/simulation2/components - CCmpObstructionManager.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 419 696 60.2 %
Date: 2026-12-02 01:21:50 Functions: 39 57 68.4 %

Function Name Sort by function name Hit count Sort by hit count
RegisterComponentType_ObstructionManager(CComponentManager&) 137
CCmpObstructionManager::Deallocate(IComponent*) 16
CCmpObstructionManager::Deserialize(CParamNode const&, IDeserializer&) 0
CCmpObstructionManager::RemoveShape(ICmpObstructionManager::tag_t) 30
CCmpObstructionManager::AddUnitShape(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, unsigned char, unsigned int) 198
CCmpObstructionManager::RenderSubmit(SceneCollector&) 0
CCmpObstructionManager::HandleMessage(CMessage const&, bool) 0
CCmpObstructionManager::MakeDirtyUnit(unsigned char, unsigned int, (anonymous namespace)::UnitShape const&) 15648
CCmpObstructionManager::AddStaticShape(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, unsigned char, unsigned int, unsigned int) 18
CCmpObstructionManager::MakeDirtyStatic(unsigned char, unsigned int, (anonymous namespace)::StaticShape const&) 30
void CCmpObstructionManager::SerializeCommon<ISerializer>(ISerializer&) 18
void CCmpObstructionManager::SerializeCommon<IDeserializer>(IDeserializer&) 0
CCmpObstructionManager::SetDebugOverlay(bool) 0
CCmpObstructionManager::MarkDirtinessGrid(CFixed<int, 2147483647, 32, 15, 16, 65536> const&, CFixed<int, 2147483647, 32, 15, 16, 65536> const&, CFixedVector2D const&) 0
CCmpObstructionManager::ResetSubdivisions(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 28
CCmpObstructionManager::SetUnitMovingFlag(ICmpObstructionManager::tag_t, bool) 8118
CCmpObstructionManager::UpdateInformations(GridUpdateInformation&) 189
CCmpObstructionManager::SetUnitControlGroup(ICmpObstructionManager::tag_t, unsigned int) 0
CCmpObstructionManager::SetStaticControlGroup(ICmpObstructionManager::tag_t, unsigned int, unsigned int) 2
CCmpObstructionManager::SetPassabilityCircular(bool) 3
CCmpObstructionManager::Init(CParamNode const&) 16
CCmpObstructionManager::Deinit() 16
CCmpObstructionManager::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 16
CCmpObstructionManager::MoveShape(ICmpObstructionManager::tag_t, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 7716
CCmpObstructionManager::Rasterize(Grid<unsigned short>&, std::vector<PathfinderPassability, std::allocator<PathfinderPassability> > const&, bool) 6
CCmpObstructionManager::Serialize(ISerializer&) 18
CCmpObstructionManager::SetBounds(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 12
void SerializeHelper<(anonymous namespace)::StaticShape, void>::operator()<ISerializer>(ISerializer&, char const*, std::conditional<is_same_v<ISerializer, ISerializer&>, (anonymous namespace)::StaticShape const&, (anonymous namespace)::StaticShape&>::type) const 12
void SerializeHelper<(anonymous namespace)::StaticShape, void>::operator()<IDeserializer>(IDeserializer&, char const*, std::conditional<is_same_v<IDeserializer, ISerializer&>, (anonymous namespace)::StaticShape const&, (anonymous namespace)::StaticShape&>::type) const 0
void SerializeHelper<(anonymous namespace)::UnitShape, void>::operator()<ISerializer>(ISerializer&, char const*, std::conditional<is_same_v<ISerializer, ISerializer&>, (anonymous namespace)::UnitShape const&, (anonymous namespace)::UnitShape&>::type) const 1020
void SerializeHelper<(anonymous namespace)::UnitShape, void>::operator()<IDeserializer>(IDeserializer&, char const*, std::conditional<is_same_v<IDeserializer, ISerializer&>, (anonymous namespace)::UnitShape const&, (anonymous namespace)::UnitShape&>::type) const 0
CCmpObstructionManager::TestUnitLine(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, bool) const 3303
CCmpObstructionManager::TestUnitShape(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<unsigned int, std::allocator<unsigned int> >*) const 16
CCmpObstructionManager::GetObstruction(ICmpObstructionManager::tag_t) const 8
CCmpObstructionManager::IsInPointRange(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, bool) const 3588
CCmpObstructionManager::DistanceToPoint(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 3588
CCmpObstructionManager::IsInTargetRange(unsigned int, unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, bool) const 10696
CCmpObstructionManager::RasterizeHelper(Grid<unsigned short>&, unsigned char, bool, unsigned short, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 24
CCmpObstructionManager::TestStaticShape(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<unsigned int, std::allocator<unsigned int> >*) const 16
CCmpObstructionManager::AreShapesInRange(ICmpObstructionManager::ObstructionSquare const&, ICmpObstructionManager::ObstructionSquare const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, bool) const 4761
CCmpObstructionManager::DistanceToTarget(unsigned int, unsigned int) const 10706
CCmpObstructionManager::GetComponentTypeId() const 0
CCmpObstructionManager::MaxDistanceToPoint(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 0
CCmpObstructionManager::IsPointInPointRange(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 0
CCmpObstructionManager::MaxDistanceToTarget(unsigned int, unsigned int) const 11
CCmpObstructionManager::DistanceBetweenShapes(ICmpObstructionManager::ObstructionSquare const&, ICmpObstructionManager::ObstructionSquare const&) const 25334
CCmpObstructionManager::GetUnitsOnObstruction(ICmpObstructionManager::ObstructionSquare const&, std::vector<unsigned int, std::allocator<unsigned int> >&, IObstructionTestFilter const&, bool) const 0
CCmpObstructionManager::GetObstructionsInRange(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<ICmpObstructionManager::ObstructionSquare, std::allocator<ICmpObstructionManager::ObstructionSquare> >&) const 0
CCmpObstructionManager::GetPassabilityCircular() const 9
CCmpObstructionManager::GetUnitShapeObstruction(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 50100
CCmpObstructionManager::IsInTargetParabolicRange(unsigned int, unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, bool) const 0
CCmpObstructionManager::MaxDistanceBetweenShapes(ICmpObstructionManager::ObstructionSquare const&, ICmpObstructionManager::ObstructionSquare const&) const 11
CCmpObstructionManager::GetStaticShapeObstruction(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 48
CCmpObstructionManager::GetUnitObstructionsInRange(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<ICmpObstructionManager::ObstructionSquare, std::allocator<ICmpObstructionManager::ObstructionSquare> >&) const 0
CCmpObstructionManager::GetStaticObstructionsInRange(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<ICmpObstructionManager::ObstructionSquare, std::allocator<ICmpObstructionManager::ObstructionSquare> >&) const 0
CCmpObstructionManager::GetStaticObstructionsOnObstruction(ICmpObstructionManager::ObstructionSquare const&, std::vector<unsigned int, std::allocator<unsigned int> >&, IObstructionTestFilter const&) const 0
CCmpObstructionManager::TestLine(IObstructionTestFilter const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, bool) const 11349

Generated by: LCOV version 1.16