SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
SandCapsuleInsidePlanet.cpp
1#include "Game/MapObj/SandCapsuleInsidePlanet.hpp"
2
3SandCapsuleInsidePlanet::SandCapsuleInsidePlanet(const char *pName) : MapObjActor(pName) {
4
5}
6
10 MapObjActorUtil::setupInitInfoPlanet(&info);
11 info.setupNerve(&NrvSandCapsuleInsidePlanet::SandCapsuleInsidePlanetNrvWait::sInstance);
12 initialize(rIter, info);
13 MR::startBrk(this, "Off");
14 MR::setBrkFrameEndAndStop(this);
15}
16
17void SandCapsuleInsidePlanet::initCaseUseSwitchA(const MapObjActorInitInfo &rInfo) {
18 void (SandCapsuleInsidePlanet::*offFunc)(void) = &SandCapsuleInsidePlanet::startOff;
19 void (SandCapsuleInsidePlanet::*onFunc)(void) = &SandCapsuleInsidePlanet::startOn;
20 MR::listenStageSwitchOnOffA(this, MR::Functor(this, onFunc), MR::Functor(this, offFunc));
21}
22
23void SandCapsuleInsidePlanet::startOn() {
24 MR::startBrk(this, "On");
25}
26
27void SandCapsuleInsidePlanet::startOff() {
28 MR::startBrk(this, "Off");
29}
30
31namespace NrvSandCapsuleInsidePlanet {
32 INIT_NERVE(SandCapsuleInsidePlanetNrvWait);
33};
34
35SandCapsuleInsidePlanet::~SandCapsuleInsidePlanet() {
36
37}
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.