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

Function xEntMotionMove

src/SB/Core/x/xEntMotion.cpp:249–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void xEntMotionMove(xEntMotion* motion, xScene* sc, F32 dt, xEntFrame* frame)
250{
251 if (motion->flags & 4)
252 {
253 return;
254 }
255
256 if (motion->type == XENTMOTION_TYPE_ER)
257 {
258 xEntERMove(motion, sc, dt, frame);
259 }
260 else if (motion->type == XENTMOTION_TYPE_ORB)
261 {
262 xEntOrbitMove(motion, sc, dt, frame);
263 }
264 else if (motion->type == XENTMOTION_TYPE_MP)
265 {
266 xEntMPMove(motion, sc, dt, frame);
267 }
268 else if (motion->type == XENTMOTION_TYPE_PEN)
269 {
270 xEntPenMove(motion, sc, dt, frame);
271 }
272 else if (motion->type == XENTMOTION_TYPE_MECH)
273 {
274 xEntMechMove(motion, sc, dt, frame);
275 }
276 else
277 {
278 frame->mode = 0;
279 }
280
281 motion->t = (motion->t + dt);
282}
283
284static void xEntERMove(xEntMotion* motion, xScene* sc, F32 dt, xEntFrame* frame)
285{

Callers 3

zPendulum_MoveFunction · 0.85
zEntButton_MoveFunction · 0.85
zPlatform_MoveFunction · 0.85

Calls 5

xEntERMoveFunction · 0.70
xEntOrbitMoveFunction · 0.70
xEntMPMoveFunction · 0.70
xEntPenMoveFunction · 0.70
xEntMechMoveFunction · 0.70

Tested by

no test coverage detected