SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
ChipBase.hpp
1#pragma once
2
3#include "Game/LiveActor/LiveActor.hpp"
4#include "Game/LiveActor/FlashingCtrl.hpp"
5#include "Game/LiveActor/PartsModel.hpp"
6#include "Game/MapObj/MapPartsRailMover.hpp"
7#include "Game/NameObj/NameObjArchiveListCollector.hpp"
8
9class ChipBase : public LiveActor {
10public:
11 ChipBase(const char *, s32, const char *);
12
13 virtual ~ChipBase() {
14
15 }
16
17 virtual void init(const JMapInfoIter &);
18 virtual void initAfterPlacement();
19 virtual void makeActorAppeared();
20 virtual void makeActorDead();
21 virtual void control();
22 virtual bool receiveOtherMsg(u32, HitSensor *, HitSensor *);
23
24 void initModel(const JMapInfoIter &);
25 void initSensor();
26 void initShadow(const JMapInfoIter &);
27 void initJMapParam(const JMapInfoIter &);
28 void deactive();
29 void setGroupID(s32);
30 void setHost(LiveActor *);
31 void appearWait();
32 void appearFlashing(s32);
33 bool requestGet(HitSensor *, HitSensor *);
34 bool requestShow();
35 bool requestHide();
36 bool requestStartControl();
37 bool requestEndControl();
38 void exeFlashing();
39 void exeGot();
40 bool isGettable() const;
41 static bool isNeedBubble(const JMapInfoIter &);
42 static void makeArchiveList(NameObjArchiveListCollector *, const JMapInfoIter &);
43
44 FlashingCtrl* mFlashingCtrl; // _8C
45 MapPartsRailMover* mRailMover; // _90
46 PartsModel* mAirBubble; // _94
47 const char* mChipName; // _98
48 LiveActor* mHost; // _9C
49 TVec3f mClippingRange; // _A0
50 s32 mGroupID; // _AC
51 s32 mChipType; // _B0
52 bool _B4;
53 bool _B5;
54};
55
56namespace NrvChipBase {
57 NERVE(ChipBaseNrvDeactive);
58 NERVE(ChipBaseNrvWait);
59 NERVE(ChipBaseNrvControled);
60 NERVE(ChipBaseNrvFlashing);
61 NERVE(ChipBaseNrvHide);
62 NERVE(ChipBaseNrvGot);
63};
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition ChipBase.cpp:18
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
Stores archive names of NameObjs.