| 247 | } |
| 248 | |
| 249 | void 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 | |
| 284 | static void xEntERMove(xEntMotion* motion, xScene* sc, F32 dt, xEntFrame* frame) |
| 285 | { |
no test coverage detected