MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Test

Method Test

TombEngine/Specific/Structures/BitField.cpp:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 bool BitField::Test(unsigned int bitID) const
183 {
184 if constexpr (DEBUG_BUILD)
185 {
186 if (!IsBitIDCorrect(bitID))
187 return false;
188 }
189
190 unsigned int localBitID = bitID % CHUNK_SIZE;
191 unsigned int chunkID = bitID / CHUNK_SIZE;
192 return bool(_chunks[chunkID] & ((ChunkType)1 << localBitID));
193 }
194
195 bool BitField::Test(const std::vector<unsigned int>& bitIds, bool testAny) const
196 {

Callers 15

RenderBlobShadowsMethod · 0.45
DrawAnimatingItemMethod · 0.45
DrawLaraMethod · 0.45
DoSpearGuardianAttackFunction · 0.45
BarracudaControlFunction · 0.45
SharkControlFunction · 0.45
BirdMonsterControlFunction · 0.45
RatControlFunction · 0.45
YetiControlFunction · 0.45
ControlDragonFunction · 0.45
HandleDaggerPickupFunction · 0.45
SwordGuardianControlFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected