Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
|
#include <d_a_npc.h>
Classes | |
struct | daNpcF_anmPlayData |
Public Types | |
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 } |
Static Public Member Functions | |
static void | tgHitCallBack (fopAc_ac_c *, dCcD_GObjInf *, fopAc_ac_c *, dCcD_GObjInf *) |
static void * | srchAttnActor1 (void *, void *) |
static void * | srchActor (void *, void *) |
Static Public Member Functions inherited from fopAc_ac_c | |
static void | setStopStatus (u32 status) |
Static Public Attributes | |
static u8 const | mCcDObjInfo [48] |
static dCcD_SrcCyl | mCcDCyl |
static dCcD_SrcSph | mCcDSph |
static fopAc_ac_c * | mFindActorPList [100] |
static s32 | mFindCount |
static s16 | mSrchActorName |
Static Public Attributes inherited from fopAc_ac_c | |
static u32 | stopStatus |
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_class * | sub_method | |
JKRSolidHeap * | heap | |
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 | |
J3DModel * | model | |
dJntCol_c * | jntCol | |
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_class * | mpDrawMtd | |
s8 | mbUnk0 | |
u8 | mbUnk1 | |
draw_priority_class | mDwPi | |
|
inlinevirtual |
|
virtual |
Reimplemented in daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
|
inline |
BOOL daNpcF_c::chkActorInArea | ( | fopAc_ac_c * | i_actor, |
cXyz | i_center, | ||
cXyz | i_bounds, | ||
s16 | i_angleY | ||
) |
Check whether an actor is in an elliptic cylinder region.
i_actor | The actor to check. |
i_center | The center of the cylinder. |
i_bounds | The dimensions of the bounding box. |
i_angleY | The angle to align the axis of the ellipse. |
BOOL daNpcF_c::chkActorInAttnArea | ( | fopAc_ac_c * | i_actorCheck, |
fopAc_ac_c * | i_actorAttn, | ||
int | i_distIndex | ||
) |
Check whether an actor lies within another actor's region of attention.
i_actorCheck | The actor to check. |
i_actorAttn | The actor whose attention region we are using. |
i_distIndex | An index into the distance table to determine the attention region. |
actorCheck
is within the region of attention of actorAttn
. BOOL daNpcF_c::chkActorInSight | ( | fopAc_ac_c * | i_actor, |
f32 | i_fovY | ||
) |
BOOL daNpcF_c::chkActorInSight2 | ( | fopAc_ac_c * | i_actor, |
f32 | i_fovY, | ||
s16 | i_sightAngle | ||
) |
|
inline |
|
inline |
BOOL daNpcF_c::chkEndAnm | ( | J3DFrameCtrl * | frameCtrl, |
f32 | prevRate | ||
) |
Check whether an animation has ended or looped.
frameCtrl | The frame controller for the animation. |
prevRate | The previous rate of animation. |
true
if the animation has just stopped or just looped, false
otherwise. Returns false
if the animation is two-way (attribute 3 or 4).
|
inline |
|
inline |
BOOL daNpcF_c::chkPointInArea | ( | cXyz | i_point, |
cXyz | param_1, | ||
f32 | i_radius, | ||
f32 | i_offsetY1, | ||
f32 | i_offsetY2, | ||
s16 | i_angleY | ||
) |
|
virtual |
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
int daNpcF_c::ctrlMsgAnm | ( | int & | o_expression, |
int & | o_motion, | ||
fopAc_ac_c * | param_2, | ||
BOOL | param_3 | ||
) |
int daNpcF_c::draw | ( | BOOL | i_isTest, |
BOOL | param_1, | ||
f32 | i_shadowDepth, | ||
_GXColorS10 * | i_fogColor, | ||
BOOL | i_hideDamage | ||
) |
|
virtual |
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
|
virtual |
Reimplemented in daNpcAshB_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
BOOL daNpcF_c::execute | ( | ) |
cXyz daNpcF_c::getAttentionPos | ( | fopAc_ac_c * | i_ActorP | ) |
fopAc_ac_c * daNpcF_c::getAttnActorP | ( | BOOL | i_playerAttn, |
fpcLyIt_JudgeFunc | i_searchFunc, | ||
f32 | i_radius, | ||
f32 | i_offsetY1, | ||
f32 | i_offsetY2, | ||
f32 | i_fovY, | ||
s16 | i_sightAngle, | ||
int | param_7, | ||
BOOL | param_8 | ||
) |
fopAc_ac_c * daNpcF_c::getEvtAreaTagP | ( | int | i_type, |
int | i_no | ||
) |
J3DAnmTevRegKey * daNpcF_c::getTevRegKeyAnmP | ( | char * | arcName, |
int | fileIdx | ||
) |
J3DAnmTexPattern * daNpcF_c::getTexPtrnAnmP | ( | char * | arcName, |
int | fileIdx | ||
) |
J3DAnmTextureSRTKey * daNpcF_c::getTexSRTKeyAnmP | ( | char * | arcName, |
int | fileIdx | ||
) |
J3DAnmTransformKey * daNpcF_c::getTrnsfrmKeyAnmP | ( | char * | arcName, |
int | fileIdx | ||
) |
void daNpcF_c::initialize | ( | ) |
BOOL daNpcF_c::initTalk | ( | int | i_flowID, |
fopAc_ac_c ** | param_1 | ||
) |
|
virtual |
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
void daNpcF_c::orderEvent | ( | int | i_speak, |
char * | i_evtName, | ||
u16 | param_2, | ||
u16 | i_priority, | ||
u8 | i_mapToolID, | ||
u16 | i_flag | ||
) |
BOOL daNpcF_c::playAllAnm | ( | ) |
void daNpcF_c::playExpressionAnm | ( | daNpcF_c::daNpcF_anmPlayData *** | anm | ) |
Set the expression animation.
anm | The animation data, a two-dimensional array of data pointers, indexed first by the expression index and second by the expression phase. Each piece of data consists of an animation index for that phase of the expression, the number of interpolation frames, and the number of loops before moving on to the next phase (or 0 for the last phase). |
void daNpcF_c::playMotionAnm | ( | daNpcF_c::daNpcF_anmPlayData *** | anm | ) |
Set the motion animation.
anm | The animation data, a two-dimensional array of data pointers, indexed first by the motion index and second by the motion phase. Each piece of data consists of an animation index for that phase of the motion, the number of interpolation frames, and the number of loops before moving on to the next phase (or 0 for the last phase). |
|
virtual |
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
BOOL daNpcF_c::setBckAnm | ( | J3DAnmTransform * | i_bck, |
f32 | i_rate, | ||
int | i_attr, | ||
int | i_start, | ||
int | i_end, | ||
bool | i_modify | ||
) |
BOOL daNpcF_c::setBrkAnm | ( | J3DAnmTevRegKey * | i_brk, |
J3DModelData * | i_modelData, | ||
f32 | i_rate, | ||
int | i_attr | ||
) |
BOOL daNpcF_c::setBtkAnm | ( | J3DAnmTextureSRTKey * | i_btk, |
J3DModelData * | i_modelData, | ||
f32 | i_rate, | ||
int | i_attr | ||
) |
BOOL daNpcF_c::setBtpAnm | ( | J3DAnmTexPattern * | i_btp, |
J3DModelData * | i_modelData, | ||
f32 | i_rate, | ||
int | i_attr | ||
) |
void daNpcF_c::setEnvTevColor | ( | ) |
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
void daNpcF_c::setHitodamaPrtcl | ( | ) |
|
inline |
Compute the animation matrix for the backbone, neck, or head joint. This matrix is applied to the matrix in mDoMtx_stack_c::now
.
i_jointNo | The index of the joint in question. |
i_jointList | An array of the three indices of the joints for the backbone, neck, and head. |
i_neckHeadAngleRatio | The ratio between the neck angle and the head angle. |
BOOL daNpcF_c::setMcaMorfAnm | ( | J3DAnmTransformKey * | i_anm, |
f32 | i_rate, | ||
f32 | i_morf, | ||
int | i_attr, | ||
int | i_start, | ||
int | i_end | ||
) |
Reimplemented in daNpc_zrA_c, daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrC_c, and daNpc_zrZ_c.
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
|
virtual |
Reimplemented in daNpc_zrA_c, and daNpc_zrZ_c.
|
virtual |
|
virtual |
Reimplemented in daNpcAsh_c, daNpcAshB_c, daNpcThe_c, daNpc_zrA_c, daNpc_zrC_c, and daNpc_zrZ_c.
void daNpcF_c::setRoomNo | ( | ) |
BOOL daNpcF_c::talkProc | ( | int * | param_0, |
BOOL | param_1, | ||
fopAc_ac_c ** | i_actorP | ||
) |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |