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

Method Execute

TombEngine/Game/Animation/Commands.cpp:18–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace TEN::Animation
17{
18 void MoveOriginCommand::Execute(ItemInfo& item, bool isFrameBased) const
19 {
20 if (isFrameBased)
21 return;
22
23 item.Pose.Translate(item.Pose.Orientation.y, _relOffset.z, _relOffset.y, _relOffset.x);
24
25 if (item.IsLara())
26 {
27 // NOTE: GameBoundingBox constructor always clamps to last frame to avoid errors.
28 auto bounds = GameBoundingBox(&item);
29 UpdateLaraRoom(&item, -bounds.GetHeight() / 2, -_relOffset.x, -_relOffset.z);
30 }
31 else
32 {
33 UpdateItemRoom(item.Index);
34 }
35 }
36
37 void JumpVelocityCommand::Execute(ItemInfo& item, bool isFrameBased) const
38 {

Callers 1

ExecuteAnimCommandsFunction · 0.80

Calls 13

UpdateLaraRoomFunction · 0.85
UpdateItemRoomFunction · 0.85
SoundEffectFunction · 0.85
GetPointCollisionFunction · 0.85
TestEnvironmentFunction · 0.85
DoFlipEffectFunction · 0.85
IsLaraMethod · 0.80
GetHeightMethod · 0.80
WaterCreatureMethod · 0.80
GameBoundingBoxClass · 0.50
TranslateMethod · 0.45
GetRoomNumberMethod · 0.45

Tested by

no test coverage detected