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

#include <d_attention.h>

+ Collaboration diagram for dAttention_c:

Public Types

enum  EState { ST_NONE , ST_LOCK , ST_RELEASE }
 

Public Member Functions

void LockonTarget (s32)
 
void LockonTruth ()
 
void GetLockonList (s32)
 
void LockonTruth ()
 
 dAttention_c ()
 
 dAttention_c (fopAc_ac_c *, u32)
 
 ~dAttention_c ()
 
dAttList_cGetLockonList (s32)
 
dAttList_cgetActionBtnB ()
 
dAttList_cgetActionBtnXY ()
 
int chkAttMask (u32, u32)
 
f32 calcWeight (int, fopAc_ac_c *, f32, s16, s16, u32 *)
 
void setList (int, fopAc_ac_c *, f32, f32, cSAngle, u32)
 
void initList (u32)
 
int makeList ()
 
void setOwnerAttentionPos ()
 
int SelectAttention (fopAc_ac_c *)
 
void sortList ()
 
void stockAttention ()
 
fopAc_ac_cnextAttention ()
 
int freeAttention ()
 
bool chaseAttention ()
 
f32 EnemyDistance (fopAc_ac_c *)
 
void runSoundProc ()
 
void runDrawProc ()
 
void runDebugDisp ()
 
void checkButton ()
 
bool triggerProc ()
 
int lostCheck ()
 
void judgementStatus4Hold ()
 
void judgementStatus4Switch ()
 
int Run ()
 
void Draw ()
 
void lockSoundStart (u32)
 
fopAc_ac_cLockonTarget (s32)
 
f32 LockonReleaseDistanse ()
 
fpc_ProcID LockonTargetPId (s32)
 
fopAc_ac_cActionTarget (s32)
 
fopAc_ac_cCheckObjectTarget (s32)
 
bool LockonTruth ()
 
int checkDistance (cXyz *, s16, cXyz *, f32, f32, f32, f32)
 
void LockEdge ()
 
void GetCheckObjectCount ()
 
void keepLock (int)
 
fopAc_ac_cgetCatghTarget ()
 
fopAc_ac_cgetZHintTarget ()
 
u8 getCatchChgItem ()
 
BOOL chkFlag (u32 flag)
 
void setFlag (u32 flag)
 
void clrFlag (u32 flag)
 
int GetActionCount ()
 
int GetLockonCount ()
 
void LockSoundOn ()
 
void LockSoundOff ()
 
bool Lockon ()
 
int ZHintRequest (fopAc_ac_c *param_1, int param_2)
 
void LookRequest (fopAc_ac_c *param_0, f32 i_horizontalDist, f32 i_upDist, f32 i_downDist, s16 i_angle, int param_5)
 
void CatchRequest (fopAc_ac_c *param_0, u8 param_1, f32 i_horizontalDist, f32 i_upDist, f32 i_downDist, s16 i_angle, int param_5)
 
fopAc_ac_cgetLookTarget ()
 
void Init (fopAc_ac_c *param_0, u32 i_padNo)
 

Static Public Member Functions

static dist_entrygetDistTable (int)
 
static dist_entryi_getDistTable (int i_no)
 

Public Attributes

fopAc_ac_cmpPlayer
 
fpc_ProcID mLockTargetID
 
dAttDraw_CallBack_c mpDrawCallback
 
u32 mPadNo
 
u32 mPlayerAttentionFlags
 
u8 field_0x14 [4]
 
JKRSolidHeapheap
 
cXyz mDrawAttnPos
 
dAttDraw_c draw [2]
 
fpc_ProcID mTargetActorID
 
cXyz mOwnerAttnPos
 
s8 field_0x328
 
u8 mAttnStatus
 
u8 field_0x32a
 
u8 field_0x32b
 
u8 field_0x32c
 
u8 field_0x32d
 
u8 field_0x32e
 
u8 field_0x32f
 
u8 field_0x330
 
u8 field_0x331
 
u8 field_0x332
 
u8 field_0x333
 
u32 mFlags
 
dAttList_c mLockOnList [8]
 
int mLockonCount
 
int mLockOnOffset
 
dAttList_c mActionList [4]
 
int mActionCount
 
int mActionOffset
 
dAttList_c mCheckObjectList [4]
 
int mCheckObjectCount
 
int mCheckObjectOffset
 
dAttHint_c mZHintTarget
 
dAttCatch_c mCatghTarget
 
dAttLook_c mLookTarget
 
int mAttnBlockTimer
 
dAttParam_c mAttParam
 
u8 field_0x50c [0x514 - 0x50c]
 
fpc_ProcID mEnemyActorID
 
f32 mEnemyDist
 

Static Public Attributes

static type_tbl_entry loc_type_tbl [3]
 
static type_tbl_entry act_type_tbl [5]
 
static dist_entry dist_table [234]
 
static int loc_type_num = 3
 
static int act_type_num = 5
 
static type_tbl_entry chk_type_tbl [1]
 
static int chk_type_num = 1
 

Member Enumeration Documentation

◆ EState

Enumerator
ST_NONE 
ST_LOCK 
ST_RELEASE 

Constructor & Destructor Documentation

◆ dAttention_c() [1/2]

dAttention_c::dAttention_c ( )
inline

◆ dAttention_c() [2/2]

dAttention_c::dAttention_c ( fopAc_ac_c i_player,
u32  i_padNo 
)

◆ ~dAttention_c()

dAttention_c::~dAttention_c ( )

Member Function Documentation

◆ ActionTarget()

fopAc_ac_c * dAttention_c::ActionTarget ( s32  param_0)

◆ calcWeight()

f32 dAttention_c::calcWeight ( int  param_0,
fopAc_ac_c param_1,
f32  param_2,
s16  param_3,
s16  param_4,
u32 param_5 
)

◆ CatchRequest()

void dAttention_c::CatchRequest ( fopAc_ac_c param_0,
u8  param_1,
f32  i_horizontalDist,
f32  i_upDist,
f32  i_downDist,
s16  i_angle,
int  param_5 
)
inline

◆ chaseAttention()

bool dAttention_c::chaseAttention ( )

◆ checkButton()

void dAttention_c::checkButton ( )

◆ checkDistance()

int dAttention_c::checkDistance ( cXyz param_0,
s16  param_1,
cXyz param_2,
f32  param_3,
f32  param_4,
f32  param_5,
f32  param_6 
)

◆ CheckObjectTarget()

fopAc_ac_c * dAttention_c::CheckObjectTarget ( s32  param_0)

◆ chkAttMask()

int dAttention_c::chkAttMask ( u32  param_0,
u32  param_1 
)

◆ chkFlag()

BOOL dAttention_c::chkFlag ( u32  flag)
inline

◆ clrFlag()

void dAttention_c::clrFlag ( u32  flag)
inline

◆ Draw()

void dAttention_c::Draw ( )

◆ EnemyDistance()

f32 dAttention_c::EnemyDistance ( fopAc_ac_c i_actor)

◆ freeAttention()

int dAttention_c::freeAttention ( )

◆ getActionBtnB()

dAttList_c * dAttention_c::getActionBtnB ( )

◆ getActionBtnXY()

dAttList_c * dAttention_c::getActionBtnXY ( )

◆ GetActionCount()

int dAttention_c::GetActionCount ( )
inline

◆ getCatchChgItem()

u8 dAttention_c::getCatchChgItem ( )
inline

◆ getCatghTarget()

fopAc_ac_c * dAttention_c::getCatghTarget ( )
inline

◆ GetCheckObjectCount()

void dAttention_c::GetCheckObjectCount ( )

◆ getDistTable()

dist_entry & dAttention_c::getDistTable ( int  param_0)
static

◆ GetLockonCount()

int dAttention_c::GetLockonCount ( )
inline

◆ GetLockonList() [1/2]

dAttList_c * dAttention_c::GetLockonList ( s32  )

◆ GetLockonList() [2/2]

dAttList_c * dAttention_c::GetLockonList ( s32  param_0)

◆ getLookTarget()

fopAc_ac_c * dAttention_c::getLookTarget ( )
inline

◆ getZHintTarget()

fopAc_ac_c * dAttention_c::getZHintTarget ( )
inline

◆ i_getDistTable()

static dist_entry & dAttention_c::i_getDistTable ( int  i_no)
inlinestatic

◆ Init()

void dAttention_c::Init ( fopAc_ac_c param_0,
u32  i_padNo 
)
inline

◆ initList()

void dAttention_c::initList ( u32  flags)

◆ judgementStatus4Hold()

void dAttention_c::judgementStatus4Hold ( )

◆ judgementStatus4Switch()

void dAttention_c::judgementStatus4Switch ( )

◆ keepLock()

void dAttention_c::keepLock ( int  )

◆ LockEdge()

void dAttention_c::LockEdge ( )

◆ Lockon()

bool dAttention_c::Lockon ( )
inline

◆ LockonReleaseDistanse()

f32 dAttention_c::LockonReleaseDistanse ( )

◆ LockonTarget() [1/2]

fopAc_ac_c * dAttention_c::LockonTarget ( s32  )

◆ LockonTarget() [2/2]

fopAc_ac_c * dAttention_c::LockonTarget ( s32  param_0)

◆ LockonTargetPId()

fpc_ProcID dAttention_c::LockonTargetPId ( s32  param_0)

◆ LockonTruth() [1/3]

bool dAttention_c::LockonTruth ( )

◆ LockonTruth() [2/3]

bool dAttention_c::LockonTruth ( )

◆ LockonTruth() [3/3]

void dAttention_c::LockonTruth ( )

◆ LockSoundOff()

void dAttention_c::LockSoundOff ( )
inline

◆ LockSoundOn()

void dAttention_c::LockSoundOn ( )
inline

◆ lockSoundStart()

void dAttention_c::lockSoundStart ( u32  i_sfxID)

◆ LookRequest()

void dAttention_c::LookRequest ( fopAc_ac_c param_0,
f32  i_horizontalDist,
f32  i_upDist,
f32  i_downDist,
s16  i_angle,
int  param_5 
)
inline

◆ lostCheck()

int dAttention_c::lostCheck ( )

◆ makeList()

int dAttention_c::makeList ( )

◆ nextAttention()

fopAc_ac_c * dAttention_c::nextAttention ( )

◆ Run()

int dAttention_c::Run ( )

◆ runDebugDisp()

void dAttention_c::runDebugDisp ( )

◆ runDrawProc()

void dAttention_c::runDrawProc ( )

◆ runSoundProc()

void dAttention_c::runSoundProc ( )

◆ SelectAttention()

int dAttention_c::SelectAttention ( fopAc_ac_c param_0)

◆ setFlag()

void dAttention_c::setFlag ( u32  flag)
inline

◆ setList()

void dAttention_c::setList ( int  param_0,
fopAc_ac_c param_1,
f32  param_2,
f32  param_3,
cSAngle  param_4,
u32  param_5 
)

◆ setOwnerAttentionPos()

void dAttention_c::setOwnerAttentionPos ( )

◆ sortList()

void dAttention_c::sortList ( )

◆ stockAttention()

void dAttention_c::stockAttention ( )

◆ triggerProc()

bool dAttention_c::triggerProc ( )

◆ ZHintRequest()

int dAttention_c::ZHintRequest ( fopAc_ac_c param_1,
int  param_2 
)
inline

Member Data Documentation

◆ act_type_num

int dAttention_c::act_type_num = 5
static

◆ act_type_tbl

type_tbl_entry dAttention_c::act_type_tbl
static
Initial value:
= {
{3, 8}, {4, 16}, {5, 32}, {6, 64}, {7, 128},
}

◆ chk_type_num

int dAttention_c::chk_type_num = 1
static

◆ chk_type_tbl

type_tbl_entry dAttention_c::chk_type_tbl
static
Initial value:
= {
{8, 256},
}

◆ dist_table

dist_entry dAttention_c::dist_table
static

◆ draw

dAttDraw_c dAttention_c::draw[2]

◆ field_0x14

u8 dAttention_c::field_0x14[4]

◆ field_0x328

s8 dAttention_c::field_0x328

◆ field_0x32a

u8 dAttention_c::field_0x32a

◆ field_0x32b

u8 dAttention_c::field_0x32b

◆ field_0x32c

u8 dAttention_c::field_0x32c

◆ field_0x32d

u8 dAttention_c::field_0x32d

◆ field_0x32e

u8 dAttention_c::field_0x32e

◆ field_0x32f

u8 dAttention_c::field_0x32f

◆ field_0x330

u8 dAttention_c::field_0x330

◆ field_0x331

u8 dAttention_c::field_0x331

◆ field_0x332

u8 dAttention_c::field_0x332

◆ field_0x333

u8 dAttention_c::field_0x333

◆ field_0x50c

u8 dAttention_c::field_0x50c[0x514 - 0x50c]

◆ heap

JKRSolidHeap* dAttention_c::heap

◆ loc_type_num

int dAttention_c::loc_type_num = 3
static

◆ loc_type_tbl

type_tbl_entry dAttention_c::loc_type_tbl
static
Initial value:
= {
{0, 1},
{1, 2},
{2, 4},
}

◆ mActionCount

int dAttention_c::mActionCount

◆ mActionList

dAttList_c dAttention_c::mActionList[4]

◆ mActionOffset

int dAttention_c::mActionOffset

◆ mAttnBlockTimer

int dAttention_c::mAttnBlockTimer

◆ mAttnStatus

u8 dAttention_c::mAttnStatus

◆ mAttParam

dAttParam_c dAttention_c::mAttParam

◆ mCatghTarget

dAttCatch_c dAttention_c::mCatghTarget

◆ mCheckObjectCount

int dAttention_c::mCheckObjectCount

◆ mCheckObjectList

dAttList_c dAttention_c::mCheckObjectList[4]

◆ mCheckObjectOffset

int dAttention_c::mCheckObjectOffset

◆ mDrawAttnPos

cXyz dAttention_c::mDrawAttnPos

◆ mEnemyActorID

fpc_ProcID dAttention_c::mEnemyActorID

◆ mEnemyDist

f32 dAttention_c::mEnemyDist

◆ mFlags

u32 dAttention_c::mFlags

◆ mLockonCount

int dAttention_c::mLockonCount

◆ mLockOnList

dAttList_c dAttention_c::mLockOnList[8]

◆ mLockOnOffset

int dAttention_c::mLockOnOffset

◆ mLockTargetID

fpc_ProcID dAttention_c::mLockTargetID

◆ mLookTarget

dAttLook_c dAttention_c::mLookTarget

◆ mOwnerAttnPos

cXyz dAttention_c::mOwnerAttnPos

◆ mPadNo

u32 dAttention_c::mPadNo

◆ mpDrawCallback

dAttDraw_CallBack_c dAttention_c::mpDrawCallback

◆ mPlayerAttentionFlags

u32 dAttention_c::mPlayerAttentionFlags

◆ mpPlayer

fopAc_ac_c* dAttention_c::mpPlayer

◆ mTargetActorID

fpc_ProcID dAttention_c::mTargetActorID

◆ mZHintTarget

dAttHint_c dAttention_c::mZHintTarget

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