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

Ashei. More...

#include <d_a_npc_ash.h>

+ Inheritance diagram for daNpcAsh_c:
+ Collaboration diagram for daNpcAsh_c:

Public Types

enum  Type { TYPE_BAR , TYPE_CASTLE }
 
enum  Animation {
  ANM_NONE , ANM_F_TALK_A , ANM_F_TALK_B , ANM_F_SILENT ,
  ANM_F_COOL , ANM_F_ASK , ANM_F_EXPLAIN_A , ANM_F_EXPLAIN_B ,
  ANM_WAIT_A , ANM_WAIT_B , ANM_WAIT_C , ANM_STEP ,
  ANM_COOL , ANM_ASK , ANM_EXPLAIN_A , ANM_EXPLAIN_B ,
  ANM_BOWWAIT , ANM_BOWRUN
}
 
enum  Expression {
  EXPR_TALK_A , EXPR_TALK_B , EXPR_SILENT , EXPR_COOL ,
  EXPR_ASK , EXPR_EXPLAIN_A , EXPR_EXPLAIN_B , EXPR_NONE
}
 
enum  Motion {
  MOT_WAIT_A , MOT_WAIT_B , MOT_WAIT_C , MOT_COOL ,
  MOT_ASK , MOT_EXPLAIN_A , MOT_EXPLAIN_B , MOT_BOWWAIT ,
  MOT_BOWRUN , MOT_STEP
}
 
typedef bool(daNpcAsh_c::* ActionFn) (void *)
 
typedef BOOL(daNpcAsh_c::* EventFn) (int)
 
- Public Types inherited from daNpcF_c
enum  AnmFlags {
  ANM_PAUSE_MORF = 0x0001 , ANM_PAUSE_BTK = 0x0002 , ANM_PAUSE_BRK = 0x0004 , ANM_PLAY_MORF = 0x0008 ,
  ANM_PLAY_BTK = 0x0010 , ANM_PLAY_BRK = 0x0020 , ANM_PAUSE_BCK = 0x0040 , ANM_PAUSE_BTP = 0x0080 ,
  ANM_PLAY_BCK = 0x0100 , ANM_PLAY_BTP = 0x0200 , ANM_FLAG_400 = 0x0400 , ANM_FLAG_800 = 0x0800 ,
  ANM_PAUSE_EXPRESSION = 0x1000 , ANM_PAUSE_BPK = 0x2000 , ANM_PLAY_BPK = 0x4000 , ANM_MOTION_FLAGS ,
  ANM_EXPRESSION_FLAGS , ANM_PAUSE_ALL
}
 
enum  LookMode {
  LOOK_NONE , LOOK_RESET , LOOK_PLAYER , LOOK_PLAYER_TALK ,
  LOOK_ACTOR , LOOK_ATTN
}
 

Public Member Functions

 daNpcAsh_c ()
 
 ~daNpcAsh_c ()
 
cPhs__Step Create ()
 
BOOL CreateHeap ()
 
int Delete ()
 
int Execute ()
 
int Draw ()
 
bool ctrlJoint (J3DJoint *, J3DModel *)
 
bool setExpressionAnm (int, bool)
 
bool setExpressionBtp (int)
 
bool setMotionAnm (int i_idx, f32 i_morf)
 
void reset ()
 
bool setAction (ActionFn)
 
bool isSneaking ()
 
bool wait_type0 (void *)
 
void setMotion (int, f32, int)
 
void setExpression (int, f32)
 
bool wait_type1 (void *)
 
bool talk (void *)
 
bool demo (void *)
 
bool leave (void *)
 
BOOL EvCut_Introduction (int i_staffID)
 
BOOL EvCut_Meeting (int i_staffID)
 
BOOL EvCut_WiretapSponsor (int i_staffID)
 
BOOL EvCut_WiretapEntrant (int i_staffID)
 
void setParam ()
 
BOOL main ()
 
void playMotion ()
 
BOOL ctrlBtk ()
 
void setAttnPos ()
 
void lookat ()
 
BOOL drawDbgInfo ()
 
s16 getMessageNo ()
 
bool isMap ()
 
void setExpressionTalkAfter ()
 
void setLookMode (int i_lookMode, fopAc_ac_c *i_talkPartner)
 
void searchActors ()
 
BOOL chkFindPlayer ()
 
bool step (s16, bool)
 
void playExpression ()
 
- Public Member Functions inherited from daNpcF_c
BOOL execute ()
 
int draw (BOOL, BOOL, f32, _GXColorS10 *, BOOL)
 
void initialize ()
 
J3DAnmTransformKeygetTrnsfrmKeyAnmP (char *, int)
 
J3DAnmTexPatterngetTexPtrnAnmP (char *, int)
 
J3DAnmTextureSRTKeygetTexSRTKeyAnmP (char *, int)
 
J3DAnmTevRegKeygetTevRegKeyAnmP (char *, int)
 
BOOL setMcaMorfAnm (J3DAnmTransformKey *i_anm, f32 i_rate, f32 i_morf, int i_attr, int i_start, int i_end)
 
BOOL setBckAnm (J3DAnmTransform *i_bck, f32 i_rate, int i_attr, int i_start, int i_end, bool i_modify)
 
BOOL setBtpAnm (J3DAnmTexPattern *i_btp, J3DModelData *i_modelData, f32 i_rate, int i_attr)
 
BOOL setBtkAnm (J3DAnmTextureSRTKey *i_btk, J3DModelData *i_modelData, f32 i_rate, int i_attr)
 
BOOL setBrkAnm (J3DAnmTevRegKey *i_brk, J3DModelData *i_modelData, f32 i_rate, int i_attr)
 
void setEnvTevColor ()
 
void setRoomNo ()
 
BOOL chkEndAnm (f32)
 
BOOL chkEndAnm (J3DFrameCtrl *, f32)
 
BOOL playAllAnm ()
 
void playExpressionAnm (daNpcF_c::daNpcF_anmPlayData ***)
 
void playMotionAnm (daNpcF_c::daNpcF_anmPlayData ***)
 
void setLookatMtx (int, int *, f32)
 
BOOL hitChk2 (dCcD_Cyl *, BOOL, BOOL)
 
void setDamage (int, int, int)
 
int ctrlMsgAnm (int &, int &, fopAc_ac_c *, BOOL)
 
void orderEvent (int, char *, u16, u16, u8, u16)
 
void changeEvent (char *, char *, u16, u16)
 
BOOL chkActorInSight (fopAc_ac_c *, f32)
 
BOOL chkActorInArea (fopAc_ac_c *, cXyz, cXyz, s16)
 
BOOL chkActorInAttnArea (fopAc_ac_c *, fopAc_ac_c *, int)
 
BOOL initTalk (int, fopAc_ac_c **)
 
BOOL talkProc (int *, BOOL, fopAc_ac_c **)
 
BOOL turn (s16, f32, int)
 
BOOL step (s16, int, int, int)
 
void setAngle (s16)
 
u8 getDistTableIdx (int, int)
 
fopAc_ac_cgetEvtAreaTagP (int, int)
 
fopAc_ac_cgetAttnActorP (BOOL, fpcLyIt_JudgeFunc, f32, f32, f32, f32, s16, int, BOOL)
 
BOOL chkActorInSight2 (fopAc_ac_c *, f32, s16)
 
BOOL chkPointInArea (cXyz, cXyz, f32, f32, f32, s16)
 
BOOL chkPointInArea (cXyz, cXyz, cXyz, s16)
 
cXyz getAttentionPos (fopAc_ac_c *)
 
BOOL chkFindPlayer2 (BOOL, s16)
 
void setHitodamaPrtcl ()
 
virtual ~daNpcF_c ()
 
virtual void adjustShapeAngle ()
 
virtual void setMtx ()
 
virtual void setMtx2 ()
 
virtual void setCollisions ()
 
virtual void drawOtherMdls ()
 
BOOL chkActorInSpeakArea (fopAc_ac_c *i_actorCheck, fopAc_ac_c *i_actorArea)
 
BOOL chkPlayerInSpeakArea (fopAc_ac_c *i_actor)
 
BOOL chkActorInTalkArea (fopAc_ac_c *i_actorCheck, fopAc_ac_c *i_actorArea)
 
BOOL chkPlayerInTalkArea (fopAc_ac_c *i_actor)
 
BOOL checkHide ()
 
void setIntDemander (fopAc_ac_c *i_actor)
 
void setIntFlowNodeNo (int i_flowNodeNo)
 
void setCutType (int i_cutType)
 
void onInterrupt (u8 param_0)
 
- Public Member Functions inherited from fopAc_ac_c
 fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 
 fopAc_ac_c ()
 
 ~fopAc_ac_c ()
 

Static Public Member Functions

static BOOL createHeapCallBack (fopAc_ac_c *)
 
static BOOL ctrlJointCallBack (J3DJoint *, int)
 
- Static Public Member Functions inherited from daNpcF_c
static void tgHitCallBack (fopAc_ac_c *, dCcD_GObjInf *, fopAc_ac_c *, dCcD_GObjInf *)
 
static voidsrchAttnActor1 (void *, void *)
 
static voidsrchActor (void *, void *)
 
- Static Public Member Functions inherited from fopAc_ac_c
static void setStopStatus (u32 status)
 

Static Public Attributes

static EventFn mEvtSeqList [6]
 
- Static Public Attributes inherited from daNpcF_c
static u8 const mCcDObjInfo [48]
 
static dCcD_SrcCyl mCcDCyl
 
static dCcD_SrcSph mCcDSph
 
static fopAc_ac_cmFindActorPList [100]
 
static s32 mFindCount
 
static s16 mSrchActorName
 
- Static Public Attributes inherited from fopAc_ac_c
static u32 stopStatus
 

Private Attributes

Z2Creature mCreatureSound
 
J3DModelmModelBow
 
J3DModelmModelQuiver
 
daNpcF_MatAnm_cmpMatAnm
 
daNpcF_Lookat_c mLookat
 
daNpcF_ActorMngr_c mActorMngr [6]
 
fopAc_ac_cmTalkPartner
 
u32 field_0xcb4
 
dCcD_Cyl mCcCyl [2]
 
ActionFn mpActionFn
 
request_of_phase_process_class mPhase [2]
 
u32 mItemPartnerId
 
u32 field_0xf50
 
u32 field_0xf54
 
s16 mFlowID
 
s16 mLookMode
 
u16 mMode
 
u8 mMapToolId
 
u8 field_0xf5f
 
u8 mType
 

Additional Inherited Members

- Public Attributes inherited from fopAc_ac_c
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 subtype
 
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
 
u8 field_0x566
 
s8 field_0x567
 
- Public Attributes inherited from leafdraw_class
base_process_class mBase
 
leafdraw_method_classmpDrawMtd
 
s8 mbUnk0
 
u8 mbUnk1
 
draw_priority_class mDwPi
 
- Protected Attributes inherited from daNpcF_c
mDoExt_McaMorfSOmpMorf
 
mDoExt_bckAnm mBckAnm
 
mDoExt_btpAnm mBtpAnm
 
mDoExt_btkAnm mBtkAnm
 
mDoExt_brkAnm mBrkAnm
 
dBgS_ObjAcch mAcch
 
dCcD_Stts mCcStts
 
dBgS_AcchCir mAcchCir
 
daNpcF_ActorMngr_c field_0x824
 
daNpcF_ActorMngr_c mAttnActor [5]
 
cXyz mLookatPos [3]
 
cXyz mLookPos
 
cXyz field_0x884
 
cXyz field_0x890
 
cXyz field_0x89c
 
cXyz field_0x8a8
 
cXyz field_0x8b4
 
cXyz field_0x8c0
 
cXyz field_0x8cc
 
cXyz field_0x8d8
 
cXyz mHeadPos
 
csXyz mCurAngle
 
csXyz mOldAngle
 
csXyz mEyeAngle
 
csXyz mHeadAngle
 
csXyz field_0x908 [3]
 
csXyz mLookatAngle [3]
 
int mStaffID
 
int mCutType
 
int mAttnIdx
 
int mAttnChangeTimer
 
int mAttnActorTimer [5]
 
int mMsgTimer
 
int mDamageTimer
 
int mTotalDamageTimer
 
int field_0x95c
 
int mEventTimer
 
int mBtpTimer
 
int mTurnAmount
 
int mTurnMode
 
f32 mTurnStepNum
 
f32 mExpressionMorfOverride
 
f32 mExpressionMorf
 
f32 mMotionMorfOverride
 
f32 mGroundH
 
f32 field_0x984 [3]
 
s16 field_0x990
 
s16 field_0x992
 
s16 mTurnStartAngle
 
s16 mTurnTargetAngle
 
u16 field_0x998
 
u32 mAnmFlags
 
u32 mShadowKey
 
u32 field_0x9a4
 
u32 mHitodamaParticleKey [2]
 
u32 mPolySound
 
int mFlowNodeNo
 
cXyz field_0x9b8
 
cXyz field_0x9c4
 
s16 field_0x9d0
 
s16 field_0x9d2
 
s16 mEventIdx
 
s16 mExpressionPhase
 
s16 mExpressionPrevPhase
 
s16 mMotionPhase
 
s16 mMotionPrevPhase
 
s16 mExpression
 
s16 mMotion
 
u16 mMotionLoops
 
u16 mExpressionLoops
 
u16 mOrderEvtNo
 
s8 mReverb
 
bool mOrderSpeakEvt
 
bool field_0x9ea
 
bool field_0x9eb
 
bool field_0x9ec
 
bool mOrderNewEvt
 
bool field_0x9ee
 
u8 field_0x9ef
 
bool mIsDamaged
 
u8 field_0x9f1
 
bool mHide
 
u8 field_0x9f3
 
bool mTwilight
 
u8 field_0x9f5
 
u8 field_0x9f6
 
dMsgFlow_c mFlow
 
cBgS_GndChk mGndChk
 
dBgS_GndChk field_0xa80
 
dBgS_LinChk field_0xad4
 

Detailed Description

Ashei.

Member Typedef Documentation

◆ ActionFn

typedef bool(daNpcAsh_c::* daNpcAsh_c::ActionFn) (void *)

◆ EventFn

typedef BOOL(daNpcAsh_c::* daNpcAsh_c::EventFn) (int)

Member Enumeration Documentation

◆ Animation

Enumerator
ANM_NONE 
ANM_F_TALK_A 
ANM_F_TALK_B 
ANM_F_SILENT 
ANM_F_COOL 
ANM_F_ASK 
ANM_F_EXPLAIN_A 
ANM_F_EXPLAIN_B 
ANM_WAIT_A 
ANM_WAIT_B 
ANM_WAIT_C 
ANM_STEP 
ANM_COOL 
ANM_ASK 
ANM_EXPLAIN_A 
ANM_EXPLAIN_B 
ANM_BOWWAIT 
ANM_BOWRUN 

◆ Expression

Enumerator
EXPR_TALK_A 
EXPR_TALK_B 
EXPR_SILENT 
EXPR_COOL 
EXPR_ASK 
EXPR_EXPLAIN_A 
EXPR_EXPLAIN_B 
EXPR_NONE 

◆ Motion

Enumerator
MOT_WAIT_A 
MOT_WAIT_B 
MOT_WAIT_C 
MOT_COOL 
MOT_ASK 
MOT_EXPLAIN_A 
MOT_EXPLAIN_B 
MOT_BOWWAIT 
MOT_BOWRUN 
MOT_STEP 

◆ Type

Enumerator
TYPE_BAR 
TYPE_CASTLE 

Constructor & Destructor Documentation

◆ daNpcAsh_c()

daNpcAsh_c::daNpcAsh_c ( )

◆ ~daNpcAsh_c()

daNpcAsh_c::~daNpcAsh_c ( )

Member Function Documentation

◆ chkFindPlayer()

BOOL daNpcAsh_c::chkFindPlayer ( )
inline

◆ Create()

cPhs__Step daNpcAsh_c::Create ( )

◆ CreateHeap()

BOOL daNpcAsh_c::CreateHeap ( )

◆ createHeapCallBack()

BOOL daNpcAsh_c::createHeapCallBack ( fopAc_ac_c i_this)
static

◆ ctrlBtk()

BOOL daNpcAsh_c::ctrlBtk ( )
virtual

Reimplemented from daNpcF_c.

◆ ctrlJoint()

bool daNpcAsh_c::ctrlJoint ( J3DJoint i_joint,
J3DModel i_model 
)

◆ ctrlJointCallBack()

BOOL daNpcAsh_c::ctrlJointCallBack ( J3DJoint i_joint,
int  param_1 
)
static

◆ Delete()

int daNpcAsh_c::Delete ( )

◆ demo()

bool daNpcAsh_c::demo ( void param_0)

◆ Draw()

int daNpcAsh_c::Draw ( )

◆ drawDbgInfo()

BOOL daNpcAsh_c::drawDbgInfo ( )
virtual

Reimplemented from daNpcF_c.

◆ EvCut_Introduction()

BOOL daNpcAsh_c::EvCut_Introduction ( int  i_staffID)

◆ EvCut_Meeting()

BOOL daNpcAsh_c::EvCut_Meeting ( int  i_staffID)

◆ EvCut_WiretapEntrant()

BOOL daNpcAsh_c::EvCut_WiretapEntrant ( int  i_staffID)

◆ EvCut_WiretapSponsor()

BOOL daNpcAsh_c::EvCut_WiretapSponsor ( int  i_staffID)

◆ Execute()

int daNpcAsh_c::Execute ( )

◆ getMessageNo()

s16 daNpcAsh_c::getMessageNo ( )
inline

◆ isMap()

bool daNpcAsh_c::isMap ( )
inline

◆ isSneaking()

bool daNpcAsh_c::isSneaking ( )
inline

◆ leave()

bool daNpcAsh_c::leave ( void param_0)

◆ lookat()

void daNpcAsh_c::lookat ( )

◆ main()

BOOL daNpcAsh_c::main ( )
virtual

Reimplemented from daNpcF_c.

◆ playExpression()

void daNpcAsh_c::playExpression ( )
inline

◆ playMotion()

void daNpcAsh_c::playMotion ( )

◆ reset()

void daNpcAsh_c::reset ( )

◆ searchActors()

void daNpcAsh_c::searchActors ( )
inline

◆ setAction()

bool daNpcAsh_c::setAction ( daNpcAsh_c::ActionFn  i_actionFn)
inline

◆ setAttnPos()

void daNpcAsh_c::setAttnPos ( )
virtual

Reimplemented from daNpcF_c.

◆ setExpression()

void daNpcAsh_c::setExpression ( int  i_expression,
f32  i_morf 
)
virtual

Reimplemented from daNpcF_c.

◆ setExpressionAnm()

bool daNpcAsh_c::setExpressionAnm ( int  i_idx,
bool  i_modify 
)
virtual

Reimplemented from daNpcF_c.

◆ setExpressionBtp()

bool daNpcAsh_c::setExpressionBtp ( int  i_idx)
virtual

Reimplemented from daNpcF_c.

◆ setExpressionTalkAfter()

void daNpcAsh_c::setExpressionTalkAfter ( )
inline

◆ setLookMode()

void daNpcAsh_c::setLookMode ( int  i_lookMode,
fopAc_ac_c i_talkPartner 
)
inline

◆ setMotion()

void daNpcAsh_c::setMotion ( int  i_motion,
f32  i_morf,
int  i_restart 
)
virtual

Reimplemented from daNpcF_c.

◆ setMotionAnm()

bool daNpcAsh_c::setMotionAnm ( int  i_idx,
f32  i_morf 
)
virtual

Reimplemented from daNpcF_c.

◆ setParam()

void daNpcAsh_c::setParam ( )
virtual

Reimplemented from daNpcF_c.

◆ step()

bool daNpcAsh_c::step ( s16  i_angY,
bool  i_animate 
)
inline

◆ talk()

bool daNpcAsh_c::talk ( void param_0)

◆ wait_type0()

bool daNpcAsh_c::wait_type0 ( void param_0)

◆ wait_type1()

bool daNpcAsh_c::wait_type1 ( void param_0)

Member Data Documentation

◆ field_0xcb4

u32 daNpcAsh_c::field_0xcb4
private

◆ field_0xf50

u32 daNpcAsh_c::field_0xf50
private

◆ field_0xf54

u32 daNpcAsh_c::field_0xf54
private

◆ field_0xf5f

u8 daNpcAsh_c::field_0xf5f
private

◆ mActorMngr

daNpcF_ActorMngr_c daNpcAsh_c::mActorMngr[6]
private

◆ mCcCyl

dCcD_Cyl daNpcAsh_c::mCcCyl[2]
private

◆ mCreatureSound

Z2Creature daNpcAsh_c::mCreatureSound
private

◆ mEvtSeqList

daNpcAsh_c::EventFn daNpcAsh_c::mEvtSeqList
static
Initial value:
= {
}
T cLib_calcTimer(T *value)
Definition c_lib.h:74
BOOL EvCut_WiretapSponsor(int i_staffID)
Definition d_a_npc_ash.cpp:1362
BOOL EvCut_Introduction(int i_staffID)
Definition d_a_npc_ash.cpp:1284
BOOL EvCut_Meeting(int i_staffID)
Definition d_a_npc_ash.cpp:1306
BOOL EvCut_WiretapEntrant(int i_staffID)
Definition d_a_npc_ash.cpp:1411

◆ mFlowID

s16 daNpcAsh_c::mFlowID
private

◆ mItemPartnerId

u32 daNpcAsh_c::mItemPartnerId
private

◆ mLookat

daNpcF_Lookat_c daNpcAsh_c::mLookat
private

◆ mLookMode

s16 daNpcAsh_c::mLookMode
private

◆ mMapToolId

u8 daNpcAsh_c::mMapToolId
private

◆ mMode

u16 daNpcAsh_c::mMode
private

◆ mModelBow

J3DModel* daNpcAsh_c::mModelBow
private

◆ mModelQuiver

J3DModel* daNpcAsh_c::mModelQuiver
private

◆ mpActionFn

ActionFn daNpcAsh_c::mpActionFn
private

◆ mPhase

request_of_phase_process_class daNpcAsh_c::mPhase[2]
private

◆ mpMatAnm

daNpcF_MatAnm_c* daNpcAsh_c::mpMatAnm
private

◆ mTalkPartner

fopAc_ac_c* daNpcAsh_c::mTalkPartner
private

◆ mType

u8 daNpcAsh_c::mType
private

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