Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_kankyo.h File Reference

Go to the source code of this file.

Classes

struct  LIGHT_INFLUENCE
 
struct  WIND_INFLUENCE
 
struct  WIND_INF_ENTITY
 
struct  EFLIGHT_PROC
 
struct  SND_INFLUENCE
 
struct  DALKMIST_INFLUENCE
 
struct  DUNGEON_LIGHT
 
struct  BOSS_LIGHT
 
struct  GB_WIND_INFLUENCE
 
struct  EF_THUNDER
 
struct  GB_MAPLE_COL_CHANGE
 
struct  LightStatus
 
class  dKy_tevstr_c
 
struct  dKy_pol_arg_struct
 
struct  dKy_color_data_struct
 
struct  dKy_pol_efftbl_struct
 
struct  dKy_pol_effcol_struct
 
struct  dKy_pol_sound_struct
 
class  dScnKy_env_light_c
 

Enumerations

enum  dKy_dice_wether_mode {
  DICE_MODE_SUNNY_e , DICE_MODE_CLOUDY_e , DICE_MODE_RAIN_LIGHT_e , DICE_MODE_RAIN_HEAVY_e ,
  DICE_MODE_THUNDER_LIGHT_e , DICE_MODE_THUNDER_HEAVY_e , DICE_MODE_UNK6_e , DICE_MODE_DONE_e = 0xFF
}
 
enum  dKy_dice_wether_state { DICE_STATE_RESET_e , DICE_STATE_INIT_e , DICE_STATE_EXEC_e , DICE_STATE_NEXT_e }
 

Functions

void dKy_set_nexttime (f32)
 
void dKy_itudemo_se ()
 
BOOL dKy_darkworld_spot_check (char const *stageName, int roomNo)
 Returns TRUE if a given room would be loaded in twilight. This function always behaves as if the player has not cleared any twilights.
 
void dKy_darkworld_Area_set (char const *stageName, int roomNo)
 
void dKy_FiveSenses_fullthrottle_dark ()
 
s32 dKy_daynight_check ()
 
void dKy_clear_game_init ()
 
void dKy_setLight_init ()
 
u8 dKy_pol_sound_get (cBgS_PolyInfo const *param_0)
 
void dKy_depth_dist_set (void *param_0)
 
void dKy_instant_rainchg ()
 
void dKy_instant_timechg (f32)
 
static void dKy_set_vrboxsoracol_ratio (f32 ratio)
 
static void dKy_set_vrboxkumocol_ratio (f32 ratio)
 
void dKy_actor_addcol_set (s16 param_0, s16 param_1, s16 param_2, f32 param_3)
 
void dKy_fog_startendz_set (f32 param_0, f32 param_1, f32 param_2)
 
static void dKy_vrbox_addcol_set (s16 param_0, s16 param_1, s16 param_2, f32 param_3)
 
void dKy_GxFog_set ()
 
static void GxFog_set ()
 
static void GxXFog_set ()
 
u8 dKy_pol_argument_get (cBgS_PolyInfo const *i_poly)
 
void dKy_Sound_set (cXyz i_pos, int param_1, fpc_ProcID i_actorID, int param_3)
 
void dKy_bg_MAxx_proc (void *param_0)
 
void dKy_change_colpat (u8 colpat)
 
void dKy_BossLight_set (cXyz *param_0, _GXColor *param_1, f32 param_2, u8 param_3)
 
void dKy_custom_colset (u8 prevGather, u8 curGather, f32 blend)
 
void dKy_setLight ()
 
cXyz dKy_plight_near_pos ()
 
void dKy_BossSpotLight_set (cXyz *param_0, f32 param_1, f32 param_2, f32 param_3, _GXColor *param_4, f32 param_5, u8 param_6, u8 param_7)
 
static void dKy_calc_color_set (_GXColorS10 *param_0, color_RGB_class *param_1, color_RGB_class *param_2, color_RGB_class *param_3, color_RGB_class *param_4, f32 param_5, f32 param_6, _GXColorS10 param_7, f32 param_8)
 
static void dKy_twilight_camelight_set ()
 
u8 dKy_shadow_mode_check (u8 mode)
 
void dKy_shadow_mode_set (u8 mode)
 
void dKy_shadow_mode_reset (u8 mode)
 
void dKy_Itemgetcol_chg_on ()
 
void dKy_actor_addcol_amb_set (s16 r, s16 g, s16 b, f32 factor)
 
void dKy_bg_addcol_amb_set (s16 r, s16 g, s16 b, f32 factor)
 
int dKy_WolfEyeLight_set (cXyz *param_0, f32 param_1, f32 param_2, f32 param_3, GXColor *param_4, f32 param_5, u8 param_6, u8 param_7)
 
BOOL dKy_TeachWind_existence_chk ()
 
 STATIC_ASSERT (sizeof(dKy_tevstr_c)==0x388)
 
 STATIC_ASSERT (sizeof(dScnKy_env_light_c)==4880)
 
dScnKy_env_light_cdKy_getEnvlight ()
 
u8 dKy_darkworld_stage_check (char const *, int)
 Returns TRUE if (1) the room is one which can be loaded in twilight, (2) there is nothing currently preventing it from being loaded in twilight, and (3) the player has not cleared the relevant dark level (Faron Twilight, etc.). Otherwise returns FALSE.
 
BOOL dKy_withwarp_capture_check ()
 
bool dKy_darkworld_check ()
 
void dKy_undwater_filter_draw ()
 
BOOL dKy_camera_water_in_status_check ()
 
static int dKy_Outdoor_check ()
 
s32 dKy_getdaytime_hour ()
 
s32 dKy_getdaytime_minute ()
 
s32 dKy_get_dayofweek ()
 
s32 dKy_getDarktime_minute ()
 
s32 dKy_getDarktime_hour ()
 
static void dKy_Sound_init ()
 
void dKy_setLight_nowroom (char)
 
void dKy_setLight_nowroom_actor (dKy_tevstr_c *)
 
void dKy_setLight_again ()
 
void dKy_GxFog_tevstr_set (dKy_tevstr_c *)
 
void dKy_plight_set (LIGHT_INFLUENCE *param_0)
 
void dKy_plight_priority_set (LIGHT_INFLUENCE *param_0)
 
void dKy_efplight_set (LIGHT_INFLUENCE *param_0)
 
void dKy_efplight_cut (LIGHT_INFLUENCE *param_0)
 
void dKy_tevstr_init (dKy_tevstr_c *param_0, s8 param_1, u8 param_2)
 
SND_INFLUENCEdKy_Sound_get ()
 
void dKy_plight_cut (LIGHT_INFLUENCE *param_0)
 
void dKy_dalkmist_inf_set (DALKMIST_INFLUENCE *)
 
void dKy_dalkmist_inf_cut (DALKMIST_INFLUENCE *)
 
int dKy_rain_check ()
 
void dKy_set_allcol_ratio (f32 ratio)
 
void dKy_set_actcol_ratio (f32 ratio)
 
void dKy_set_bgcol_ratio (f32 ratio)
 
void dKy_set_fogcol_ratio (f32 ratio)
 
void dKy_set_vrboxcol_ratio (f32 ratio)
 
f32 dKy_get_parcent (f32 param_0, f32 param_1, f32 param_2)
 
void dKy_setLight_nowroom_grass (char param_0, f32 param_1)
 
void dKy_Global_amb_set (dKy_tevstr_c *i_tevstr)
 
u8 dKy_pol_eff_prim_get (cBgS_PolyInfo const *param_0, _GXColor *param_1)
 
void dKy_pol_eff_env_get (cBgS_PolyInfo const *param_0, _GXColor *param_1)
 
u8 dKy_pol_eff_alpha_get (cBgS_PolyInfo const *param_0)
 
f32 dKy_pol_eff_ratio_get (cBgS_PolyInfo const *param_0)
 
void dKy_pol_eff2_prim_get (cBgS_PolyInfo const *param_0, _GXColor *param_1)
 
void dKy_pol_eff2_env_get (cBgS_PolyInfo const *param_0, _GXColor *param_1)
 
u8 dKy_pol_eff2_alpha_get (cBgS_PolyInfo const *param_0)
 
f32 dKy_pol_eff2_ratio_get (cBgS_PolyInfo const *param_0)
 
u8 dKy_pol_efftype_get (cBgS_PolyInfo const *param_0)
 
u8 dKy_pol_efftype2_get (cBgS_PolyInfo const *param_0)
 
void dKy_ParticleColor_get_actor (cXyz *param_0, dKy_tevstr_c *param_1, _GXColor *param_2, _GXColor *param_3, _GXColor *param_4, _GXColor *param_5, f32 param_6)
 
void dKy_ParticleColor_get_bg (cXyz *param_0, dKy_tevstr_c *param_1, _GXColor *param_2, _GXColor *param_3, _GXColor *param_4, _GXColor *param_5, f32 param_6)
 
_GXColor dKy_light_influence_col (_GXColor *param_0, f32 param_1)
 
static void dKy_WaterIn_Light_set ()
 
void dKy_SordFlush_set (cXyz param_0, int param_1)
 
void dKy_camera_water_in_status_set (u8 status)
 

Variables

dScnKy_env_light_c g_env_light
 

Enumeration Type Documentation

◆ dKy_dice_wether_mode

Enumerator
DICE_MODE_SUNNY_e 
DICE_MODE_CLOUDY_e 
DICE_MODE_RAIN_LIGHT_e 
DICE_MODE_RAIN_HEAVY_e 
DICE_MODE_THUNDER_LIGHT_e 
DICE_MODE_THUNDER_HEAVY_e 
DICE_MODE_UNK6_e 
DICE_MODE_DONE_e 

◆ dKy_dice_wether_state

Enumerator
DICE_STATE_RESET_e 
DICE_STATE_INIT_e 
DICE_STATE_EXEC_e 
DICE_STATE_NEXT_e 

Function Documentation

◆ dKy_actor_addcol_amb_set()

void dKy_actor_addcol_amb_set ( s16  r,
s16  g,
s16  b,
f32  factor 
)

◆ dKy_actor_addcol_set()

void dKy_actor_addcol_set ( s16  param_0,
s16  param_1,
s16  param_2,
f32  param_3 
)

◆ dKy_bg_addcol_amb_set()

void dKy_bg_addcol_amb_set ( s16  r,
s16  g,
s16  b,
f32  factor 
)

◆ dKy_bg_MAxx_proc()

void dKy_bg_MAxx_proc ( void param_0)

◆ dKy_BossLight_set()

void dKy_BossLight_set ( cXyz param_0,
_GXColor param_1,
f32  param_2,
u8  param_3 
)

◆ dKy_BossSpotLight_set()

void dKy_BossSpotLight_set ( cXyz param_0,
f32  param_1,
f32  param_2,
f32  param_3,
_GXColor param_4,
f32  param_5,
u8  param_6,
u8  param_7 
)

◆ dKy_calc_color_set()

static void dKy_calc_color_set ( _GXColorS10 param_0,
color_RGB_class param_1,
color_RGB_class param_2,
color_RGB_class param_3,
color_RGB_class param_4,
f32  param_5,
f32  param_6,
_GXColorS10  param_7,
f32  param_8 
)
static

◆ dKy_camera_water_in_status_check()

BOOL dKy_camera_water_in_status_check ( )

◆ dKy_camera_water_in_status_set()

void dKy_camera_water_in_status_set ( u8  status)

◆ dKy_change_colpat()

void dKy_change_colpat ( u8  colpat)

◆ dKy_clear_game_init()

void dKy_clear_game_init ( )

◆ dKy_custom_colset()

void dKy_custom_colset ( u8  prevGather,
u8  curGather,
f32  blend 
)

◆ dKy_dalkmist_inf_cut()

void dKy_dalkmist_inf_cut ( DALKMIST_INFLUENCE param_0)

◆ dKy_dalkmist_inf_set()

void dKy_dalkmist_inf_set ( DALKMIST_INFLUENCE param_0)

◆ dKy_darkworld_Area_set()

void dKy_darkworld_Area_set ( char const stageName,
int  roomNo 
)

◆ dKy_darkworld_check()

bool dKy_darkworld_check ( )

◆ dKy_darkworld_spot_check()

BOOL dKy_darkworld_spot_check ( char const stageName,
int  roomNo 
)

Returns TRUE if a given room would be loaded in twilight. This function always behaves as if the player has not cleared any twilights.

For example, Eldin Field will always return TRUE. Faron Woods on the other hand might return TRUE or FALSE depending on whether or not the player has completed Ordon Day 2.

Parameters
stageNamestage name
roomNoroom number
Returns
BOOL Returns TRUE if a given room would be loaded in twilight. This function always behaves as if the player has not cleared any twilights.

◆ dKy_darkworld_stage_check()

u8 dKy_darkworld_stage_check ( char const stageName,
int  roomNo 
)

Returns TRUE if (1) the room is one which can be loaded in twilight, (2) there is nothing currently preventing it from being loaded in twilight, and (3) the player has not cleared the relevant dark level (Faron Twilight, etc.). Otherwise returns FALSE.

Parameters
stageNamestage name
roomNoroom number
Returns
BOOL Returns TRUE if the room can be loaded as twilight and the player has not already cleared it, else FALSE.

◆ dKy_daynight_check()

s32 dKy_daynight_check ( )

◆ dKy_depth_dist_set()

void dKy_depth_dist_set ( void param_0)

◆ dKy_efplight_cut()

void dKy_efplight_cut ( LIGHT_INFLUENCE param_0)

◆ dKy_efplight_set()

void dKy_efplight_set ( LIGHT_INFLUENCE param_0)

◆ dKy_FiveSenses_fullthrottle_dark()

void dKy_FiveSenses_fullthrottle_dark ( )

◆ dKy_fog_startendz_set()

void dKy_fog_startendz_set ( f32  param_0,
f32  param_1,
f32  param_2 
)

◆ dKy_get_dayofweek()

s32 dKy_get_dayofweek ( )

◆ dKy_get_parcent()

f32 dKy_get_parcent ( f32  param_0,
f32  param_1,
f32  param_2 
)

◆ dKy_getDarktime_hour()

s32 dKy_getDarktime_hour ( )

◆ dKy_getDarktime_minute()

s32 dKy_getDarktime_minute ( )

◆ dKy_getdaytime_hour()

s32 dKy_getdaytime_hour ( )

◆ dKy_getdaytime_minute()

s32 dKy_getdaytime_minute ( )

◆ dKy_getEnvlight()

dScnKy_env_light_c * dKy_getEnvlight ( )
inline

◆ dKy_Global_amb_set()

void dKy_Global_amb_set ( dKy_tevstr_c i_tevstr)

◆ dKy_GxFog_set()

void dKy_GxFog_set ( )

◆ dKy_GxFog_tevstr_set()

void dKy_GxFog_tevstr_set ( dKy_tevstr_c param_0)

◆ dKy_instant_rainchg()

void dKy_instant_rainchg ( )

◆ dKy_instant_timechg()

void dKy_instant_timechg ( f32  time)

◆ dKy_Itemgetcol_chg_on()

void dKy_Itemgetcol_chg_on ( )

◆ dKy_itudemo_se()

void dKy_itudemo_se ( )

◆ dKy_light_influence_col()

_GXColor dKy_light_influence_col ( _GXColor param_0,
f32  param_1 
)

◆ dKy_Outdoor_check()

static int dKy_Outdoor_check ( )
static

◆ dKy_ParticleColor_get_actor()

void dKy_ParticleColor_get_actor ( cXyz param_0,
dKy_tevstr_c param_1,
_GXColor param_2,
_GXColor param_3,
_GXColor param_4,
_GXColor param_5,
f32  param_6 
)

◆ dKy_ParticleColor_get_bg()

void dKy_ParticleColor_get_bg ( cXyz param_0,
dKy_tevstr_c param_1,
_GXColor param_2,
_GXColor param_3,
_GXColor param_4,
_GXColor param_5,
f32  param_6 
)

◆ dKy_plight_cut()

void dKy_plight_cut ( LIGHT_INFLUENCE param_0)

◆ dKy_plight_near_pos()

cXyz dKy_plight_near_pos ( )

◆ dKy_plight_priority_set()

void dKy_plight_priority_set ( LIGHT_INFLUENCE param_0)

◆ dKy_plight_set()

void dKy_plight_set ( LIGHT_INFLUENCE param_0)

◆ dKy_pol_argument_get()

u8 dKy_pol_argument_get ( cBgS_PolyInfo const i_poly)

◆ dKy_pol_eff2_alpha_get()

u8 dKy_pol_eff2_alpha_get ( cBgS_PolyInfo const param_0)

◆ dKy_pol_eff2_env_get()

void dKy_pol_eff2_env_get ( cBgS_PolyInfo const param_0,
_GXColor param_1 
)

◆ dKy_pol_eff2_prim_get()

void dKy_pol_eff2_prim_get ( cBgS_PolyInfo const param_0,
_GXColor param_1 
)

◆ dKy_pol_eff2_ratio_get()

f32 dKy_pol_eff2_ratio_get ( cBgS_PolyInfo const param_0)

◆ dKy_pol_eff_alpha_get()

u8 dKy_pol_eff_alpha_get ( cBgS_PolyInfo const param_0)

◆ dKy_pol_eff_env_get()

void dKy_pol_eff_env_get ( cBgS_PolyInfo const param_0,
_GXColor param_1 
)

◆ dKy_pol_eff_prim_get()

u8 dKy_pol_eff_prim_get ( cBgS_PolyInfo const param_0,
_GXColor param_1 
)

◆ dKy_pol_eff_ratio_get()

f32 dKy_pol_eff_ratio_get ( cBgS_PolyInfo const param_0)

◆ dKy_pol_efftype2_get()

u8 dKy_pol_efftype2_get ( cBgS_PolyInfo const param_0)

◆ dKy_pol_efftype_get()

u8 dKy_pol_efftype_get ( cBgS_PolyInfo const param_0)

◆ dKy_pol_sound_get()

u8 dKy_pol_sound_get ( cBgS_PolyInfo const param_0)

◆ dKy_rain_check()

int dKy_rain_check ( )

◆ dKy_set_actcol_ratio()

void dKy_set_actcol_ratio ( f32  ratio)

◆ dKy_set_allcol_ratio()

void dKy_set_allcol_ratio ( f32  ratio)

◆ dKy_set_bgcol_ratio()

void dKy_set_bgcol_ratio ( f32  ratio)

◆ dKy_set_fogcol_ratio()

void dKy_set_fogcol_ratio ( f32  ratio)

◆ dKy_set_nexttime()

void dKy_set_nexttime ( f32  nextTime)

◆ dKy_set_vrboxcol_ratio()

void dKy_set_vrboxcol_ratio ( f32  ratio)

◆ dKy_set_vrboxkumocol_ratio()

static void dKy_set_vrboxkumocol_ratio ( f32  ratio)
static

◆ dKy_set_vrboxsoracol_ratio()

static void dKy_set_vrboxsoracol_ratio ( f32  ratio)
static

◆ dKy_setLight()

void dKy_setLight ( )

◆ dKy_setLight_again()

void dKy_setLight_again ( )

◆ dKy_setLight_init()

void dKy_setLight_init ( )

◆ dKy_setLight_nowroom()

void dKy_setLight_nowroom ( char  param_0)

◆ dKy_setLight_nowroom_actor()

void dKy_setLight_nowroom_actor ( dKy_tevstr_c param_0)

◆ dKy_setLight_nowroom_grass()

void dKy_setLight_nowroom_grass ( char  param_0,
f32  param_1 
)

◆ dKy_shadow_mode_check()

u8 dKy_shadow_mode_check ( u8  mode)

◆ dKy_shadow_mode_reset()

void dKy_shadow_mode_reset ( u8  mode)

◆ dKy_shadow_mode_set()

void dKy_shadow_mode_set ( u8  mode)

◆ dKy_SordFlush_set()

void dKy_SordFlush_set ( cXyz  param_0,
int  param_1 
)

◆ dKy_Sound_get()

SND_INFLUENCE * dKy_Sound_get ( )

◆ dKy_Sound_init()

static void dKy_Sound_init ( )
static

◆ dKy_Sound_set()

void dKy_Sound_set ( cXyz  i_pos,
int  param_1,
fpc_ProcID  i_actorID,
int  param_3 
)

◆ dKy_TeachWind_existence_chk()

BOOL dKy_TeachWind_existence_chk ( )

◆ dKy_tevstr_init()

void dKy_tevstr_init ( dKy_tevstr_c param_0,
s8  param_1,
u8  param_2 
)

◆ dKy_twilight_camelight_set()

static void dKy_twilight_camelight_set ( )
static

◆ dKy_undwater_filter_draw()

void dKy_undwater_filter_draw ( )

◆ dKy_vrbox_addcol_set()

static void dKy_vrbox_addcol_set ( s16  param_0,
s16  param_1,
s16  param_2,
f32  param_3 
)
static

◆ dKy_WaterIn_Light_set()

static void dKy_WaterIn_Light_set ( )
static

◆ dKy_withwarp_capture_check()

BOOL dKy_withwarp_capture_check ( )

◆ dKy_WolfEyeLight_set()

int dKy_WolfEyeLight_set ( cXyz param_0,
f32  param_1,
f32  param_2,
f32  param_3,
GXColor param_4,
f32  param_5,
u8  param_6,
u8  param_7 
)

◆ GxFog_set()

static void GxFog_set ( )
static

◆ GxXFog_set()

static void GxXFog_set ( )
static

◆ STATIC_ASSERT() [1/2]

STATIC_ASSERT ( sizeof(dKy_tevstr_c = =0x388)

◆ STATIC_ASSERT() [2/2]

STATIC_ASSERT ( sizeof(dScnKy_env_light_c = =4880)

Variable Documentation

◆ g_env_light

dScnKy_env_light_c g_env_light
extern