MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xEntUpdate

Function xEntUpdate

src/SB/Core/x/xEnt.cpp:927–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925}
926
927void xEntUpdate(xEnt* ent, xScene* sc, F32 dt)
928{
929 xEntBeginUpdate(ent, sc, dt);
930
931 if (ent->pflags & 0x2)
932 {
933 xEntApplyPhysics(ent, sc, dt);
934 }
935
936 if (ent->pflags & 0x1)
937 {
938 xEntMove(ent, sc, dt);
939 }
940
941 xFFXApply(ent, sc, dt);
942
943 if (ent->collis)
944 {
945 xEntCollide(ent, sc, dt);
946 }
947
948 if (ent->flags & 0x2 && ent->pflags & 0x4)
949 {
950 update_stacked_entity(*sc, *ent, dt);
951 }
952
953 xEntEndUpdate(ent, sc, dt);
954}
955
956void xEntBeginUpdate(xEnt* ent, xScene* sc, F32 dt)
957{

Callers 8

zPendulum_UpdateFunction · 0.85
zEntSimpleObj_UpdateFunction · 0.85
zEntButton_UpdateFunction · 0.85
zEGenerator_UpdateFunction · 0.85
zEntDestructObj_UpdateFunction · 0.85
zPlatform_UpdateFunction · 0.85
zEntUpdateFunction · 0.85
zEntTeleportBox_UpdateFunction · 0.85

Calls 7

xEntBeginUpdateFunction · 0.85
xFFXApplyFunction · 0.85
update_stacked_entityFunction · 0.85
xEntApplyPhysicsFunction · 0.70
xEntMoveFunction · 0.70
xEntCollideFunction · 0.70
xEntEndUpdateFunction · 0.70

Tested by

no test coverage detected