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

Luda. More...

#include <d_a_npc_lud.h>

+ Inheritance diagram for daNpc_Lud_c:
+ Collaboration diagram for daNpc_Lud_c:

Public Types

typedef int(daNpc_Lud_c::*) actionFunc(void *)
 
typedef int(daNpc_Lud_c::*) cutFunc(int)
 
- Public Types inherited from daNpcT_c
enum  Mode {
  MODE_ENTER , MODE_INIT , MODE_RUN , MODE_EXIT ,
  MODE_4 , MODE_INVALID = -1
}
 
enum  AnmFlags {
  ANM_PAUSE_MORF = 0x1 , ANM_PAUSE_BTK = 0x2 , ANM_PAUSE_BRK = 0x4 , ANM_PAUSE_BPK = 0x8 ,
  ANM_PAUSE_BCK = 0x10 , ANM_PAUSE_BTP = 0x20 , ANM_PLAY_MORF = 0x40 , ANM_PLAY_BTK = 0x80 ,
  ANM_PLAY_BRK = 0x100 , ANM_PLAY_BPK = 0x200 , ANM_PLAY_BCK = 0x400 , ANM_PLAY_BTP = 0x800 ,
  ANM_FLAG_1000 = 0x1000 , ANM_PAUSE_TIMER_BTP = 0x2000 , ANM_FLAG_4000 = 0x4000
}
 

Public Member Functions

 ~daNpc_Lud_c ()
 
int create ()
 
int CreateHeap ()
 
int Delete ()
 
int Execute ()
 
int Draw ()
 
u8 getType ()
 
BOOL isDelete ()
 
void reset ()
 
void afterJntAnm (int)
 
void setParam ()
 
BOOL checkChangeEvt ()
 
void setAfterTalkMotion ()
 
void srchActors ()
 
BOOL evtTalk ()
 
BOOL evtCutProc ()
 
void action ()
 
void beforeMove ()
 
void setAttnPos ()
 
void setCollision ()
 
int drawDbgInfo ()
 
void drawOtherMdl ()
 
bool setBowlAnm (int, int, f32)
 
bool afterSetMotionAnm (int, int, f32, int)
 
int selectAction ()
 
BOOL chkAction (actionFunc)
 
int setAction (actionFunc)
 
void mop (int, int)
 
int cutHurry (int)
 
int cutConversationInHotel (int)
 
int cutConversationAboutDeathMt (int)
 
int cutConversationAboutGoron (int)
 
int cutNurse (int)
 
int cutClothTry (int)
 
int cutThankYou (int)
 
int wait (void *)
 
int nurse (void *)
 
int giveSoup (void *)
 
int talk (void *)
 
 daNpc_Lud_c (daNpcT_faceMotionAnmData_c const *i_faceMotionAnmData, daNpcT_motionAnmData_c const *i_motionAnmData, daNpcT_MotionSeqMngr_c::sequenceStepData_c const *i_faceMotionSequenceData, int i_faceMotionStepNum, daNpcT_MotionSeqMngr_c::sequenceStepData_c const *i_motionSequenceData, int i_motionStepNum, daNpcT_evtData_c const *i_evtData, char **i_arcNames)
 
u16 getEyeballMaterialNo ()
 
s32 getHeadJointNo ()
 
s32 getNeckJointNo ()
 
s32 getBackboneJointNo ()
 
BOOL checkChangeJoint (int param_0)
 
BOOL checkRemoveJoint (int param_0)
 
int getFlowNodeNo ()
 
u8 getBitSW ()
 
- Public Member Functions inherited from daNpcT_c
 daNpcT_c (daNpcT_faceMotionAnmData_c const *i_faceMotionAnmData, daNpcT_motionAnmData_c const *i_motionAnmData, daNpcT_MotionSeqMngr_c::sequenceStepData_c const *i_faceMotionSequenceData, int i_faceMotionStepNum, daNpcT_MotionSeqMngr_c::sequenceStepData_c const *i_motionSequenceData, int i_motionStepNum, daNpcT_evtData_c const *i_evtData, char **i_arcNames)
 
J3DAnmTransformgetTrnsfrmAnmP (char const *, int)
 
J3DAnmTransformKeygetTrnsfrmKeyAnmP (char const *, int)
 
J3DAnmTexPatterngetTexPtrnAnmP (char const *, int)
 
J3DAnmTextureSRTKeygetTexSRTKeyAnmP (char const *, int)
 
J3DAnmTevRegKeygetTevRegKeyAnmP (char const *, int)
 
J3DAnmColorgetColorAnmP (char const *, int)
 
int setBckAnm (J3DAnmTransform *, f32, int, int, int, bool)
 
int setMcaMorfAnm (J3DAnmTransformKey *, f32, f32, int, int, int)
 
int setBtpAnm (J3DAnmTexPattern *, J3DModelData *, f32, int)
 
int setBtkAnm (J3DAnmTextureSRTKey *, J3DModelData *, f32, int)
 
int setBrkAnm (J3DAnmTevRegKey *, J3DModelData *, f32, int)
 
int setBpkAnm (J3DAnmColor *, J3DModelData *, f32, int)
 
int loadRes (s8 const *, char const **)
 
void deleteRes (s8 const *, char const **)
 
int execute ()
 
int draw (BOOL, BOOL, f32, _GXColorS10 *, f32, BOOL, BOOL, BOOL)
 
void setEnvTevColor ()
 
void setRoomNo ()
 
int checkEndAnm (f32)
 
int checkEndAnm (J3DFrameCtrl *, f32)
 
void playAllAnm ()
 
void setMtx ()
 
void ctrlFaceMotion ()
 
void ctrlMotion ()
 
int ctrlMsgAnm (int *, int *, fopAc_ac_c *, int)
 
void evtChange ()
 
bool setFaceMotionAnm (int, bool)
 
void setPos (cXyz)
 
void setAngle (s16)
 
void setAngle (csXyz)
 
fopAc_ac_chitChk (dCcD_GObjInf *, u32)
 
void setDamage (int, int, int)
 
BOOL chkActorInSight (fopAc_ac_c *, f32, s16)
 
BOOL chkPointInArea (cXyz, cXyz, f32, f32, f32, s16)
 
BOOL chkPointInArea (cXyz, cXyz, cXyz, s16)
 
BOOL chkFindActor (fopAc_ac_c *, BOOL, s16)
 
BOOL chkWolfAction ()
 
BOOL chkFindWolf (s16, int, int, f32, f32, f32, f32, BOOL)
 
BOOL srchPlayerActor ()
 
cXyz getAttnPos (fopAc_ac_c *)
 
BOOL turn (s16, int, int)
 
BOOL step (s16, int, int, int, int)
 
void calcSpeedAndAngle (cXyz, BOOL, s16, s16)
 
int getActorDistance (fopAc_ac_c *, int, int)
 
BOOL initTalk (int, fopAc_ac_c **)
 
BOOL talkProc (int *, BOOL, fopAc_ac_c **, BOOL)
 
fopAc_ac_cgetNearestActorP (s16)
 
fopAc_ac_cgetEvtAreaTagP (int, int)
 
fopAc_ac_cgetShopItemTagP ()
 
void setHitodamaPrtcl ()
 
virtual ~daNpcT_c ()
 
virtual BOOL ctrlBtk ()
 
virtual void ctrlSubFaceMotion (int)
 
virtual s32 getFootLJointNo ()
 
virtual s32 getFootRJointNo ()
 
virtual u16 getEyeballLMaterialNo ()
 
virtual u16 getEyeballRMaterialNo ()
 
virtual int ctrlJoint (J3DJoint *, J3DModel *)
 
virtual BOOL evtEndProc ()
 
virtual BOOL evtProc ()
 
virtual void afterMoved ()
 
virtual void setFootPos ()
 
virtual void setFootPrtcl (cXyz *, f32, f32)
 
virtual bool checkCullDraw ()
 
virtual void twilight ()
 
virtual BOOL chkXYItems ()
 
virtual void evtOrder ()
 
virtual void decTmr ()
 
virtual void clrParam ()
 
virtual void drawGhost ()
 
virtual bool afterSetFaceMotionAnm (int, int, f32, int)
 
virtual daNpcT_faceMotionAnmData_c getFaceMotionAnm (daNpcT_faceMotionAnmData_c param_1)
 
virtual daNpcT_motionAnmData_c getMotionAnm (daNpcT_motionAnmData_c param_1)
 
virtual void changeAnm (int *, int *)
 
virtual void changeBck (int *, int *)
 
virtual void changeBtp (int *, int *)
 
virtual void changeBtk (int *, int *)
 
virtual bool setMotionAnm (int, f32, BOOL)
 
bool checkHide ()
 
BOOL checkStep ()
 
void setCommander (fopAc_ac_c *param_0)
 
void setCutType (int i_cutType)
 
void onHide ()
 
void offHide ()
 
void hide ()
 
void show ()
 
void initialize ()
 
BOOL chkFindPlayer (BOOL param_0, s16 param_1)
 
- Public Member Functions inherited from fopAc_ac_c
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 

Static Public Member Functions

static int createHeapCallBack (fopAc_ac_c *)
 
static int ctrlJointCallBack (J3DJoint *, int)
 
- Static Public Member Functions inherited from daNpcT_c
static void tgHitCallBack (fopAc_ac_c *, dCcD_GObjInf *, fopAc_ac_c *, dCcD_GObjInf *)
 
static void * srchActor (void *, void *)
 
- Static Public Member Functions inherited from fopAc_ac_c
static void setStopStatus (u32 status)
 

Static Public Attributes

static char * mCutNameList [8]
 
static cutFunc mCutList [8]
 
- Static Public Attributes inherited from daNpcT_c
static dCcD_SrcGObjInf const mCcDObjData
 
static dCcD_SrcCyl mCcDCyl
 
static dCcD_SrcSph mCcDSph
 
static fopAc_ac_cmFindActorPtrs [50]
 
static s16 mSrchName
 
static int mFindCount
 
- Static Public Attributes inherited from fopAc_ac_c
static u32 stopStatus
 

Private Attributes

mDoExt_McaMorfSOmpBowlMorf
 
NPC_LUD_HIO_CLASS * mpHIO
 
J3DModelmpModel [2]
 
dCcD_Cyl mCyl
 
u8 mType
 
daNpcT_ActorMngr_c mActorMngr [3]
 
actionFunc field_0xfa8
 
actionFunc mAction
 
int field_0xfc0
 
int field_0xfc4
 
int field_0xfc8
 
int field_0xfcc
 
s16 field_0xfd0
 
u8 field_0xfd2
 
u8 field_0xfd3
 
u8 field_0xfd4
 
u8 field_0xfd5
 
int field_0xfd8
 

Additional Inherited Members

- Public Attributes inherited from daNpcT_c
daNpcT_faceMotionAnmData_c const * mpFaceMotionAnmData
 
daNpcT_motionAnmData_c const * mpMotionAnmData
 
daNpcT_evtData_c const * mpEvtData
 
char ** mpArcNames
 
mDoExt_McaMorfSOmpMorf [2]
 
Z2Creature mSound
 
mDoExt_bckAnm mBckAnm
 
mDoExt_btpAnm mBtpAnm
 
mDoExt_btkAnm mBtkAnm
 
mDoExt_brkAnm mBrkAnm
 
mDoExt_bpkAnm mBpkAnm
 
dBgS_ObjAcch mAcch
 
dCcD_Stts mCcStts
 
dBgS_AcchCir mAcchCir
 
request_of_phase_process_class mPhase [10]
 
cBgS_GndChk mGndChk
 
daNpcT_MatAnm_cmpMatAnm [2]
 
dMsgFlow_c mFlow
 
dPaPoT_c field_0x9c0
 
dCcD_Stts field_0xa40
 
s32 mFlowNodeNo
 
f32 mExpressionMorfFrame
 
f32 mMorfFrames
 
bool mCreating
 
u8 mTwilight
 
dBgS_GndChk field_0xa8c
 
dBgS_LinChk mLinChk
 
daNpcT_MotionSeqMngr_c mFaceMotionSeqMngr
 
daNpcT_MotionSeqMngr_c mMotionSeqMngr
 
daNpcT_ActorMngr_c mPlayerActorMngr
 
daNpcT_ActorMngr_c field_0xba0
 
daNpcT_JntAnm_c mJntAnm
 
daNpcT_DmgStagger_c mStagger
 
cXyz mFootLPos
 
cXyz mFootRPos
 
cXyz mFootLOffset
 
cXyz mFootROffset
 
cXyz mOldFootLOffset
 
cXyz mOldFootROffset
 
cXyz field_0xd6c
 
csXyz mCurAngle
 
csXyz field_0xd7e
 
csXyz field_0xd84
 
csXyz field_0xd8a
 
fpc_ProcID mItemPartnerId
 
u32 mShadowKey
 
u32 mAnmFlags
 
fpc_ProcID mMsgId
 
u32 mHitodamaPrtclKey [2]
 
u32 mPolSound
 
int mStaffId
 
int mCutType
 
int field_0xdb4
 
int mDamageTimerStart
 
int mDamageTimer
 
int mBtpPauseTimer
 
int mEventTimer
 
s16 mPlayerAngle
 
s16 mGroundAngle
 
s16 field_0xdcc
 
s16 mFootLPolyAngle
 
s16 field_0xdd0
 
s16 mFootRPolyAngle
 
s16 mStartAngle
 
s16 mTargetAngle
 
s16 mStepMode
 
s16 mTurnAmount
 
f32 mTurnCount
 
f32 field_0xde0
 
f32 field_0xde4
 
f32 mRealShadowSize
 
f32 mCylH
 
f32 mWallR
 
f32 mGroundH
 
f32 mAttnFovY
 
f32 field_0xdfc
 
cXyz field_0xe00
 
cXyz field_0xe0c
 
s16 field_0xe18
 
s16 field_0xe1a
 
s16 mEvtId
 
u16 mMorfLoops
 
u16 mBckLoops
 
u16 mMode
 
s8 mReverb
 
u8 mHide
 
bool field_0xe26
 
u8 mFootLOnGround
 
u8 mFootROnGround
 
u8 field_0xe29
 
u8 field_0xe2a
 
bool mNoDraw
 
u8 field_0xe2c
 
bool field_0xe2d
 
u8 mPreItemNo
 
u16 mEvtNo
 
bool mSpeakEvent
 
bool field_0xe33
 
u8 field_0xe34
 
u8 field_0xe35
 
u8 field_0xe36
 
u8 field_0xe37
 
u8 field_0xe38
 
- Public Attributes inherited from fopAc_ac_c
leafdraw_class base
 
int actor_type
 
create_tag_class actor_tag
 
create_tag_class draw_tag
 
profile_method_classsub_method
 
JKRSolidHeapheap
 
dEvt_info_c eventInfo
 
dKy_tevstr_c tevStr
 
u16 setID
 
u8 group
 
u8 cullType
 
u8 demoActorID
 
s8 argument
 
u8 carryType
 
u32 actor_status
 
u32 actor_condition
 
fpc_ProcID parentActorID
 
actor_place home
 
actor_place old
 
actor_place current
 
csXyz shape_angle
 
cXyz scale
 
cXyz speed
 
MtxP cullMtx
 
union { 
 
   cull_box   box 
 
   cull_sphere   sphere 
 
cull 
 
f32 cullSizeFar
 
J3DModelmodel
 
dJntCol_cjntCol
 
f32 speedF
 
f32 gravity
 
f32 maxFallSpeed
 
cXyz eyePos
 
actor_attention_types attention_info
 
s16 field_0x560
 
s16 health
 
u8 field_0x564
 
u8 field_0x565
 
s8 field_0x566
 
s8 field_0x567
 

Detailed Description

Luda.

Member Typedef Documentation

◆ actionFunc

int(daNpc_Lud_c::*) daNpc_Lud_c::actionFunc(void *)

◆ cutFunc

int(daNpc_Lud_c::*) daNpc_Lud_c::cutFunc(int)

Constructor & Destructor Documentation

◆ ~daNpc_Lud_c()

daNpc_Lud_c::~daNpc_Lud_c ( )

◆ daNpc_Lud_c()

daNpc_Lud_c::daNpc_Lud_c ( daNpcT_faceMotionAnmData_c const * i_faceMotionAnmData,
daNpcT_motionAnmData_c const * i_motionAnmData,
daNpcT_MotionSeqMngr_c::sequenceStepData_c const * i_faceMotionSequenceData,
int i_faceMotionStepNum,
daNpcT_MotionSeqMngr_c::sequenceStepData_c const * i_motionSequenceData,
int i_motionStepNum,
daNpcT_evtData_c const * i_evtData,
char ** i_arcNames )
inline

Member Function Documentation

◆ action()

void daNpc_Lud_c::action ( )
virtual

Reimplemented from daNpcT_c.

◆ afterJntAnm()

void daNpc_Lud_c::afterJntAnm ( int param_1)
virtual

Reimplemented from daNpcT_c.

◆ afterSetMotionAnm()

bool daNpc_Lud_c::afterSetMotionAnm ( int param_0,
int param_1,
f32 param_2,
int param_3 )
virtual

Reimplemented from daNpcT_c.

◆ beforeMove()

void daNpc_Lud_c::beforeMove ( )
virtual

Reimplemented from daNpcT_c.

◆ checkChangeEvt()

BOOL daNpc_Lud_c::checkChangeEvt ( )
virtual

Reimplemented from daNpcT_c.

◆ checkChangeJoint()

BOOL daNpc_Lud_c::checkChangeJoint ( int param_0)
inlinevirtual

Reimplemented from daNpcT_c.

◆ checkRemoveJoint()

BOOL daNpc_Lud_c::checkRemoveJoint ( int param_0)
inlinevirtual

Reimplemented from daNpcT_c.

◆ chkAction()

BOOL daNpc_Lud_c::chkAction ( actionFunc param_0)

◆ create()

int daNpc_Lud_c::create ( )

◆ CreateHeap()

int daNpc_Lud_c::CreateHeap ( )

◆ createHeapCallBack()

int daNpc_Lud_c::createHeapCallBack ( fopAc_ac_c * i_this)
static

◆ ctrlJointCallBack()

int daNpc_Lud_c::ctrlJointCallBack ( J3DJoint * param_0,
int param_1 )
static

◆ cutClothTry()

int daNpc_Lud_c::cutClothTry ( int param_0)

◆ cutConversationAboutDeathMt()

int daNpc_Lud_c::cutConversationAboutDeathMt ( int param_0)

◆ cutConversationAboutGoron()

int daNpc_Lud_c::cutConversationAboutGoron ( int param_0)

◆ cutConversationInHotel()

int daNpc_Lud_c::cutConversationInHotel ( int param_0)

◆ cutHurry()

int daNpc_Lud_c::cutHurry ( int param_0)

◆ cutNurse()

int daNpc_Lud_c::cutNurse ( int param_0)

◆ cutThankYou()

int daNpc_Lud_c::cutThankYou ( int param_0)

◆ Delete()

int daNpc_Lud_c::Delete ( )

◆ Draw()

int daNpc_Lud_c::Draw ( )

◆ drawDbgInfo()

int daNpc_Lud_c::drawDbgInfo ( )
virtual

Reimplemented from daNpcT_c.

◆ drawOtherMdl()

void daNpc_Lud_c::drawOtherMdl ( )
virtual

Reimplemented from daNpcT_c.

◆ evtCutProc()

BOOL daNpc_Lud_c::evtCutProc ( )
virtual

Reimplemented from daNpcT_c.

◆ evtTalk()

BOOL daNpc_Lud_c::evtTalk ( )
virtual

Reimplemented from daNpcT_c.

◆ Execute()

int daNpc_Lud_c::Execute ( )

◆ getBackboneJointNo()

s32 daNpc_Lud_c::getBackboneJointNo ( )
inlinevirtual

Reimplemented from daNpcT_c.

◆ getBitSW()

u8 daNpc_Lud_c::getBitSW ( )
inline

◆ getEyeballMaterialNo()

u16 daNpc_Lud_c::getEyeballMaterialNo ( )
inlinevirtual

Reimplemented from daNpcT_c.

◆ getFlowNodeNo()

int daNpc_Lud_c::getFlowNodeNo ( )
inline

◆ getHeadJointNo()

s32 daNpc_Lud_c::getHeadJointNo ( )
inlinevirtual

Reimplemented from daNpcT_c.

◆ getNeckJointNo()

s32 daNpc_Lud_c::getNeckJointNo ( )
inlinevirtual

Reimplemented from daNpcT_c.

◆ getType()

u8 daNpc_Lud_c::getType ( )

◆ giveSoup()

int daNpc_Lud_c::giveSoup ( void * param_0)

◆ isDelete()

BOOL daNpc_Lud_c::isDelete ( )

◆ mop()

void daNpc_Lud_c::mop ( int param_0,
int param_1 )

◆ nurse()

int daNpc_Lud_c::nurse ( void * param_0)

◆ reset()

void daNpc_Lud_c::reset ( )

◆ selectAction()

int daNpc_Lud_c::selectAction ( )

◆ setAction()

int daNpc_Lud_c::setAction ( actionFunc param_0)

◆ setAfterTalkMotion()

void daNpc_Lud_c::setAfterTalkMotion ( )
virtual

Reimplemented from daNpcT_c.

◆ setAttnPos()

void daNpc_Lud_c::setAttnPos ( )
virtual

Reimplemented from daNpcT_c.

◆ setBowlAnm()

bool daNpc_Lud_c::setBowlAnm ( int i_index,
int i_attr,
f32 i_morf )

◆ setCollision()

void daNpc_Lud_c::setCollision ( )
virtual

Reimplemented from daNpcT_c.

◆ setParam()

void daNpc_Lud_c::setParam ( )
virtual

Reimplemented from daNpcT_c.

◆ srchActors()

void daNpc_Lud_c::srchActors ( )

◆ talk()

int daNpc_Lud_c::talk ( void * param_0)

◆ wait()

int daNpc_Lud_c::wait ( void * param_0)

Member Data Documentation

◆ field_0xfa8

actionFunc daNpc_Lud_c::field_0xfa8
private

◆ field_0xfc0

int daNpc_Lud_c::field_0xfc0
private

◆ field_0xfc4

int daNpc_Lud_c::field_0xfc4
private

◆ field_0xfc8

int daNpc_Lud_c::field_0xfc8
private

◆ field_0xfcc

int daNpc_Lud_c::field_0xfcc
private

◆ field_0xfd0

s16 daNpc_Lud_c::field_0xfd0
private

◆ field_0xfd2

u8 daNpc_Lud_c::field_0xfd2
private

◆ field_0xfd3

u8 daNpc_Lud_c::field_0xfd3
private

◆ field_0xfd4

u8 daNpc_Lud_c::field_0xfd4
private

◆ field_0xfd5

u8 daNpc_Lud_c::field_0xfd5
private

◆ field_0xfd8

int daNpc_Lud_c::field_0xfd8
private

◆ mAction

actionFunc daNpc_Lud_c::mAction
private

◆ mActorMngr

daNpcT_ActorMngr_c daNpc_Lud_c::mActorMngr[3]
private

◆ mCutList

daNpc_Lud_c::cutFunc daNpc_Lud_c::mCutList
static
Initial value:
= {
NULL,
}
int cutNurse(int)
Definition d_a_npc_lud.cpp:1158
int cutClothTry(int)
Definition d_a_npc_lud.cpp:1215
int cutConversationAboutGoron(int)
Definition d_a_npc_lud.cpp:1103
int cutConversationAboutDeathMt(int)
Definition d_a_npc_lud.cpp:1047
int cutThankYou(int)
Definition d_a_npc_lud.cpp:1235
int cutConversationInHotel(int)
Definition d_a_npc_lud.cpp:971
int cutHurry(int)
Definition d_a_npc_lud.cpp:942

◆ mCutNameList

char * daNpc_Lud_c::mCutNameList
static
Initial value:
= {
"",
"HURRY",
"CONVERSATION_IN_HOTEL",
"CONVERSATION_ABOUT_DEATHMT",
"CONVERSATION_ABOUT_GORON",
"NURSE",
"CLOTH_TRY",
"THANK_YOU",
}

◆ mCyl

dCcD_Cyl daNpc_Lud_c::mCyl
private

◆ mpBowlMorf

mDoExt_McaMorfSO* daNpc_Lud_c::mpBowlMorf
private

◆ mpHIO

NPC_LUD_HIO_CLASS* daNpc_Lud_c::mpHIO
private

◆ mpModel

J3DModel* daNpc_Lud_c::mpModel[2]
private

◆ mType

u8 daNpc_Lud_c::mType
private

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