SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RailRider Class Reference

Public Member Functions

 RailRider (const JMapInfoIter &)
 
 RailRider (s32, s32)
 
void move ()
 
void moveToNearestPos (const TVec3f &)
 
void moveToNearestPoint (const TVec3f &)
 
void moveToNextPoint ()
 
void reverse ()
 
void calcPosAtCoord (TVec3f *, f32) const
 
void calcDirectionAtCoord (TVec3f *, f32) const
 
f32 calcNearestPos (const TVec3f &) const
 
f32 getTotalLength () const
 
f32 getPartLength (int) const
 
bool isLoop () const
 
bool isReachedGoal () const
 
bool isReachedEdge () const
 
void setCoord (f32)
 
void setSpeed (f32)
 
bool getRailArgWithInit (const char *, s32 *) const
 
bool getRailArgNoInit (const char *, s32 *) const
 
f32 getNextPointCoord () const
 
f32 getCurrentPointCoord () const
 
s32 getPointNum () const
 
void copyPointPos (TVec3f *, s32) const
 
f32 getPointCoord (s32) const
 
void initBezierRail (const JMapInfoIter &, const JMapInfo *)
 
bool getPointArgS32NoInit (const char *, s32 *, s32) const
 
bool getPointArgS32WithInit (const char *, s32 *, s32) const
 
bool getCurrentPointArgS32NoInit (const char *, s32 *) const
 
bool getCurrentPointArgS32WithInit (const char *, s32 *) const
 
bool getNextPointArgS32NoInit (const char *, s32 *) const
 
bool getNextPointArgS32WithInit (const char *, s32 *) const
 
s32 getNextPointNo () const
 
void syncPosDir ()
 
TVec3f getStartPos ()
 
TVec3f getEndPos ()
 

Public Attributes

BezierRailmBezierRail
 
f32 mCoord
 
f32 mSpeed
 
bool mIsNotReverse
 
u8 _D
 
u8 _E
 
u8 _F
 
TVec3f mCurPos
 
TVec3f mCurDirection
 
TVec3f mStartPos
 
TVec3f mEndPos
 
s32 mCurPoint
 

Detailed Description

Definition at line 6 of file RailRider.hpp.

Constructor & Destructor Documentation

◆ RailRider() [1/2]

RailRider::RailRider ( const JMapInfoIter & rIter)

Definition at line 3 of file RailRider.cpp.

◆ RailRider() [2/2]

RailRider::RailRider ( s32 a1,
s32 a2 )

Definition at line 28 of file RailRider.cpp.

Member Function Documentation

◆ move()

void RailRider::move ( )

Definition at line 53 of file RailRider.cpp.

◆ moveToNearestPos()

void RailRider::moveToNearestPos ( const TVec3f & rPos)

Definition at line 65 of file RailRider.cpp.

◆ moveToNextPoint()

void RailRider::moveToNextPoint ( )

Definition at line 72 of file RailRider.cpp.

◆ reverse()

void RailRider::reverse ( )

Definition at line 77 of file RailRider.cpp.

◆ calcPosAtCoord()

void RailRider::calcPosAtCoord ( TVec3f * pOutVec,
f32 a2 ) const

Definition at line 88 of file RailRider.cpp.

◆ calcDirectionAtCoord()

void RailRider::calcDirectionAtCoord ( TVec3f * pOutVec,
f32 a2 ) const

Definition at line 92 of file RailRider.cpp.

◆ calcNearestPos()

f32 RailRider::calcNearestPos ( const TVec3f & rPos) const

Definition at line 96 of file RailRider.cpp.

◆ getTotalLength()

f32 RailRider::getTotalLength ( ) const

Definition at line 100 of file RailRider.cpp.

◆ getPartLength()

f32 RailRider::getPartLength ( int idx) const

Definition at line 104 of file RailRider.cpp.

◆ isLoop()

bool RailRider::isLoop ( ) const

Definition at line 108 of file RailRider.cpp.

◆ isReachedEdge()

bool RailRider::isReachedEdge ( ) const

Definition at line 142 of file RailRider.cpp.

◆ setSpeed()

void RailRider::setSpeed ( f32 coord)

Definition at line 170 of file RailRider.cpp.

◆ getRailArgWithInit()

bool RailRider::getRailArgWithInit ( const char * pStr,
s32 * pOut ) const

Definition at line 174 of file RailRider.cpp.

◆ getRailArgNoInit()

bool RailRider::getRailArgNoInit ( const char * pStr,
s32 * pOut ) const

Definition at line 184 of file RailRider.cpp.

◆ getNextPointCoord()

f32 RailRider::getNextPointCoord ( ) const

Definition at line 198 of file RailRider.cpp.

◆ getCurrentPointCoord()

f32 RailRider::getCurrentPointCoord ( ) const

Definition at line 202 of file RailRider.cpp.

◆ getPointNum()

s32 RailRider::getPointNum ( ) const

Definition at line 206 of file RailRider.cpp.

◆ copyPointPos()

void RailRider::copyPointPos ( TVec3f * pOut,
s32 pointNum ) const

Definition at line 210 of file RailRider.cpp.

◆ getPointCoord()

f32 RailRider::getPointCoord ( s32 idx) const

Definition at line 218 of file RailRider.cpp.

◆ getPointArgS32NoInit()

bool RailRider::getPointArgS32NoInit ( const char * pStr,
s32 * pOut,
s32 pointNum ) const

Definition at line 233 of file RailRider.cpp.

◆ getPointArgS32WithInit()

bool RailRider::getPointArgS32WithInit ( const char * pStr,
s32 * pOut,
s32 pointNum ) const

Definition at line 251 of file RailRider.cpp.

◆ getCurrentPointArgS32NoInit()

bool RailRider::getCurrentPointArgS32NoInit ( const char * pStr,
s32 * pOut ) const

Definition at line 260 of file RailRider.cpp.

◆ getCurrentPointArgS32WithInit()

bool RailRider::getCurrentPointArgS32WithInit ( const char * pStr,
s32 * pOut ) const

Definition at line 278 of file RailRider.cpp.

◆ getNextPointArgS32NoInit()

bool RailRider::getNextPointArgS32NoInit ( const char * pStr,
s32 * pOut ) const

Definition at line 287 of file RailRider.cpp.

◆ getNextPointArgS32WithInit()

bool RailRider::getNextPointArgS32WithInit ( const char * pStr,
s32 * pOut ) const

Definition at line 305 of file RailRider.cpp.

◆ syncPosDir()

void RailRider::syncPosDir ( )

Definition at line 316 of file RailRider.cpp.

◆ getStartPos()

TVec3f RailRider::getStartPos ( )
inline

Definition at line 43 of file RailRider.hpp.

◆ getEndPos()

TVec3f RailRider::getEndPos ( )
inline

Definition at line 47 of file RailRider.hpp.

Member Data Documentation

◆ mBezierRail

BezierRail* RailRider::mBezierRail

Definition at line 51 of file RailRider.hpp.

◆ mCoord

f32 RailRider::mCoord

Definition at line 52 of file RailRider.hpp.

◆ mSpeed

f32 RailRider::mSpeed

Definition at line 53 of file RailRider.hpp.

◆ mIsNotReverse

bool RailRider::mIsNotReverse

Definition at line 54 of file RailRider.hpp.

◆ _D

u8 RailRider::_D

Definition at line 55 of file RailRider.hpp.

◆ _E

u8 RailRider::_E

Definition at line 56 of file RailRider.hpp.

◆ _F

u8 RailRider::_F

Definition at line 57 of file RailRider.hpp.

◆ mCurPos

TVec3f RailRider::mCurPos

Definition at line 58 of file RailRider.hpp.

◆ mCurDirection

TVec3f RailRider::mCurDirection

Definition at line 59 of file RailRider.hpp.

◆ mStartPos

TVec3f RailRider::mStartPos

Definition at line 60 of file RailRider.hpp.

◆ mEndPos

TVec3f RailRider::mEndPos

Definition at line 61 of file RailRider.hpp.

◆ mCurPoint

s32 RailRider::mCurPoint

Definition at line 62 of file RailRider.hpp.