LCOV - code coverage report
Current view: top level - source/simulation2/components - CCmpRangeManager.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 845 1270 66.5 %
Date: 2026-12-02 01:21:50 Functions: 68 92 73.9 %

Function Name Sort by function name Hit count Sort by hit count
RegisterComponentType_RangeManager(CComponentManager&) 137
void (anonymous namespace)::ForEachTileInCircle<CCmpRangeManager::ExploreCircle(int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>)::{lambda(int, int)#1}>((anonymous namespace)::TileCircle const&, CCmpRangeManager::ExploreCircle(int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>)::{lambda(int, int)#1}&&) 2
void SerializeHelper<(anonymous namespace)::EntityData, void>::operator()<ISerializer>(ISerializer&, char const*, std::conditional<is_same_v<ISerializer, ISerializer&>, (anonymous namespace)::EntityData const&, (anonymous namespace)::EntityData&>::type) 1032
void SerializeHelper<(anonymous namespace)::EntityData, void>::operator()<IDeserializer>(IDeserializer&, char const*, std::conditional<is_same_v<IDeserializer, ISerializer&>, (anonymous namespace)::EntityData const&, (anonymous namespace)::EntityData&>::type) 0
void SerializeHelper<(anonymous namespace)::Query, void>::Common<ISerializer>(ISerializer&, char const*, std::conditional<is_same_v<ISerializer, ISerializer&>, (anonymous namespace)::Query const&, (anonymous namespace)::Query&>::type) 912
void SerializeHelper<(anonymous namespace)::Query, void>::Common<IDeserializer>(IDeserializer&, char const*, std::conditional<is_same_v<IDeserializer, ISerializer&>, (anonymous namespace)::Query const&, (anonymous namespace)::Query&>::type) 0
SerializeHelper<(anonymous namespace)::Query, void>::operator()(IDeserializer&, char const*, (anonymous namespace)::Query&, CSimContext const&) 0
CCmpRangeManager::Deallocate(IComponent*) 16
CCmpRangeManager::ExploreMap(int) 0
CCmpRangeManager::Deserialize(CParamNode const&, IDeserializer&) 0
CCmpRangeManager::RevealShore(int, bool) 0
CCmpRangeManager::ExecuteQuery(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<int, std::allocator<int> > const&, int, bool) 13
CCmpRangeManager::PerformQuery((anonymous namespace)::Query const&, std::vector<unsigned int, std::allocator<unsigned int> >&, CFixedVector2D, std::vector<unsigned int, std::allocator<unsigned int> >&) 411
CCmpRangeManager::RenderSubmit(SceneCollector&) 0
CCmpRangeManager::SetSharedLos(int, std::vector<int, std::allocator<int> > const&) 18
CCmpRangeManager::ExploreCircle(int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 4
CCmpRangeManager::HandleMessage(CMessage const&, bool) 9656
CCmpRangeManager::SetEntityFlag(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) 69
CCmpRangeManager::SharingLosAdd(unsigned short, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D) 0
CCmpRangeManager::GetSubdivision() 0
CCmpRangeManager::SetLosCircular(bool) 3
CCmpRangeManager::SharingLosMove(unsigned short, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D, CFixedVector2D) 0
void CCmpRangeManager::LosUpdateHelper<false>(unsigned char, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D) 996
void CCmpRangeManager::LosUpdateHelper<true>(unsigned char, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D) 2183
void CCmpRangeManager::SerializeCommon<ISerializer>(ISerializer&) 18
void CCmpRangeManager::SerializeCommon<IDeserializer>(IDeserializer&) 0
CCmpRangeManager::SetDebugOverlay(bool) 0
CCmpRangeManager::RemoveFromRegion(std::pair<unsigned short, unsigned short>, unsigned int) 1603
CCmpRangeManager::ResetActiveQuery(unsigned int) 6
CCmpRangeManager::ResetDerivedData() 1052
CCmpRangeManager::SharingLosRemove(unsigned short, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D) 0
CCmpRangeManager::UpdateVisibility(unsigned int, int) 115979
CCmpRangeManager::CreateActiveQuery(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<int, std::allocator<int> > const&, int, unsigned char, bool, bool) 111
CCmpRangeManager::EnableActiveQuery(unsigned int) 166
CCmpRangeManager::LosAddStripHelper(unsigned char, int, int, int, Grid<unsigned short>&) 332426
CCmpRangeManager::ResetSubdivisions(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 1068
CCmpRangeManager::WorldToTileCircle(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 2
CCmpRangeManager::DestroyActiveQuery(unsigned int) 34
CCmpRangeManager::DisableActiveQuery(unsigned int) 162
CCmpRangeManager::ExploreTerritories() 3
CCmpRangeManager::ExecuteActiveQueries() 186
CCmpRangeManager::LosRemoveStripHelper(unsigned char, int, int, int, Grid<unsigned short>&) 294929
CCmpRangeManager::SetLosRevealWholeMap(int, bool) 4
CCmpRangeManager::UpdateVisibilityData() 186
CCmpRangeManager::ComputeParabolicRange(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) 943
CCmpRangeManager::ExecuteQueryAroundPos(CFixedVector2D const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<int, std::allocator<int> > const&, int, bool) 57
CCmpRangeManager::RequestVisibilityUpdate(unsigned int) 8965
CCmpRangeManager::ActivateScriptedVisibility(unsigned int, bool) 9
CCmpRangeManager::CreateActiveParabolicQuery(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>, std::vector<int, std::allocator<int> > const&, int, unsigned char, bool) 55
CCmpRangeManager::LosUpdateHelperIncremental(unsigned char, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D, CFixedVector2D) 7519
CCmpRangeManager::SetLosRevealWholeMapForAll(bool) 6
CCmpRangeManager::MarkVisibilityDirtyAroundTile(unsigned char, int, int) 2354538
CCmpRangeManager::Init(CParamNode const&) 16
CCmpRangeManager::Deinit() 16
CCmpRangeManager::Verify() 1041
CCmpRangeManager::LosMove(int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixedVector2D, CFixedVector2D) 8772
CCmpRangeManager::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 16
CCmpRangeManager::ClassInit(CComponentManager&) 137
CCmpRangeManager::Serialize(ISerializer&) 18
CCmpRangeManager::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>) 8
(anonymous namespace)::EntityDistanceOrdering::operator()(unsigned int, unsigned int) const 0
CCmpRangeManager::GetLosQuerier(int) const 0
CCmpRangeManager::LosIsOffWorld(long, long) const 36542147
CCmpRangeManager::ConstructQuery(unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, std::vector<int, std::allocator<int> > const&, int, unsigned char, bool, bool) const 236
CCmpRangeManager::GetLosCircular() const 3
CCmpRangeManager::TestEntityQuery((anonymous namespace)::Query const&, unsigned int, (anonymous namespace)::EntityData const&) const 2546
CCmpRangeManager::GetLosVisibility(CEntityHandle, int) const 1527
CCmpRangeManager::GetLosVisibility(unsigned int, int) const 1527
CCmpRangeManager::GetSharedLosMask(int) const 0
CCmpRangeManager::GetEntitiesByMask(unsigned int) const 288
CCmpRangeManager::GetEntityFlagMask(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const 305
CCmpRangeManager::GetComponentTypeId() const 0
CCmpRangeManager::GetNonGaiaEntities() const 8
CCmpRangeManager::GetVerticesPerSide() const 0
CCmpRangeManager::GetEntitiesByPlayer(int) const 280
CCmpRangeManager::SeeExploredEntities(int) const 48
CCmpRangeManager::ComputeLosVisibility(CEntityHandle, int) const 116069
CCmpRangeManager::ComputeLosVisibility(unsigned int, int) const 115499
CCmpRangeManager::GetLosRevealWholeMap(int) const 116069
CCmpRangeManager::IsActiveQueryEnabled(unsigned int) const 0
CCmpRangeManager::GetPercentMapExplored(int) const 33
CCmpRangeManager::PosToLosRegionsHelper(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 20327
CCmpRangeManager::getParabolicRangeForm(CFixedVector3D, 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>, int) const 0
CCmpRangeManager::GetElevationAdaptedRange(CFixedVector3D const&, CFixedVector3D const&, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 0
CCmpRangeManager::GetLosVisibilityPosition(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, int) const 0
CCmpRangeManager::GetGaiaAndNonGaiaEntities() const 0
CCmpRangeManager::GetEffectiveParabolicRange(unsigned int, unsigned int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 946
CCmpRangeManager::GetLosRevealWholeMapForAll() const 3
CCmpRangeManager::GetUnionPercentMapExplored(std::vector<int, std::allocator<int> > const&) const 0
CCmpRangeManager::GetMaxReachableParabolicHeight(CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>) const 156
CCmpRangeManager::ExploreCircle(int, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>, CFixed<int, 2147483647, 32, 15, 16, 65536>)::{lambda(int, int)#1}::operator()(int, int) const 4754
CCmpRangeManager::ExecuteActiveQueries()::{lambda(std::vector<unsigned int, std::allocator<unsigned int> >&)#1}::operator()(std::vector<unsigned int, std::allocator<unsigned int> >&) const 599

Generated by: LCOV version 1.16