Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_a_e_sf.cpp File Reference

Classes

class  daE_SF_HIO_c
 

Enumerations

enum  E_sf_RES_File_ID {
  BCK_SF_ATTACK01 = 0x4 , BCK_SF_ATTACK02 , BCK_SF_DAMAGE , BCK_SF_DIE ,
  BCK_SF_DRAWBACK , BCK_SF_GETUP , BCK_SF_GUARD , BCK_SF_OPDEMO ,
  BCK_SF_WAIT01 , BCK_SF_WAIT02 , BCK_SF_WALK01 , BCK_SF_WALK02 ,
  BCK_SF_WALK03 , BMDR_SF = 0x13 , BMDR_SF_SHIELDA , BMDR_SF_SHIELDB ,
  BMDR_SF_SWORDA , BMDR_SF_SWORDB
}
 
enum  Joint {
  JNT_WORLD_ROOT , JNT_BACKBONE1 , JNT_BACKBONE2 , JNT_NECK ,
  JNT_HEAD , JNT_CHIN , JNT_SHOULDERL , JNT_ARML1 ,
  JNT_HANDL1 , JNT_HANDL2 , JNT_SHOULDERPADL , JNT_SHOULDERR ,
  JNT_ARMR1 , JNT_HANDR1 , JNT_HANDR2 , JNT_SHOULDERPADR ,
  JNT_WAIST , JNT_LEGL1 , JNT_LEGL2 , JNT_FOOTL1 ,
  JNT_FOOTL2 , JNT_LEGR1 , JNT_LEGR2 , JNT_FOOTR1 ,
  JNT_FOOTR2
}
 
enum  Action {
  ACTION_NORMAL , ACTION_FIGHT_RUN = 0x3 , ACTION_ATTACK_0 , ACTION_ATTACK ,
  ACTION_GUARD = 0x7 , ACTION_DRAWBACK , ACTION_S_DAMAGE = 0x14 , ACTION_CRASH = 0x1E ,
  ACTION_GETUP , ACTION_CRASHWAIT , ACTION_SITWAIT
}
 
enum  Action_Phase {
  PHASE_INIT , NORMAL_PHASE_1 = 0x1 , NORMAL_PHASE_WALK , NORMAL_PHASE_WAIT ,
  DRAWBACK_PHASE_END = 0x1 , FIGHT_RUN_PHASE_NEG_10 = -10 , FIGHT_RUN_PHASE_NEG_9 = -9 , FIGHT_RUN_PHASE_0 = 0x0 ,
  FIGHT_RUN_PHASE_1 , FIGHT_RUN_PHASE_2 , FIGHT_RUN_PHASE_3 , ATTACK_0_PHASE_END = 0x1 ,
  ATTACK_PHASE_END = 0x1 , GUARD_PHASE_KNOCKBACK = 0x1 , GUARD_PHASE_RECOVER , GUARD_PHASE_END ,
  S_DAMAGE_PHASE_END = 0x1 , CRASH_PHASE_WAIT = 0x1 , CRASH_PHASE_END , CRASHWAIT_PHASE_END = 0x1 ,
  SITWAIT_PHASE_1 = 0x1 , SITWAIT_PHASE_END , GETUP_PHASE_GETUP = 0x1 , GETUP_PHASE_WAIT ,
  GETUP_PHASE_END
}
 

Functions

static void anm_init (e_sf_class *i_this, int i_index, f32 i_morf, u8 i_attr, f32 i_rate)
 
static int nodeCallBack (J3DJoint *i_joint, int param_2)
 
static int daE_SF_Draw (e_sf_class *i_this)
 
static BOOL other_bg_check (e_sf_class *i_this, fopAc_ac_c *i_actor)
 
static BOOL player_way_check (e_sf_class *i_this)
 
static BOOL way_bg_check (e_sf_class *i_this, f32 param_2, f32 param_3)
 
static int pl_check (e_sf_class *i_this, f32 i_distance, s16 param_3)
 
static void e_sf_normal (e_sf_class *i_this)
 
static void e_sf_drawback (e_sf_class *i_this)
 
static void e_sf_fight_run (e_sf_class *i_this)
 
static fopAc_ac_cat_hit_check (e_sf_class *i_this)
 
static f32 dummy ()
 
static void e_sf_attack_0 (e_sf_class *i_this)
 
static void e_sf_attack (e_sf_class *i_this)
 
static int e_sf_guard (e_sf_class *i_this)
 
static void e_sf_s_damage (e_sf_class *i_this)
 
static void e_sf_crash (e_sf_class *i_this)
 
static void e_sf_crashwait (e_sf_class *i_this)
 
static s16 e_sf_sitwait (e_sf_class *i_this)
 
static s16 e_sf_getup (e_sf_class *i_this)
 
static void crash_eff (e_sf_class *i_this)
 
static void damage_check (e_sf_class *i_this)
 
static void action (e_sf_class *i_this)
 
static void anm_se_set (e_sf_class *i_this)
 
static void demo_camera (e_sf_class *i_this)
 
static int daE_SF_Execute (e_sf_class *i_this)
 
static int daE_SF_IsDelete (e_sf_class *i_this)
 
static int daE_SF_Delete (e_sf_class *i_this)
 
static int useHeapInit (fopAc_ac_c *a_this)
 
static cPhs__Step daE_SF_Create (fopAc_ac_c *a_this)
 

Variables

static bool l_initHIO
 
static daE_SF_HIO_c l_HIO
 
static fopAc_ac_ctarget_info [10]
 
static int target_info_count
 
static int ret_ct
 
 AUDIO_INSTANCES
 
static actor_method_class l_daE_SF_Method
 
actor_process_profile_definition g_profile_E_SF
 

Enumeration Type Documentation

◆ Action

enum Action
Enumerator
ACTION_NORMAL 
ACTION_FIGHT_RUN 
ACTION_ATTACK_0 
ACTION_ATTACK 
ACTION_GUARD 
ACTION_DRAWBACK 
ACTION_S_DAMAGE 
ACTION_CRASH 
ACTION_GETUP 
ACTION_CRASHWAIT 
ACTION_SITWAIT 

◆ Action_Phase

Enumerator
PHASE_INIT 
NORMAL_PHASE_1 
NORMAL_PHASE_WALK 
NORMAL_PHASE_WAIT 
DRAWBACK_PHASE_END 
FIGHT_RUN_PHASE_NEG_10 
FIGHT_RUN_PHASE_NEG_9 
FIGHT_RUN_PHASE_0 
FIGHT_RUN_PHASE_1 
FIGHT_RUN_PHASE_2 
FIGHT_RUN_PHASE_3 
ATTACK_0_PHASE_END 
ATTACK_PHASE_END 
GUARD_PHASE_KNOCKBACK 
GUARD_PHASE_RECOVER 
GUARD_PHASE_END 
S_DAMAGE_PHASE_END 
CRASH_PHASE_WAIT 
CRASH_PHASE_END 
CRASHWAIT_PHASE_END 
SITWAIT_PHASE_1 
SITWAIT_PHASE_END 
GETUP_PHASE_GETUP 
GETUP_PHASE_WAIT 
GETUP_PHASE_END 

◆ E_sf_RES_File_ID

Enumerator
BCK_SF_ATTACK01 
BCK_SF_ATTACK02 
BCK_SF_DAMAGE 
BCK_SF_DIE 
BCK_SF_DRAWBACK 
BCK_SF_GETUP 
BCK_SF_GUARD 
BCK_SF_OPDEMO 
BCK_SF_WAIT01 
BCK_SF_WAIT02 
BCK_SF_WALK01 
BCK_SF_WALK02 
BCK_SF_WALK03 
BMDR_SF 
BMDR_SF_SHIELDA 
BMDR_SF_SHIELDB 
BMDR_SF_SWORDA 
BMDR_SF_SWORDB 

◆ Joint

enum Joint
Enumerator
JNT_WORLD_ROOT 
JNT_BACKBONE1 
JNT_BACKBONE2 
JNT_NECK 
JNT_HEAD 
JNT_CHIN 
JNT_SHOULDERL 
JNT_ARML1 
JNT_HANDL1 
JNT_HANDL2 
JNT_SHOULDERPADL 
JNT_SHOULDERR 
JNT_ARMR1 
JNT_HANDR1 
JNT_HANDR2 
JNT_SHOULDERPADR 
JNT_WAIST 
JNT_LEGL1 
JNT_LEGL2 
JNT_FOOTL1 
JNT_FOOTL2 
JNT_LEGR1 
JNT_LEGR2 
JNT_FOOTR1 
JNT_FOOTR2 

Function Documentation

◆ action()

static void action ( e_sf_class * i_this)
static

◆ anm_init()

static void anm_init ( e_sf_class * i_this,
int i_index,
f32 i_morf,
u8 i_attr,
f32 i_rate )
static

◆ anm_se_set()

static void anm_se_set ( e_sf_class * i_this)
static

◆ at_hit_check()

static fopAc_ac_c * at_hit_check ( e_sf_class * i_this)
static

◆ crash_eff()

static void crash_eff ( e_sf_class * i_this)
static

◆ daE_SF_Create()

static cPhs__Step daE_SF_Create ( fopAc_ac_c * a_this)
static

◆ daE_SF_Delete()

static int daE_SF_Delete ( e_sf_class * i_this)
static

◆ daE_SF_Draw()

static int daE_SF_Draw ( e_sf_class * i_this)
static

◆ daE_SF_Execute()

static int daE_SF_Execute ( e_sf_class * i_this)
static

◆ daE_SF_IsDelete()

static int daE_SF_IsDelete ( e_sf_class * i_this)
static

◆ damage_check()

static void damage_check ( e_sf_class * i_this)
static

◆ demo_camera()

static void demo_camera ( e_sf_class * i_this)
static

◆ dummy()

static f32 dummy ( )
static

◆ e_sf_attack()

static void e_sf_attack ( e_sf_class * i_this)
static

◆ e_sf_attack_0()

static void e_sf_attack_0 ( e_sf_class * i_this)
static

◆ e_sf_crash()

static void e_sf_crash ( e_sf_class * i_this)
static

◆ e_sf_crashwait()

static void e_sf_crashwait ( e_sf_class * i_this)
static

◆ e_sf_drawback()

static void e_sf_drawback ( e_sf_class * i_this)
static

◆ e_sf_fight_run()

static void e_sf_fight_run ( e_sf_class * i_this)
static

◆ e_sf_getup()

static s16 e_sf_getup ( e_sf_class * i_this)
static

◆ e_sf_guard()

static int e_sf_guard ( e_sf_class * i_this)
static

◆ e_sf_normal()

static void e_sf_normal ( e_sf_class * i_this)
static

◆ e_sf_s_damage()

static void e_sf_s_damage ( e_sf_class * i_this)
static

◆ e_sf_sitwait()

static s16 e_sf_sitwait ( e_sf_class * i_this)
static

◆ nodeCallBack()

static int nodeCallBack ( J3DJoint * i_joint,
int param_2 )
static

◆ other_bg_check()

static BOOL other_bg_check ( e_sf_class * i_this,
fopAc_ac_c * i_actor )
static

◆ pl_check()

static int pl_check ( e_sf_class * i_this,
f32 i_distance,
s16 param_3 )
static

◆ player_way_check()

static BOOL player_way_check ( e_sf_class * i_this)
static

◆ useHeapInit()

static int useHeapInit ( fopAc_ac_c * a_this)
static

◆ way_bg_check()

static BOOL way_bg_check ( e_sf_class * i_this,
f32 param_2,
f32 param_3 )
static

Variable Documentation

◆ AUDIO_INSTANCES

AUDIO_INSTANCES

◆ g_profile_E_SF

actor_process_profile_definition g_profile_E_SF
extern
Initial value:
= {
7,
sizeof(e_sf_class),
0,
0,
123,
0x00040000,
}
Stalfos.
Definition d_a_e_sf.h:17
static actor_method_class l_daE_SF_Method
Definition d_a_e_sf.cpp:1878
@ PROC_E_SF
Definition d_procname.h:449
actor_method_class g_fopAc_Method
@ fopAc_CULLBOX_CUSTOM_e
Definition f_op_actor.h:70
@ fopAc_ENEMY_e
Definition f_op_actor.h:40
@ fpcLy_CURRENT_e
Definition f_pc_layer_tag.h:9
leafdraw_method_class g_fpcLf_Method
Definition f_pc_leaf.cpp:63
@ fpcPi_CURRENT_e
Definition f_pc_priority.h:8
leafdraw_method_class base
Definition f_op_actor.h:9
process_method_class base
Definition f_pc_leaf.h:12

◆ l_daE_SF_Method

actor_method_class l_daE_SF_Method
static
Initial value:
= {
}
static int daE_SF_Execute(e_sf_class *i_this)
Definition d_a_e_sf.cpp:1497
static int daE_SF_Draw(e_sf_class *i_this)
Definition d_a_e_sf.cpp:206
static int daE_SF_IsDelete(e_sf_class *i_this)
Definition d_a_e_sf.cpp:1676
static int daE_SF_Delete(e_sf_class *i_this)
Definition d_a_e_sf.cpp:1680
static cPhs__Step daE_SF_Create(fopAc_ac_c *a_this)
Definition d_a_e_sf.cpp:1742
int(* process_method_func)(void *)
Definition f_pc_method.h:7

◆ l_HIO

daE_SF_HIO_c l_HIO
static

◆ l_initHIO

bool l_initHIO
static

◆ ret_ct

int ret_ct
static

◆ target_info

fopAc_ac_c* target_info[10]
static

◆ target_info_count

int target_info_count
static