SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
AreaObj Class Reference
Inheritance diagram for AreaObj:
NameObj AstroChangeStageCube AudioEffectArea BgmProhibitArea BigBubbleGoalArea CameraRepulsiveArea ChangeBgmCube CollisionArea CubeCameraArea DeathArea GlaringLightArea HazeCube ImageEffectArea LightArea MercatorTransformCube MessageArea PlayerSeArea QuakeEffectArea RestartCube SoundEmitterCube SoundEmitterSphere SpinGuidanceArea SunLightArea SwitchArea WarpCube WaterArea

Public Member Functions

 AreaObj (int, const char *)
 
virtual void init (const JMapInfoIter &)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual bool isInVolume (const TVec3f &) const
 
virtual const char * getManagerName () const
 
void onSwitchA ()
 
void offSwitchA ()
 
bool isOnSwitchA () const
 
bool isOnSwitchB () const
 
bool isValidSwitchA () const
 
bool isValidSwitchB () const
 
void setFollowMtx (const TPos3f *)
 
TPos3f * getFollowMtx () const
 
void validate ()
 
void invalidate ()
 
bool isValid () const
 
void awake ()
 
void sleep ()
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void initAfterPlacement ()
 
virtual void movement ()
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
virtual void calcAnim ()
 
virtual void calcViewAndEntry ()
 
void initWithoutIter ()
 Initializes a NameObj without a JMapInfoIter instance.
 
void setName (const char *pName)
 Sets the NameObj's mName.
 
void executeMovement ()
 
void requestSuspend ()
 
void requestResume ()
 
void syncWithFlags ()
 

Public Attributes

AreaFormmForm
 
int mType
 
bool mValid
 
bool _15
 
bool mAwake
 
s32 mObjArg0
 
s32 mObjArg1
 
s32 mObjArg2
 
s32 mObjArg3
 
s32 mObjArg4
 
s32 mObjArg5
 
s32 mObjArg6
 
s32 mObjArg7
 
StageSwitchCtrlmSwitchCtrl
 
- Public Attributes inherited from NameObj
const char * mName
 A string to identify the NameObj.
 
volatile u16 mFlags
 Flags in relation to movement.
 
s16 mExecutorIdx
 The index into the NameObjExecuteInfo array.
 

Detailed Description

Definition at line 10 of file AreaObj.hpp.

Constructor & Destructor Documentation

◆ AreaObj()

AreaObj::AreaObj ( int type,
const char * pName )

Definition at line 6 of file AreaObj.cpp.

◆ ~AreaObj()

virtual AreaObj::~AreaObj ( )
inlinevirtual

Definition at line 13 of file AreaObj.hpp.

Member Function Documentation

◆ init()

void AreaObj::init ( const JMapInfoIter & rIter)
virtual

Intializes the NameObj and can set various settings and construct necessary classes.

Parameters
rIterA reference to the JMapInfoIter that supplies BCSV information.

Reimplemented from NameObj.

Reimplemented in AstroChangeStageCube, AudioEffectArea, BgmProhibitArea, BigBubbleGoalArea, BloomArea, ChangeBgmCube, CollisionArea, CubeCameraArea, DeathArea, DepthOfFieldArea, GlaringLightArea, HazeCube, LightArea, MercatorTransformCube, MessageArea, PlayerSeArea, RestartCube, ScreenBlurArea, SimpleBloomArea, SoundEmitterCube, SoundEmitterSphere, SpinGuidanceArea, SwitchArea, WarpCube, and WaterArea.

Definition at line 41 of file AreaObj.cpp.

◆ isInVolume()

bool AreaObj::isInVolume ( const TVec3f & rPos) const
virtual

Definition at line 74 of file AreaObj.cpp.

◆ getManagerName()

const char * AreaObj::getManagerName ( ) const
virtual

Definition at line 145 of file AreaObj.cpp.

◆ onSwitchA()

void AreaObj::onSwitchA ( )

Definition at line 86 of file AreaObj.cpp.

◆ offSwitchA()

void AreaObj::offSwitchA ( )

Definition at line 90 of file AreaObj.cpp.

◆ isOnSwitchA()

bool AreaObj::isOnSwitchA ( ) const

Definition at line 94 of file AreaObj.cpp.

◆ isOnSwitchB()

bool AreaObj::isOnSwitchB ( ) const

Definition at line 98 of file AreaObj.cpp.

◆ isValidSwitchA()

bool AreaObj::isValidSwitchA ( ) const

Definition at line 102 of file AreaObj.cpp.

◆ isValidSwitchB()

bool AreaObj::isValidSwitchB ( ) const

Definition at line 106 of file AreaObj.cpp.

◆ setFollowMtx()

void AreaObj::setFollowMtx ( const TPos3f * pMtx)

Definition at line 110 of file AreaObj.cpp.

◆ getFollowMtx()

TPos3f * AreaObj::getFollowMtx ( ) const

Definition at line 114 of file AreaObj.cpp.

◆ validate()

void AreaObj::validate ( )

Definition at line 137 of file AreaObj.cpp.

◆ invalidate()

void AreaObj::invalidate ( )

Definition at line 141 of file AreaObj.cpp.

◆ isValid()

bool AreaObj::isValid ( ) const

Definition at line 12 of file CollisionArea.cpp.

◆ awake()

void AreaObj::awake ( )

Definition at line 3 of file SleepControllerHolder.cpp.

◆ sleep()

void AreaObj::sleep ( )

Definition at line 7 of file SleepControllerHolder.cpp.

Member Data Documentation

◆ mForm

AreaForm* AreaObj::mForm

Definition at line 39 of file AreaObj.hpp.

◆ mType

int AreaObj::mType

Definition at line 40 of file AreaObj.hpp.

◆ mValid

bool AreaObj::mValid

Definition at line 41 of file AreaObj.hpp.

◆ _15

bool AreaObj::_15

Definition at line 42 of file AreaObj.hpp.

◆ mAwake

bool AreaObj::mAwake

Definition at line 43 of file AreaObj.hpp.

◆ mObjArg0

s32 AreaObj::mObjArg0

Definition at line 44 of file AreaObj.hpp.

◆ mObjArg1

s32 AreaObj::mObjArg1

Definition at line 45 of file AreaObj.hpp.

◆ mObjArg2

s32 AreaObj::mObjArg2

Definition at line 46 of file AreaObj.hpp.

◆ mObjArg3

s32 AreaObj::mObjArg3

Definition at line 47 of file AreaObj.hpp.

◆ mObjArg4

s32 AreaObj::mObjArg4

Definition at line 48 of file AreaObj.hpp.

◆ mObjArg5

s32 AreaObj::mObjArg5

Definition at line 49 of file AreaObj.hpp.

◆ mObjArg6

s32 AreaObj::mObjArg6

Definition at line 50 of file AreaObj.hpp.

◆ mObjArg7

s32 AreaObj::mObjArg7

Definition at line 51 of file AreaObj.hpp.

◆ mSwitchCtrl

StageSwitchCtrl* AreaObj::mSwitchCtrl

Definition at line 52 of file AreaObj.hpp.