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

Function TestLastFrame

TombEngine/Game/Animation/Animation.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 }
212
213 bool TestLastFrame(const ItemInfo& item, int animNumber)
214 {
215 if (animNumber == NO_VALUE)
216 animNumber = item.Animation.AnimNumber;
217
218 // Animation number mismatch; return early.
219 if (item.Animation.AnimNumber != animNumber)
220 return false;
221
222 // FAILSAFE: Frames beyond real end frame also count.
223 const auto& anim = GetAnimData(item.Animation.AnimObjectID, animNumber);
224 return (item.Animation.FrameNumber >= anim.EndFrameNumber);
225 }
226
227 bool TestAnimFrameRange(const ItemInfo& item, int lowFrameNumber, int highFrameNumber)
228 {

Callers 15

TestSkidooDismountFunction · 0.85
DoSpeedboatDismountFunction · 0.85
ShivaControlFunction · 0.85
BigGunControlFunction · 0.85
QuadBikeCheckGetOffFunction · 0.85
DoRubberBoatDismountFunction · 0.85
DoUserInputFunction · 0.85
ControlSwingingBladeFunction · 0.85
TurnSwitchControlFunction · 0.85
CogSwitchControlFunction · 0.85
ControlCrumblingPlatformFunction · 0.85
LaraClimbRopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected