SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
CrystalSwitch.hpp
1#pragma once
2
3#include "Game/LiveActor/LiveActor.hpp"
4
5class CrystalSwitch : public LiveActor {
6public:
7 CrystalSwitch(const char *);
8
9 virtual ~CrystalSwitch();
10 virtual void init(const JMapInfoIter &);
11 virtual void control();
12 virtual void attackSensor(HitSensor *, HitSensor *);
13 virtual bool receiveMsgPlayerAttack(u32, HitSensor *, HitSensor *);
14
15 bool trySwitchDown();
16 bool tryOn();
17 bool tryOff();
18 void exeOff();
19 void exeSwitchDown();
20 void exeOn();
21 void calcRotSpeed();
22
23 u32 _8C;
24 s32 _90;
25 f32 mRotateSpeed; // _94
26 u8 _98;
27};
28
29namespace NrvCrystalSwitch {
30 NERVE(CrystalSwitchNrvOff);
31 NERVE(CrystalSwitchNrvSwitchDown);
32 NERVE(CrystalSwitchNrvOn);
33 NERVE(CrystalSwitchNrvSwitchUp);
34};
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24