Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
dBgW Class Reference

#include <d_bg_w.h>

+ Inheritance diagram for dBgW:
+ Collaboration diagram for dBgW:

Public Member Functions

 dBgW ()
 
void Move ()
 
void positionWallCorrect (dBgS_Acch *, f32, cM3dGPla &, cXyz *pupper_pos, f32)
 
bool RwgWallCorrect (dBgS_Acch *, u16)
 
bool WallCorrectRp (dBgS_Acch *, int)
 
bool WallCorrectGrpRp (dBgS_Acch *, int, int)
 
void RwgWallCorrectSort (dBgS_Acch *, u16)
 
void WallCorrectRpSort (dBgS_Acch *, int)
 
bool WallCorrectGrpRpSort (dBgS_Acch *, int, int)
 
bool RwgRoofChk (u16, dBgS_RoofChk *)
 
bool RoofChkRp (dBgS_RoofChk *, int)
 
bool RoofChkGrpRp (dBgS_RoofChk *, int, int)
 
bool RwgSplGrpChk (u16, dBgS_SplGrpChk *)
 
bool SplGrpChkRp (dBgS_SplGrpChk *, int)
 
bool SplGrpChkGrpRp (dBgS_SplGrpChk *, int, int)
 
void RwgCaptPoly (int, dBgS_CaptPoly &)
 
void CaptPolyRp (dBgS_CaptPoly &, int)
 
void CaptPolyGrpRp (dBgS_CaptPoly &, int, int)
 
bool RwgSphChk (u16, dBgS_SphChk *, void *)
 
bool SphChkRp (dBgS_SphChk *, void *, int)
 
bool SphChkGrpRp (dBgS_SphChk *, void *, int, int)
 
virtual ~dBgW ()
 
virtual u32 ChkMoveFlag () const
 
virtual void OffMoveFlag ()
 
virtual void CaptPoly (dBgS_CaptPoly &)
 
virtual bool WallCorrect (dBgS_Acch *)
 
virtual bool WallCorrectSort (dBgS_Acch *)
 
virtual bool RoofChk (dBgS_RoofChk *)
 
virtual bool SplGrpChk (dBgS_SplGrpChk *)
 
virtual bool SphChk (dBgS_SphChk *, void *)
 
virtual s32 GetExitId (cBgS_PolyInfo const &)
 
virtual s32 GetPolyColor (cBgS_PolyInfo const &)
 
virtual BOOL GetHorseNoEntry (cBgS_PolyInfo const &)
 
virtual int GetSpecialCode (cBgS_PolyInfo const &)
 
virtual int GetSpecialCode (int)
 
virtual int GetMagnetCode (cBgS_PolyInfo const &)
 
virtual u32 GetPolyObjThrough (int)
 
virtual u32 GetPolyCamThrough (int)
 
virtual u32 GetPolyLinkThrough (int)
 
virtual u32 GetPolyArrowThrough (int)
 
virtual u32 GetPolyHSStick (int)
 
virtual u32 GetPolyBoomerangThrough (int)
 
virtual u32 GetPolyRopeThrough (int)
 
virtual u32 GetPolyBombThrough (int)
 
virtual bool GetShdwThrough (int)
 
virtual u32 GetUnderwaterRoofCode (int)
 
virtual int GetMonkeyBarsCode (cBgS_PolyInfo const &)
 
virtual int GetLinkNo (cBgS_PolyInfo const &)
 
virtual s32 GetWallCode (cBgS_PolyInfo const &)
 
virtual int GetPolyAtt0 (cBgS_PolyInfo const &)
 
virtual int GetPolyAtt1 (cBgS_PolyInfo const &)
 
virtual int GetGroundCode (cBgS_PolyInfo const &)
 
virtual u32 GetIronBallThrough (int)
 
virtual u32 GetAttackThrough (int)
 
virtual s32 GetCamMoveBG (cBgS_PolyInfo const &)
 
virtual s32 GetRoomCamId (cBgS_PolyInfo const &)
 
virtual s32 GetRoomPathId (cBgS_PolyInfo const &)
 
virtual s32 GetRoomPathPntNo (cBgS_PolyInfo const &)
 
virtual u8 GetPolyGrpRoomInfId (cBgS_PolyInfo const &)
 
virtual int GetGrpSoundId (cBgS_PolyInfo const &)
 
virtual void CrrPos (cBgS_PolyInfo const &, void *, bool, cXyz *, csXyz *, csXyz *)
 
virtual void TransPos (cBgS_PolyInfo const &, void *, bool, cXyz *, csXyz *, csXyz *)
 
virtual void MatrixCrrPos (cBgS_PolyInfo const &, void *, bool, cXyz *, csXyz *, csXyz *)
 
virtual void CallRideCallBack (fopAc_ac_c *, fopAc_ac_c *)
 
virtual void CallArrowStickCallBack (fopAc_ac_c *, fopAc_ac_c *, cXyz &)
 
virtual bool ChkPolyThrough (int, cBgS_PolyPassChk *)
 
virtual bool ChkShdwDrawThrough (int, cBgS_PolyPassChk *)
 
virtual bool ChkGrpThrough (int, cBgS_GrpPassChk *, int)
 
void SetCrrFunc (dBgW_CrrFunc func)
 
void SetRideCallback (dBgW_RideCallback func)
 
void OnMoveFlag ()
 
- Public Member Functions inherited from cBgW
 cBgW ()
 
void FreeArea ()
 
void GlobalVtx ()
 
bool SetVtx ()
 
bool SetTri ()
 
void BlckConnect (u16 *, int *, int)
 
void MakeBlckTransMinMax (cXyz *, cXyz *)
 
void MakeBlckMinMax (int, cXyz *, cXyz *)
 
void MakeBlckBnd (int, cXyz *, cXyz *)
 
void MakeNodeTreeRp (int)
 
void MakeNodeTreeGrpRp (int)
 
void MakeNodeTree ()
 
bool Set (cBgD_t *pdzb, u32 flags, Mtx *pbase_mtx)
 
bool RwgLineCheck (u16, cBgS_LinChk *)
 
bool LineCheckRp (cBgS_LinChk *, int)
 
bool LineCheckGrpRp (cBgS_LinChk *, int, int)
 
bool RwgGroundCheckCommon (f32, u16, cBgS_GndChk *)
 
bool RwgGroundCheckGnd (u16, cBgS_GndChk *)
 
bool RwgGroundCheckWall (u16, cBgS_GndChk *)
 
bool GroundCrossRp (cBgS_GndChk *, int)
 
bool GroundCrossGrpRp (cBgS_GndChk *, int, int)
 
void CopyOldMtx ()
 
void Move ()
 
void RwgShdwDraw (int, cBgS_ShdwDraw *)
 
void ShdwDrawRp (cBgS_ShdwDraw *, int)
 
void ShdwDrawGrpRp (cBgS_ShdwDraw *, int)
 
void GetTrans (cXyz *) const
 
int GetPolyInfId (int) const
 
u32 GetPolyInf0 (int, u32, u32) const
 
u32 GetMaskPolyInf0_NoShift (int, u32) const
 
u32 GetPolyInf1 (int, u32, u32) const
 
u32 GetMaskPolyInf1_NoShift (int, u32) const
 
u32 GetPolyInf2 (int, u32, u32) const
 
int GetTriGrp (int) const
 
virtual ~cBgW ()
 
virtual bool ChkMemoryError ()
 
virtual bool ChkNotReady () const
 
virtual bool ChkLock () const
 
virtual bool ChkMoveBg () const
 
virtual cM3dGPla GetTriPla (cBgS_PolyInfo const &) const
 
virtual bool GetTriPnt (cBgS_PolyInfo const &, cXyz *, cXyz *, cXyz *) const
 
virtual cM3dGAabGetBnd () const
 
virtual u32 GetGrpInf (cBgS_PolyInfo const &) const
 
virtual void GetTopUnder (f32 *, f32 *) const
 
virtual bool LineCheck (cBgS_LinChk *)
 
virtual bool GroundCross (cBgS_GndChk *)
 
virtual void ShdwDraw (cBgS_ShdwDraw *)
 
virtual s32 GetGrpRoomIndex (cBgS_PolyInfo const &) const
 
virtual void CalcPlane ()
 
virtual void ClassifyPlane ()
 
u32 GetOldInvMtx (Mtx m)
 
MtxP GetBaseMtxP ()
 
bool ChkNoCalcVtx ()
 
bool ChkFlush ()
 
void SetLock ()
 
bool ChkRoofRegist ()
 
cBgD_Vtx_tGetVtxTbl () const
 
int GetVtxNum () const
 
- Public Member Functions inherited from dBgW_Base
 dBgW_Base ()
 
void ClrDBgWBase ()
 
void CalcDiffShapeAngleY (s16)
 
virtual ~dBgW_Base ()
 
virtual void SetOldShapeAngleY (s16)
 
PushPull_CallBack GetPushPullCallback () const
 
s16 GetDiffShapeAngleY ()
 
int GetRoomId ()
 
bool chkStickWall ()
 
bool chkStickRoof ()
 
bool ChkPushPullOk () const
 
void SetPushPullCallback (PushPull_CallBack i_callBack)
 
void SetRoomId (int id)
 
bool ChkPriority (int prio)
 
void SetPriority (PRIORITY priority)
 
void onStickWall ()
 
void onStickRoof ()
 
void OnPushPullOk ()
 
void OffPushPullOk ()
 
- Public Member Functions inherited from cBgW_BgId
void Release ()
 
bool ChkUsed () const
 
void Regist (int)
 
virtual ~cBgW_BgId ()
 
 cBgW_BgId ()
 
void Ct ()
 
u16 GetId () const
 

Private Attributes

dBgW_CrrFunc m_crr_func
 
dBgW_RideCallback m_ride_callback
 
dBgW_ArrowStickCallback m_arrow_stick_callback
 
u8 m_flags
 

Additional Inherited Members

- Public Types inherited from cBgW
enum  Flags_e {
  MOVE_BG_e = 0x1 , NO_CALC_VTX_e = 0x2 , NO_VTX_TBL_e = 0x10 , GLOBAL_e = 0x20 ,
  CBGW_UNK_FLAG_40 = 0x40 , LOCK_e = 0x80
}
 
- Public Types inherited from dBgW_Base
enum  PushPullLabel {
  PPLABEL_NONE = 0 , PPLABEL_PUSH = 1 , PPLABEL_PULL = 2 , PPLABEL_4 = 4 ,
  PPLABEL_HEAVY = 8
}
 
enum  PRIORITY { PRIORITY_0 }
 
typedef fopAc_ac_c *(* PushPull_CallBack) (fopAc_ac_c *, fopAc_ac_c *, s16, dBgW_Base::PushPullLabel)
 
- Public Attributes inherited from cBgW
MtxP pm_base
 
Mtx m_inv_mtx
 
Mtx m_mtx
 
cXyz mTransVel
 
u8 mFlags
 
u8 mNeedsFullTransform
 
u32 field_0x8c
 
u8 mMoveCounter
 
u8 field_0x91
 
u16 m_rootGrpIdx
 
cBgW_TriElmpm_tri
 
cBgW_RwgElmpm_rwg
 
cBgD_Vtx_tpm_vtx_tbl
 
cBgD_tpm_bgd
 
cBgW_BlkElmpm_blk
 
cBgW_GrpElmpm_grp
 
cBgW_NodeTreepm_node_tree
 

Constructor & Destructor Documentation

◆ dBgW()

dBgW::dBgW ( )

◆ ~dBgW()

virtual dBgW::~dBgW ( )
inlinevirtual

Member Function Documentation

◆ CallArrowStickCallBack()

void dBgW::CallArrowStickCallBack ( fopAc_ac_c param_0,
fopAc_ac_c param_1,
cXyz param_2 
)
virtual

Reimplemented from dBgW_Base.

◆ CallRideCallBack()

void dBgW::CallRideCallBack ( fopAc_ac_c param_0,
fopAc_ac_c param_1 
)
virtual

Reimplemented from dBgW_Base.

◆ CaptPoly()

void dBgW::CaptPoly ( dBgS_CaptPoly i_captpoly)
virtual

Implements cBgW.

◆ CaptPolyGrpRp()

void dBgW::CaptPolyGrpRp ( dBgS_CaptPoly i_captpoly,
int  i_idx,
int  i_depth 
)

◆ CaptPolyRp()

void dBgW::CaptPolyRp ( dBgS_CaptPoly i_captpoly,
int  i_idx 
)

◆ ChkGrpThrough()

bool dBgW::ChkGrpThrough ( int  i_grp_idx,
cBgS_GrpPassChk i_passChk,
int  i_depth 
)
virtual

Reimplemented from cBgW.

◆ ChkMoveFlag()

u32 dBgW::ChkMoveFlag ( ) const
virtual

Implements cBgW.

◆ ChkPolyThrough()

bool dBgW::ChkPolyThrough ( int  poly_index,
cBgS_PolyPassChk ppass_chk 
)
virtual

Reimplemented from cBgW.

◆ ChkShdwDrawThrough()

bool dBgW::ChkShdwDrawThrough ( int  poly_index,
cBgS_PolyPassChk  
)
virtual

Reimplemented from cBgW.

◆ CrrPos()

void dBgW::CrrPos ( cBgS_PolyInfo const i_poly,
void i_actor_ptr,
bool  param_2,
cXyz i_pos,
csXyz i_angle,
csXyz i_shapeAngle 
)
virtual

Implements cBgW.

Reimplemented in dBgWSv.

◆ GetAttackThrough()

u32 dBgW::GetAttackThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetCamMoveBG()

s32 dBgW::GetCamMoveBG ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetExitId()

s32 dBgW::GetExitId ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetGroundCode()

int dBgW::GetGroundCode ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetGrpSoundId()

int dBgW::GetGrpSoundId ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetHorseNoEntry()

BOOL dBgW::GetHorseNoEntry ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetIronBallThrough()

u32 dBgW::GetIronBallThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetLinkNo()

int dBgW::GetLinkNo ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetMagnetCode()

int dBgW::GetMagnetCode ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetMonkeyBarsCode()

int dBgW::GetMonkeyBarsCode ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetPolyArrowThrough()

u32 dBgW::GetPolyArrowThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyAtt0()

int dBgW::GetPolyAtt0 ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetPolyAtt1()

int dBgW::GetPolyAtt1 ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetPolyBombThrough()

u32 dBgW::GetPolyBombThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyBoomerangThrough()

u32 dBgW::GetPolyBoomerangThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyCamThrough()

u32 dBgW::GetPolyCamThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyColor()

s32 dBgW::GetPolyColor ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetPolyGrpRoomInfId()

u8 dBgW::GetPolyGrpRoomInfId ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetPolyHSStick()

u32 dBgW::GetPolyHSStick ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyLinkThrough()

u32 dBgW::GetPolyLinkThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyObjThrough()

u32 dBgW::GetPolyObjThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetPolyRopeThrough()

u32 dBgW::GetPolyRopeThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetRoomCamId()

s32 dBgW::GetRoomCamId ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetRoomPathId()

s32 dBgW::GetRoomPathId ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetRoomPathPntNo()

s32 dBgW::GetRoomPathPntNo ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetShdwThrough()

bool dBgW::GetShdwThrough ( int  poly_index)
virtual

Implements cBgW.

◆ GetSpecialCode() [1/2]

int dBgW::GetSpecialCode ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ GetSpecialCode() [2/2]

int dBgW::GetSpecialCode ( int  poly_index)
virtual

Implements cBgW.

◆ GetUnderwaterRoofCode()

u32 dBgW::GetUnderwaterRoofCode ( int  poly_index)
virtual

Implements cBgW.

◆ GetWallCode()

s32 dBgW::GetWallCode ( cBgS_PolyInfo const poly)
virtual

Implements cBgW.

◆ MatrixCrrPos()

void dBgW::MatrixCrrPos ( cBgS_PolyInfo const i_poly,
void i_actor_ptr,
bool  param_2,
cXyz i_pos,
csXyz i_angle,
csXyz i_shapeAngle 
)
virtual

Implements cBgW.

Reimplemented in dBgWSv.

◆ Move()

void dBgW::Move ( )

◆ OffMoveFlag()

void dBgW::OffMoveFlag ( )
virtual

Implements cBgW.

◆ OnMoveFlag()

void dBgW::OnMoveFlag ( )
inline

◆ positionWallCorrect()

void dBgW::positionWallCorrect ( dBgS_Acch i_acch,
f32  i_dist,
cM3dGPla plane,
cXyz pupper_pos,
f32  speed 
)

◆ RoofChk()

bool dBgW::RoofChk ( dBgS_RoofChk pchk)
virtual

Implements cBgW.

◆ RoofChkGrpRp()

bool dBgW::RoofChkGrpRp ( dBgS_RoofChk i_roofchk,
int  i_idx,
int  i_depth 
)

◆ RoofChkRp()

bool dBgW::RoofChkRp ( dBgS_RoofChk i_roofchk,
int  i_idx 
)

◆ RwgCaptPoly()

void dBgW::RwgCaptPoly ( int  i_idx,
dBgS_CaptPoly i_captpoly 
)

◆ RwgRoofChk()

bool dBgW::RwgRoofChk ( u16  i_poly_idx,
dBgS_RoofChk i_roofchk 
)

◆ RwgSphChk()

bool dBgW::RwgSphChk ( u16  i_poly_idx,
dBgS_SphChk i_sphchk,
void i_data 
)

◆ RwgSplGrpChk()

bool dBgW::RwgSplGrpChk ( u16  i_poly_idx,
dBgS_SplGrpChk i_splchk 
)

◆ RwgWallCorrect()

bool dBgW::RwgWallCorrect ( dBgS_Acch pwi,
u16  i_poly_idx 
)

◆ RwgWallCorrectSort()

void dBgW::RwgWallCorrectSort ( dBgS_Acch i_acch,
u16  i_poly_idx 
)

◆ SetCrrFunc()

void dBgW::SetCrrFunc ( dBgW_CrrFunc  func)
inline

◆ SetRideCallback()

void dBgW::SetRideCallback ( dBgW_RideCallback  func)
inline

◆ SphChk()

bool dBgW::SphChk ( dBgS_SphChk pchk,
void i_data 
)
virtual

Implements cBgW.

◆ SphChkGrpRp()

bool dBgW::SphChkGrpRp ( dBgS_SphChk i_sphchk,
void i_data,
int  i_idx,
int  i_depth 
)

◆ SphChkRp()

bool dBgW::SphChkRp ( dBgS_SphChk i_sphchk,
void i_data,
int  i_idx 
)

◆ SplGrpChk()

bool dBgW::SplGrpChk ( dBgS_SplGrpChk pchk)
virtual

Implements cBgW.

◆ SplGrpChkGrpRp()

bool dBgW::SplGrpChkGrpRp ( dBgS_SplGrpChk i_splchk,
int  i_idx,
int  i_depth 
)

◆ SplGrpChkRp()

bool dBgW::SplGrpChkRp ( dBgS_SplGrpChk i_splchk,
int  i_idx 
)

◆ TransPos()

void dBgW::TransPos ( cBgS_PolyInfo const i_poly,
void i_actor_ptr,
bool  param_2,
cXyz i_pos,
csXyz i_angle,
csXyz i_shapeAngle 
)
virtual

Implements cBgW.

Reimplemented in dBgWSv.

◆ WallCorrect()

bool dBgW::WallCorrect ( dBgS_Acch pacch)
virtual

Implements cBgW.

◆ WallCorrectGrpRp()

bool dBgW::WallCorrectGrpRp ( dBgS_Acch i_acch,
int  i_idx,
int  i_depth 
)

◆ WallCorrectGrpRpSort()

bool dBgW::WallCorrectGrpRpSort ( dBgS_Acch i_acch,
int  i_idx,
int  i_depth 
)

◆ WallCorrectRp()

bool dBgW::WallCorrectRp ( dBgS_Acch i_acch,
int  i_idx 
)

◆ WallCorrectRpSort()

void dBgW::WallCorrectRpSort ( dBgS_Acch i_acch,
int  i_idx 
)

◆ WallCorrectSort()

bool dBgW::WallCorrectSort ( dBgS_Acch pwi)
virtual

Implements cBgW.

Member Data Documentation

◆ m_arrow_stick_callback

dBgW_ArrowStickCallback dBgW::m_arrow_stick_callback
private

◆ m_crr_func

dBgW_CrrFunc dBgW::m_crr_func
private

◆ m_flags

u8 dBgW::m_flags
private

◆ m_ride_callback

dBgW_RideCallback dBgW::m_ride_callback
private

The documentation for this class was generated from the following files: