1#include "Game/Map/TimerSwitch.hpp"
3TimerSwitch::TimerSwitch(
const char *pName) :
LiveActor(pName) {
9 MR::connectToSceneMapObjMovement(
this);
10 MR::getJMapInfoArg0NoInit(rIter, &mTimerLength);
11 MR::needStageSwitchWriteA(
this, rIter);
12 MR::needStageSwitchReadB(
this, rIter);
13 MR::invalidateClipping(
this);
17void TimerSwitch::control() {
18 if (mCurrentTime < 0 && MR::isOnSwitchB(
this)) {
19 mCurrentTime = mTimerLength;
22 s32 current = mCurrentTime;
24 mCurrentTime = current - 1;
26 if (current - 1 <= 0) {
33TimerSwitch::~TimerSwitch() {
The basis of a drawable actor that can contain states (see: Nerve)
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.