SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
include
Game
MapObj
SwitchBox.hpp
1
#pragma once
2
3
#include "Game/LiveActor/LiveActor.hpp"
4
5
class
SwitchBox
:
public
LiveActor
{
6
public
:
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
27
namespace
NrvSwitchBox {
28
NERVE(SwitchBoxNrvWait);
29
NERVE(SwitchBoxNrvHit);
30
};
HitSensor
Definition
HitSensor.hpp:10
JMapInfoIter
Definition
JMapInfo.hpp:16
LiveActor
The basis of a drawable actor that can contain states (see: Nerve)
Definition
LiveActor.hpp:24
SwitchBox
Definition
SwitchBox.hpp:5
SwitchBox::init
virtual void init(const JMapInfoIter &rIter)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition
SwitchBox.cpp:9
Generated by
1.10.0