Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
daCow_c Class Reference

#include <d_a_cow.h>

+ Inheritance diagram for daCow_c:
+ Collaboration diagram for daCow_c:

Public Types

enum  Crazy {
  Crazy_Wait = 0 , Crazy_Dash = 1 , Crazy_BeforeCatch = 2 , Crazy_Catch = 3 ,
  Crazy_Throw = 4 , Crazy_Attack = 5 , Crazy_Away = 6 , Crazy_End = 7 ,
  Crazy_Back = 8
}
 
enum  Mode { Mode_0 = 0 , Mode_1 = 1 , Mode_2 = 2 , Mode_3 = 3 }
 
enum  Action {
  Action_Wait = 0 , Action_NadeNade = 1 , Action_Cry = 2 , Action_3 = 3 ,
  Action_4 = 4 , Action_5 = 5 , Action_6 = 6 , Action_Running = 7
}
 
enum  Animation {
  Animation_Catch = 5 , Animation_ConnectA = 6 , Animation_DownL = 7 , Animation_DownR = 8 ,
  Animation_EatA = 9 , Animation_FallL = 10 , Animation_FallR = 11 , Animation_GetupL = 12 ,
  Animation_GetupR = 13 , Animation_Jump = 14 , Animation_MooA = 15 , Animation_Press = 16 ,
  Animation_PressWA = 17 , Animation_PressWB = 18 , Animation_Run = 19 , Animation_Rush = 20 ,
  Animation_ShakeA = 21 , Animation_Shakeoff = 22 , Animation_Shock = 23 , Animation_Toss = 24 ,
  Animation_TrotA = 25 , Animation_WaitA = 26 , Animation_WalkA = 27 , Animation_WalkDejected = 28
}
 
enum  RunType { RunType_None = 0 , RunType_Trot = 1 , RunType_Run = 2 }
 
enum  Execute {
  Execute_0 = 0 , Execute_1 = 1 , Execute_2 = 2 , Execute_3 = 3 ,
  Execute_4 = 4 , Execute_5 = 5 , Execute_6 = 6
}
 
enum  Flag {
  Flag_CrazyBeforeCatch = 1 << 0 , Flag_CrazyCatch = 1 << 1 , Flag_CrazyDash = 1 << 2 , Flag_CrazyThrowLeft = 1 << 3 ,
  Flag_CrazyThrowRight = 1 << 4 , Flag_CrazyReady = 1 << 5 , Flag_CrazyGo = 1 << 6 , Flag_Naderu = 1 << 7 ,
  Flag_NaderuFinish = 1 << 8 , Flag_CrazyReadyDrawOn = 1 << 9
}
 

Public Member Functions

int calcRunAnime (int)
 
void setBck (int, u8, f32, f32)
 
u8 checkBck (int)
 
void setEffect ()
 
bool isChaseCowGame ()
 
void setCarryStatus ()
 
void setActetcStatus ()
 
bool checkNadeNadeFinish ()
 
bool checkNadeNade ()
 
void setSeSnort ()
 
void setRushVibration (int)
 
bool checkThrow ()
 
void setBodyAngle (s16)
 
void setBodyAngle2 (s16)
 
BOOL checkProcess (void(daCow_c::*)())
 
bool setProcess (void(daCow_c::*)(), int)
 
void damage_check ()
 
void setEnterCow20 ()
 
void setEnterCow10 ()
 
void setGroundAngle ()
 
bool checkRun ()
 
bool checkNearCowRun ()
 
void action_wait ()
 
void action_eat ()
 
void action_moo ()
 
void action_shake ()
 
bool checkNearWolf ()
 
bool checkPlayerWait ()
 
bool checkPlayerSurprise ()
 
bool checkPlayerPos ()
 
void checkBeforeBg ()
 
int checkOutOfGate (cXyz)
 
s16 getCowshedAngle ()
 
double getCowshedDist ()
 
int checkCowIn (f32, f32)
 
bool checkCowInOwn (int)
 
void action_run ()
 
bool checkCurringPen ()
 
void setCowInCage ()
 
void setEnterCount ()
 
void action_enter ()
 
bool isAngry ()
 
bool isGuardFad ()
 
void setAngryHit ()
 
bool checkBeforeBgAngry (s16)
 
void setRedTev ()
 
void setAngryTurn ()
 
void action_angry ()
 
void calcCatchPos (f32, int)
 
void executeCrazyWait ()
 
void executeCrazyDash ()
 
void initCrazyBeforeCatch (int)
 
void executeCrazyBeforeCatch ()
 
void initCrazyCatch (int)
 
void executeCrazyCatch ()
 
void initCrazyThrow (int)
 
void executeCrazyThrow ()
 
void initCrazyAttack (int)
 
void executeCrazyAttack ()
 
void initCrazyAway (int)
 
void executeCrazyAway ()
 
void executeCrazyEnd ()
 
void initCrazyBack (int)
 
void executeCrazyBack ()
 
void action_crazy ()
 
void executeCrazyBack2 ()
 
void action_thrown ()
 
bool checkWolfBusters ()
 
void action_wolf ()
 
void action_damage ()
 
void action ()
 
void setMtx ()
 
void setAttnPos ()
 
void setCollisions ()
 
int Execute ()
 
int CreateHeap ()
 
u8 initialize ()
 
int create ()
 
int ctrlJoint (J3DJoint *, J3DModel *)
 
int Draw ()
 
int Delete ()
 
csXyz getShapeAngle ()
 
void setCowP (daCow_c *cow)
 
daCow_cgetCowP ()
 
void setCrazyBeforeCatch ()
 
void setCrazyCatch ()
 
void setCrazyDash ()
 
void setCrazyThrowLeft ()
 
void setCrazyThrowRight ()
 
void setCrazyReady ()
 
void setCrazyGo ()
 
void setNaderu ()
 
void setNaderuFinish ()
 
void setCrazyReadyDrawOn ()
 
bool getCowIn ()
 
int getNoNearCheckTimer () const
 
- 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 ()
 

Static Public Member Functions

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

Private Attributes

u16 mFlags
 
request_of_phase_process_class mPhase
 
mDoExt_McaMorfSOmpMorf
 
mDoExt_btpAnmmpBtp
 
Z2Creature mSound
 
dBgS_ObjAcch mAcch
 
dCcD_Stts mCcStts
 
dBgS_AcchCir mAcchCir
 
dCcD_Sph mSph [N_COW_COLLIDERS]
 
daCow_cmCowP
 
dPathmPath
 
s8 mPointIndex
 
cXyz mJointPos
 
cXyz mTarget
 
csXyz mGroundTransform
 
csXyz mSavedAngle
 
csXyz mJoint1Offset
 
csXyz mJoint8Offset
 
f32 mGroundHeight
 
void(daCow_c::* mProcess )()
 
int mTimer6
 
int mIdleTimer
 
u16 mMode
 
s8 mRunType
 
u8 mPrm0
 
u8 mExecute
 
u8 mAction
 
u8 mJointIndex
 
bool mIsCrazy
 
u32 mShadowKey
 
u8 mCounter1
 
u8 mISpeed
 
f32 mBoostSpeed
 
s16 mBoostAngle
 
s16 mTargetAngle
 
s16 mTurningSpeed
 
s16 mThrowIntensity
 
f32 mAttentionDistance
 
f32 mSpeed
 
int mInvulnerabilityTimer
 
int mDealDamageTimer
 
int mWaitTimer
 
int mTakenDamageCounter
 
int mTimer1
 
int mForgetCowPTimer
 
int mTimer10
 
u8 mAnimationInterval
 
u8 mOutOfGate
 
u8 mWillGetAngry
 
u8 mCrazy
 
bool mReadyToDash
 
u8 mRunDuration
 
u8 mIntersectedPlanes
 
u8 mRunTimer
 
u8 mNoNearCheckTimer
 
u8 mCowIn
 
bool mDrawOff
 
u8 _unused
 
bool mNadeNade
 
bool mEnterTimerDone
 
u8 mDoConnectAnim
 
f32 mRedTev
 
f32 mTargetRedTev
 
u8 mChangeRedTev
 
u8 mShouldSetEffect
 
dPaPoT_c mParticle
 
u32 mSmokeKey
 
u32 mSmokeKey2
 

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
 
s8 field_0x566
 
s8 field_0x567
 
- Public Attributes inherited from leafdraw_class
base_process_class base
 
leafdraw_method_classleaf_methods
 
s8 unk_0xBC
 
u8 unk_0xBD
 
draw_priority_class draw_priority
 
- Static Public Attributes inherited from fopAc_ac_c
static u32 stopStatus
 

Member Enumeration Documentation

◆ Action

Enumerator
Action_Wait 
Action_NadeNade 
Action_Cry 
Action_3 
Action_4 
Action_5 
Action_6 
Action_Running 

◆ Animation

Enumerator
Animation_Catch 
Animation_ConnectA 
Animation_DownL 
Animation_DownR 
Animation_EatA 
Animation_FallL 
Animation_FallR 
Animation_GetupL 
Animation_GetupR 
Animation_Jump 
Animation_MooA 
Animation_Press 
Animation_PressWA 
Animation_PressWB 
Animation_Run 
Animation_Rush 
Animation_ShakeA 
Animation_Shakeoff 
Animation_Shock 
Animation_Toss 
Animation_TrotA 
Animation_WaitA 
Animation_WalkA 
Animation_WalkDejected 

◆ Crazy

Enumerator
Crazy_Wait 
Crazy_Dash 
Crazy_BeforeCatch 
Crazy_Catch 
Crazy_Throw 
Crazy_Attack 
Crazy_Away 
Crazy_End 
Crazy_Back 

◆ Execute

enum int daCow_c::Execute
Enumerator
Execute_0 
Execute_1 
Execute_2 
Execute_3 
Execute_4 
Execute_5 
Execute_6 

◆ Flag

Enumerator
Flag_CrazyBeforeCatch 
Flag_CrazyCatch 
Flag_CrazyDash 
Flag_CrazyThrowLeft 
Flag_CrazyThrowRight 
Flag_CrazyReady 
Flag_CrazyGo 
Flag_Naderu 
Flag_NaderuFinish 
Flag_CrazyReadyDrawOn 

◆ Mode

Enumerator
Mode_0 
Mode_1 
Mode_2 
Mode_3 

◆ RunType

Enumerator
RunType_None 
RunType_Trot 
RunType_Run 

Member Function Documentation

◆ action()

void daCow_c::action ( )

◆ action_angry()

void daCow_c::action_angry ( )

◆ action_crazy()

void daCow_c::action_crazy ( )

◆ action_damage()

void daCow_c::action_damage ( )

◆ action_eat()

void daCow_c::action_eat ( )

◆ action_enter()

void daCow_c::action_enter ( )

◆ action_moo()

void daCow_c::action_moo ( )

◆ action_run()

void daCow_c::action_run ( )

◆ action_shake()

void daCow_c::action_shake ( )

◆ action_thrown()

void daCow_c::action_thrown ( )

◆ action_wait()

void daCow_c::action_wait ( )

◆ action_wolf()

void daCow_c::action_wolf ( )

◆ calcCatchPos()

void daCow_c::calcCatchPos ( f32 distance,
int someBool )

◆ calcRunAnime()

int daCow_c::calcRunAnime ( int resetRunType)

◆ checkBck()

u8 daCow_c::checkBck ( int i_index)

◆ checkBeforeBg()

void daCow_c::checkBeforeBg ( )

◆ checkBeforeBgAngry()

bool daCow_c::checkBeforeBgAngry ( s16 angle)

◆ checkCowIn()

int daCow_c::checkCowIn ( f32 cowshedDist,
f32 cowshedAngle )

◆ checkCowInOwn()

bool daCow_c::checkCowInOwn ( int angle)

◆ checkCurringPen()

bool daCow_c::checkCurringPen ( )

◆ checkNadeNade()

bool daCow_c::checkNadeNade ( )

◆ checkNadeNadeFinish()

bool daCow_c::checkNadeNadeFinish ( )

◆ checkNearCowRun()

bool daCow_c::checkNearCowRun ( )

◆ checkNearWolf()

bool daCow_c::checkNearWolf ( )

◆ checkOutOfGate()

int daCow_c::checkOutOfGate ( cXyz pos)

◆ checkPlayerPos()

bool daCow_c::checkPlayerPos ( )

◆ checkPlayerSurprise()

bool daCow_c::checkPlayerSurprise ( )

◆ checkPlayerWait()

bool daCow_c::checkPlayerWait ( )

◆ checkProcess()

BOOL daCow_c::checkProcess ( void(daCow_c::* process )())

◆ checkRun()

bool daCow_c::checkRun ( )

◆ checkThrow()

bool daCow_c::checkThrow ( )

◆ checkWolfBusters()

bool daCow_c::checkWolfBusters ( )

◆ create()

int daCow_c::create ( )

◆ CreateHeap()

int daCow_c::CreateHeap ( )

◆ createHeapCallBack()

int daCow_c::createHeapCallBack ( fopAc_ac_c * actor)
static

◆ ctrlJoint()

int daCow_c::ctrlJoint ( J3DJoint * joint,
J3DModel * model )

◆ ctrlJointCallBack()

int daCow_c::ctrlJointCallBack ( J3DJoint * joint,
int skip )
static

◆ damage_check()

void daCow_c::damage_check ( )

◆ Delete()

int daCow_c::Delete ( )

◆ Draw()

int daCow_c::Draw ( )

◆ Execute()

◆ executeCrazyAttack()

void daCow_c::executeCrazyAttack ( )

◆ executeCrazyAway()

void daCow_c::executeCrazyAway ( )

◆ executeCrazyBack()

void daCow_c::executeCrazyBack ( )

◆ executeCrazyBack2()

void daCow_c::executeCrazyBack2 ( )

◆ executeCrazyBeforeCatch()

void daCow_c::executeCrazyBeforeCatch ( )

◆ executeCrazyCatch()

void daCow_c::executeCrazyCatch ( )

◆ executeCrazyDash()

void daCow_c::executeCrazyDash ( )

◆ executeCrazyEnd()

void daCow_c::executeCrazyEnd ( )

◆ executeCrazyThrow()

void daCow_c::executeCrazyThrow ( )

◆ executeCrazyWait()

void daCow_c::executeCrazyWait ( )

◆ getCowIn()

bool daCow_c::getCowIn ( )
inline

◆ getCowP()

daCow_c * daCow_c::getCowP ( )
inline

◆ getCowshedAngle()

s16 daCow_c::getCowshedAngle ( )

◆ getCowshedDist()

double daCow_c::getCowshedDist ( )

◆ getNoNearCheckTimer()

int daCow_c::getNoNearCheckTimer ( ) const
inline

◆ getShapeAngle()

csXyz daCow_c::getShapeAngle ( )
inline

◆ initCrazyAttack()

void daCow_c::initCrazyAttack ( int playerMoving)

◆ initCrazyAway()

void daCow_c::initCrazyAway ( int _unused)

◆ initCrazyBack()

void daCow_c::initCrazyBack ( int _unused)

◆ initCrazyBeforeCatch()

void daCow_c::initCrazyBeforeCatch ( int _unused)

◆ initCrazyCatch()

void daCow_c::initCrazyCatch ( int _unused)

◆ initCrazyThrow()

void daCow_c::initCrazyThrow ( int nextAction)

◆ initialize()

u8 daCow_c::initialize ( )

◆ isAngry()

bool daCow_c::isAngry ( )

◆ isChaseCowGame()

bool daCow_c::isChaseCowGame ( )

◆ isGuardFad()

bool daCow_c::isGuardFad ( )

◆ setActetcStatus()

void daCow_c::setActetcStatus ( )

◆ setAngryHit()

void daCow_c::setAngryHit ( )

◆ setAngryTurn()

void daCow_c::setAngryTurn ( )

◆ setAttnPos()

void daCow_c::setAttnPos ( )

◆ setBck()

void daCow_c::setBck ( int i_index,
u8 i_attr,
f32 i_morf,
f32 i_rate )

◆ setBodyAngle()

void daCow_c::setBodyAngle ( s16 angle)

◆ setBodyAngle2()

void daCow_c::setBodyAngle2 ( s16 angle)

◆ setCarryStatus()

void daCow_c::setCarryStatus ( )

◆ setCollisions()

void daCow_c::setCollisions ( )

◆ setCowInCage()

void daCow_c::setCowInCage ( )

◆ setCowP()

void daCow_c::setCowP ( daCow_c * cow)
inline

◆ setCrazyBeforeCatch()

void daCow_c::setCrazyBeforeCatch ( )
inline

◆ setCrazyCatch()

void daCow_c::setCrazyCatch ( )
inline

◆ setCrazyDash()

void daCow_c::setCrazyDash ( )
inline

◆ setCrazyGo()

void daCow_c::setCrazyGo ( )
inline

◆ setCrazyReady()

void daCow_c::setCrazyReady ( )
inline

◆ setCrazyReadyDrawOn()

void daCow_c::setCrazyReadyDrawOn ( )
inline

◆ setCrazyThrowLeft()

void daCow_c::setCrazyThrowLeft ( )
inline

◆ setCrazyThrowRight()

void daCow_c::setCrazyThrowRight ( )
inline

◆ setEffect()

void daCow_c::setEffect ( )

◆ setEnterCount()

void daCow_c::setEnterCount ( )

◆ setEnterCow10()

void daCow_c::setEnterCow10 ( )

◆ setEnterCow20()

void daCow_c::setEnterCow20 ( )

◆ setGroundAngle()

void daCow_c::setGroundAngle ( )

◆ setMtx()

void daCow_c::setMtx ( )

◆ setNaderu()

void daCow_c::setNaderu ( )
inline

◆ setNaderuFinish()

void daCow_c::setNaderuFinish ( )
inline

◆ setProcess()

bool daCow_c::setProcess ( void(daCow_c::* process )(),
int doAnim6 )

◆ setRedTev()

void daCow_c::setRedTev ( )

◆ setRushVibration()

void daCow_c::setRushVibration ( int i_vibmode)

◆ setSeSnort()

void daCow_c::setSeSnort ( )

Member Data Documentation

◆ _unused

u8 daCow_c::_unused
private

◆ mAcch

dBgS_ObjAcch daCow_c::mAcch
private

◆ mAcchCir

dBgS_AcchCir daCow_c::mAcchCir
private

◆ mAction

u8 daCow_c::mAction
private

◆ mAnimationInterval

u8 daCow_c::mAnimationInterval
private

◆ mAttentionDistance

f32 daCow_c::mAttentionDistance
private

◆ mBoostAngle

s16 daCow_c::mBoostAngle
private

◆ mBoostSpeed

f32 daCow_c::mBoostSpeed
private

◆ mCcStts

dCcD_Stts daCow_c::mCcStts
private

◆ mChangeRedTev

u8 daCow_c::mChangeRedTev
private

◆ mCounter1

u8 daCow_c::mCounter1
private

◆ mCowIn

u8 daCow_c::mCowIn
private

◆ mCowP

daCow_c* daCow_c::mCowP
private

◆ mCrazy

u8 daCow_c::mCrazy
private

◆ mDealDamageTimer

int daCow_c::mDealDamageTimer
private

◆ mDoConnectAnim

u8 daCow_c::mDoConnectAnim
private

◆ mDrawOff

bool daCow_c::mDrawOff
private

◆ mEnterTimerDone

bool daCow_c::mEnterTimerDone
private

◆ mExecute

u8 daCow_c::mExecute
private

◆ mFlags

u16 daCow_c::mFlags
private

◆ mForgetCowPTimer

int daCow_c::mForgetCowPTimer
private

◆ mGroundHeight

f32 daCow_c::mGroundHeight
private

◆ mGroundTransform

csXyz daCow_c::mGroundTransform
private

◆ mIdleTimer

int daCow_c::mIdleTimer
private

◆ mIntersectedPlanes

u8 daCow_c::mIntersectedPlanes
private

◆ mInvulnerabilityTimer

int daCow_c::mInvulnerabilityTimer
private

◆ mIsCrazy

bool daCow_c::mIsCrazy
private

◆ mISpeed

u8 daCow_c::mISpeed
private

◆ mJoint1Offset

csXyz daCow_c::mJoint1Offset
private

◆ mJoint8Offset

csXyz daCow_c::mJoint8Offset
private

◆ mJointIndex

u8 daCow_c::mJointIndex
private

◆ mJointPos

cXyz daCow_c::mJointPos
private

◆ mMode

u16 daCow_c::mMode
private

◆ mNadeNade

bool daCow_c::mNadeNade
private

◆ mNoNearCheckTimer

u8 daCow_c::mNoNearCheckTimer
private

◆ mOutOfGate

u8 daCow_c::mOutOfGate
private

◆ mParticle

dPaPoT_c daCow_c::mParticle
private

◆ mPath

dPath* daCow_c::mPath
private

◆ mpBtp

mDoExt_btpAnm* daCow_c::mpBtp
private

◆ mPhase

request_of_phase_process_class daCow_c::mPhase
private

◆ mpMorf

mDoExt_McaMorfSO* daCow_c::mpMorf
private

◆ mPointIndex

s8 daCow_c::mPointIndex
private

◆ mPrm0

u8 daCow_c::mPrm0
private

◆ mProcess

void(daCow_c::* daCow_c::mProcess) ()
private

◆ mReadyToDash

bool daCow_c::mReadyToDash
private

◆ mRedTev

f32 daCow_c::mRedTev
private

◆ mRunDuration

u8 daCow_c::mRunDuration
private

◆ mRunTimer

u8 daCow_c::mRunTimer
private

◆ mRunType

s8 daCow_c::mRunType
private

◆ mSavedAngle

csXyz daCow_c::mSavedAngle
private

◆ mShadowKey

u32 daCow_c::mShadowKey
private

◆ mShouldSetEffect

u8 daCow_c::mShouldSetEffect
private

◆ mSmokeKey

u32 daCow_c::mSmokeKey
private

◆ mSmokeKey2

u32 daCow_c::mSmokeKey2
private

◆ mSound

Z2Creature daCow_c::mSound
private

◆ mSpeed

f32 daCow_c::mSpeed
private

◆ mSph

dCcD_Sph daCow_c::mSph[N_COW_COLLIDERS]
private

◆ mTakenDamageCounter

int daCow_c::mTakenDamageCounter
private

◆ mTarget

cXyz daCow_c::mTarget
private

◆ mTargetAngle

s16 daCow_c::mTargetAngle
private

◆ mTargetRedTev

f32 daCow_c::mTargetRedTev
private

◆ mThrowIntensity

s16 daCow_c::mThrowIntensity
private

◆ mTimer1

int daCow_c::mTimer1
private

◆ mTimer10

int daCow_c::mTimer10
private

◆ mTimer6

int daCow_c::mTimer6
private

◆ mTurningSpeed

s16 daCow_c::mTurningSpeed
private

◆ mWaitTimer

int daCow_c::mWaitTimer
private

◆ mWillGetAngry

u8 daCow_c::mWillGetAngry
private

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