1#include "Game/LiveActor/AnimationRandomPlayer.hpp"
2#include "Game/Util.hpp"
4NrvAnimationRandomPlayer::HostTypeWait NrvAnimationRandomPlayer::HostTypeWait::sInstance;
5NrvAnimationRandomPlayer::HostTypePlay NrvAnimationRandomPlayer::HostTypePlay::sInstance;
7AnimationRandomPlayer::AnimationRandomPlayer(
const LiveActor *pActor,
const char *a2,
const char *a3, s32 a4, f32 a5) :
NerveExecutor(a2) {
13 initNerve(&NrvAnimationRandomPlayer::HostTypeWait::sInstance);
17void AnimationRandomPlayer::updateStartStep() {
21 _14 = MR::getRandom(min, max);
24void AnimationRandomPlayer::exeWait() {
25 if (MR::isFirstStep(
this)) {
27 MR::startAllAnim(mActor, _10);
31 if (MR::isStep(
this, _14)) {
32 setNerve(&NrvAnimationRandomPlayer::HostTypePlay::sInstance);
36void AnimationRandomPlayer::exePlay() {
37 if (MR::isFirstStep(
this)) {
38 MR::startAllAnim(mActor, _C);
41 if (MR::isAnyAnimOneTimeAndStopped(mActor, _C)) {
43 MR::setAllAnimFrame(mActor, _C, 0.0f);
44 setNerve(&NrvAnimationRandomPlayer::HostTypeWait::sInstance);
48AnimationRandomPlayer::~AnimationRandomPlayer() {
The basis of a drawable actor that can contain states (see: Nerve)