SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
ItemBlock.hpp
1#pragma once
2
3#include "Game/LiveActor/LiveActor.hpp"
4
5class ItemBlock : public LiveActor {
6public:
7 ItemBlock(const char *);
8
9 virtual ~ItemBlock();
10 virtual void init(const JMapInfoIter &);
11 virtual void calcAnim();
12 virtual void appear();
13 virtual void kill();
14 virtual void startClipped();
15 virtual void endClipped();
16 virtual void control();
17 virtual bool receiveMsgPlayerAttack(u32, HitSensor *, HitSensor *);
18
19 void checkKind(const JMapInfoIter &);
20 void initBlock();
21 bool tryStartJumpPunch();
22 void exeWait();
23 void exeAppearItem();
24 void exeAppearItemSplash();
25 void decTimer();
26
27 s32 mKind; // 0x8C
28 s32 mTimer; // 0x90
29 s32 mItemCount; // 0x94
30 u8 _98; // 0x98
31 bool mCalcShadowOneTime; // 0x99
32 bool mNoCalcAnim; // 0x9A
33};
34
35namespace NrvItemBlock {
36 NERVE(ItemBlockNrvStandby);
37 NERVE(ItemBlockNrvWait);
38 NERVE(ItemBlockNrvAppearItem);
39 NERVE(ItemBlockNrvAppearItemSplash);
40};
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition ItemBlock.cpp:46
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24