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

Function TestDirectionalStandingJump

TombEngine/Game/Lara/PlayerContext.cpp:876–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874 }
875
876 static bool TestDirectionalStandingJump(const ItemInfo& item, const CollisionInfo& coll, short relHeadingAngle)
877 {
878 // Check for swamp.
879 if (TestEnvironment(ENV_FLAG_SWAMP, &item))
880 return false;
881
882 auto setup = JumpSetupData
883 {
884 short(item.Pose.Orientation.y + relHeadingAngle),
885 CLICK(0.85f)
886 };
887
888 return TestJumpSetup(item, coll, setup);
889 }
890
891 bool CanJumpForward(const ItemInfo& item, const CollisionInfo& coll)
892 {

Callers 4

CanJumpForwardFunction · 0.85
CanJumpBackwardFunction · 0.85
CanJumpLeftFunction · 0.85
CanJumpRightFunction · 0.85

Calls 2

TestEnvironmentFunction · 0.85
TestJumpSetupFunction · 0.85

Tested by

no test coverage detected