SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
AreaObj.hpp
1#pragma once
2
3#include "revolution.h"
4
5#include "Game/AreaObj/AreaForm.hpp"
6#include "Game/NameObj/NameObj.hpp"
7#include "Game/Map/StageSwitch.hpp"
8#include "Game/Util/Array.hpp"
9
10class AreaObj : public NameObj {
11public:
12 AreaObj(int, const char *);
13 virtual ~AreaObj() {
14
15 }
16
17 virtual void init(const JMapInfoIter &);
18
19 virtual bool isInVolume(const TVec3f &) const;
20 virtual const char* getManagerName() const;
21
22 void onSwitchA();
23 void offSwitchA();
24 bool isOnSwitchA() const;
25 bool isOnSwitchB() const;
26 bool isValidSwitchA() const;
27 bool isValidSwitchB() const;
28 void setFollowMtx(const TPos3f *);
29 TPos3f* getFollowMtx() const;
30
31 void validate();
32 void invalidate();
33
34 bool isValid() const;
35
36 void awake();
37 void sleep();
38
39 AreaForm* mForm; // _C
40 int mType; // _10
41 bool mValid; // _14
42 bool _15;
43 bool mAwake; // _16
44 s32 mObjArg0; // _18
45 s32 mObjArg1; // _1C
46 s32 mObjArg2; // _20
47 s32 mObjArg3; // _24
48 s32 mObjArg4; // _28
49 s32 mObjArg5; // _2C
50 s32 mObjArg6; // _30
51 s32 mObjArg7; // _34
52 StageSwitchCtrl* mSwitchCtrl; // _38
53};
54
55class AreaObjMgr : public NameObj {
56public:
57 AreaObjMgr(s32, const char *);
58
59 virtual ~AreaObjMgr();
60
61 void entry(AreaObj *);
62 AreaObj* find_in(const TVec3f &) const;
63
65 s32 _18;
66};
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition AreaObj.cpp:41
The most basic form of an object.
Definition NameObj.hpp:11