SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
SwitchBox.hpp
1#pragma once
2
3#include "Game/LiveActor/LiveActor.hpp"
4
5class SwitchBox : public LiveActor {
6public:
7 SwitchBox(const char *pName);
8
9 virtual void init(const JMapInfoIter &rIter);
10 virtual void initAfterPlacement();
11 virtual void appear();
12 virtual void kill();
13 virtual bool receiveMsgPlayerAttack(u32 msg, HitSensor *pSender, HitSensor *pReceiver);
14 virtual bool receiveMsgEnemyAttack(u32 msg, HitSensor *pSender, HitSensor *pReceiver);
15 virtual bool receiveOtherMsg(u32 msg, HitSensor *pSender, HitSensor *pReceiver);
16
17 void exeWait();
18 void exeHit();
19 void doHit(HitSensor *pSender, HitSensor *pReceiver);
20
21 u16 _8c;
22 u16 _8e;
23 u16 _90;
24 u8 _92;
25};
26
27namespace NrvSwitchBox {
28 NERVE(SwitchBoxNrvWait);
29 NERVE(SwitchBoxNrvHit);
30};
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
virtual void init(const JMapInfoIter &rIter)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition SwitchBox.cpp:9