SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CameraFollow Class Reference
Inheritance diagram for CameraFollow:
Camera NameObj

Public Member Functions

 CameraFollow (const char *)
 
virtual void reset ()
 
virtual CameraTargetObjcalc ()
 
virtual bool isEnableToRoundLeft () const
 
virtual bool isEnableToRoundRight () const
 
virtual bool isEnableToReset () const
 
virtual CamTranslatorBasecreateTranslator ()
 
void setParam (float, float, float, float, float, bool)
 
void calcIdealPos ()
 
void calcRotPos ()
 
void constrainDistance (TVec3f *, const TVec3f &)
 
void constrainAngleX (float *)
 
void constrainAngleY (float *, const TVec3f &, float)
 
f32 getMagnitudeOfMovingRound () const
 
void checkShiftStateToRound (const TVec3f &, const TVec3f &)
 
void arrangeHeight ()
 
void reflectRotOffset ()
 
bool isWallForward () const
 
void arrangeLookUp ()
 
void checkAscent (TVec3f *) const
 
void arrangeLookDown ()
 
void checkDescent (TVec3f *) const
 
void startRound (float, float)
 
void checkValidityOfRound (const TVec3f &, const TVec3f &)
 
bool isUpsideDownByRoll () const
 
- Public Member Functions inherited from Camera
 Camera (const char *)
 
virtual bool isInterpolationOff () const
 
virtual bool isCollisionOff () const
 
virtual bool isZeroFrameMoveOff () const
 
virtual bool isSubjectiveCameraOff () const
 
virtual bool isCorrectingErpPositionOff () const
 
virtual void roundLeft ()
 
virtual void roundRight ()
 
void setZoneMtx (long)
 
void createVPanObj ()
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void init (const JMapInfoIter &rIter)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
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

f32 _4C
 
f32 _50
 
f32 _54
 
f32 _58
 
f32 _5C
 
f32 _60
 
f32 _64
 
f32 _68
 
f32 _6C
 
f32 _70
 
f32 _74
 
f32 _78
 
u8 _7C
 
u8 _7D
 
u8 _7E [2]
 
f32 _80
 
f32 _84
 
u8 _88
 
u8 _89
 
u8 _8A [2]
 
- Public Attributes inherited from Camera
CameraManmCameraMan
 
CameraPoseParammPosParam
 
CameraHeightArrangemVPan
 
bool mIsLOfsErpOff
 
u8 _19 [3]
 
TMtx34f mZoneMatrix
 
- 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 5 of file CameraFollow.hpp.

Constructor & Destructor Documentation

◆ CameraFollow()

CameraFollow::CameraFollow ( const char * pName)

Definition at line 9 of file CameraFollow.cpp.

◆ ~CameraFollow()

CameraFollow::~CameraFollow ( )
virtual

Definition at line 31 of file CameraFollow.cpp.

Member Function Documentation

◆ reset()

virtual void CameraFollow::reset ( )
virtual

Reimplemented from Camera.

◆ calc()

virtual CameraTargetObj * CameraFollow::calc ( )
virtual

Implements Camera.

◆ isEnableToRoundLeft()

virtual bool CameraFollow::isEnableToRoundLeft ( ) const
virtual

Reimplemented from Camera.

◆ isEnableToRoundRight()

virtual bool CameraFollow::isEnableToRoundRight ( ) const
virtual

Reimplemented from Camera.

◆ isEnableToReset()

virtual bool CameraFollow::isEnableToReset ( ) const
virtual

Reimplemented from Camera.

◆ createTranslator()

CamTranslatorBase * CameraFollow::createTranslator ( )
virtual

Reimplemented from Camera.

Definition at line 35 of file CameraFollow.cpp.

Member Data Documentation

◆ _4C

f32 CameraFollow::_4C

Definition at line 36 of file CameraFollow.hpp.

◆ _50

f32 CameraFollow::_50

Definition at line 37 of file CameraFollow.hpp.

◆ _54

f32 CameraFollow::_54

Definition at line 38 of file CameraFollow.hpp.

◆ _58

f32 CameraFollow::_58

Definition at line 39 of file CameraFollow.hpp.

◆ _5C

f32 CameraFollow::_5C

Definition at line 40 of file CameraFollow.hpp.

◆ _60

f32 CameraFollow::_60

Definition at line 41 of file CameraFollow.hpp.

◆ _64

f32 CameraFollow::_64

Definition at line 42 of file CameraFollow.hpp.

◆ _68

f32 CameraFollow::_68

Definition at line 43 of file CameraFollow.hpp.

◆ _6C

f32 CameraFollow::_6C

Definition at line 44 of file CameraFollow.hpp.

◆ _70

f32 CameraFollow::_70

Definition at line 45 of file CameraFollow.hpp.

◆ _74

f32 CameraFollow::_74

Definition at line 46 of file CameraFollow.hpp.

◆ _78

f32 CameraFollow::_78

Definition at line 47 of file CameraFollow.hpp.

◆ _7C

u8 CameraFollow::_7C

Definition at line 48 of file CameraFollow.hpp.

◆ _7D

u8 CameraFollow::_7D

Definition at line 49 of file CameraFollow.hpp.

◆ _7E

u8 CameraFollow::_7E[2]

Definition at line 50 of file CameraFollow.hpp.

◆ _80

f32 CameraFollow::_80

Definition at line 51 of file CameraFollow.hpp.

◆ _84

f32 CameraFollow::_84

Definition at line 52 of file CameraFollow.hpp.

◆ _88

u8 CameraFollow::_88

Definition at line 53 of file CameraFollow.hpp.

◆ _89

u8 CameraFollow::_89

Definition at line 54 of file CameraFollow.hpp.

◆ _8A

u8 CameraFollow::_8A[2]

Definition at line 55 of file CameraFollow.hpp.