SSBM Decomp
Loading...
Searching...
No Matches
grshrineroute.c File Reference
#include "grshrineroute.h"
#include "granime.h"
#include "grdisplay.h"
#include "grlib.h"
#include "grmaterial.h"
#include "ground.h"
#include "grzakogenerator.h"
#include "inlines.h"
#include "stage.h"
#include "types.h"
#include "cm/camera.h"
#include "ef/efsync.h"
#include "ft/ftdevice.h"
#include "ft/ftlib.h"
#include "gm/gm_1601.h"
#include "lb/lb_00B0.h"
#include "lb/lbspdisplay.h"
#include "lb/lbvector.h"
#include "mp/mplib.h"
#include "pl/player.h"
#include <math_ppc.h>
#include <trigf.h>
#include <dolphin/types.h>
#include <baselib/debug.h>
#include <baselib/gobj.h>
#include <baselib/gobjgxlink.h>
#include <baselib/gobjproc.h>
#include <baselib/jobj.h>
#include <baselib/lobj.h>
#include <baselib/random.h>

Data Structures

struct  grShrineRoute_YakumonoParam
struct  grSh_Route_LightConfig

Functions

static void grShrineRoute_OnDemoInit (bool)
static void grShrineRoute_OnInit (void)
static void grShrineRoute_OnLoad (void)
static void grShrineRoute_OnStart (void)
static bool grShrineRoute_802088B8 (void)
static HSD_GObjgrShrineRoute_802088C0 (int)
static void grShrineRoute_802089AC (Ground_GObj *)
static bool grShrineRoute_802089D8 (Ground_GObj *)
static void grShrineRoute_802089E0 (Ground_GObj *)
static void grShrineRoute_802089E4 (Ground_GObj *)
static void grShrineRoute_802089E8 (Ground_GObj *)
static bool grShrineRoute_80208A28 (Ground_GObj *)
static void grShrineRoute_80208A30 (Ground_GObj *)
static void grShrineRoute_80208A34 (Ground_GObj *)
static void fn_80208A38 (HSD_GObj *)
static void grShrineRoute_80208D14 (Ground_GObj *)
static bool grShrineRoute_80208F0C (Ground_GObj *)
static bool grShrineRoute_80208F14 (void)
static void grShrineRoute_80208F70 (Ground_GObj *)
static void grShrineRoute_80209AEC (Ground_GObj *)
static void grShrineRoute_80209AF0 (Ground_GObj *)
static bool grShrineRoute_80209BE4 (Ground_GObj *)
static void grShrineRoute_80209BEC (Ground_GObj *)
static void grShrineRoute_8020A100 (Ground_GObj *)
static void grShrineRoute_8020A104 (Ground_GObj *)
static bool grShrineRoute_8020A214 (Ground_GObj *)
static void grShrineRoute_8020A21C (Ground_GObj *)
static void grShrineRoute_8020A864 (Ground_GObj *)
static void grShrineRoute_8020A868 (Ground_GObj *)
static bool grShrineRoute_8020A894 (Ground_GObj *)
static void grShrineRoute_8020A89C (Ground_GObj *)
static void grShrineRoute_8020A8A0 (Ground_GObj *)
static void grShrineRoute_8020A8A4 (Ground_GObj *)
static void grShrineRoute_8020AA40 (HSD_GObj *)
static HSD_LObjgrShrineRoute_8020AB58 (Ground_GObj *)
static HSD_LObjgrShrineRoute_8020AC44 (HSD_GObj *)
static bool grShrineRoute_8020AD24 (int)
static void onJointCollision (void *user_data, int joint_id, CollData *coll, int coll_x50, mpLib_GroundEnum ground_kind, float delta_y)
 Joint collision callback for ground surfaces.
static s32 grShrineRoute_8020AE08 (HSD_GObj *, HSD_GObj *, s32 *)
static void grShrineRoute_8020AF38 (HSD_GObj *, s32)
static void grShrineRoute_8020B020 (HSD_GObj *gobj, int r4, bool hide)
static void grShrineRoute_8020B0AC (void)
static DynamicsDescgrShrineRoute_OnTouchLine (enum_t)
static bool grShrineRoute_OnCheckShadowRender (Vec3 *, int arg, HSD_JObj *jobj)
f32 grShrineRoute_8020A8A4_rand (void)
static void grShrineRoute_StackPad (GXColor color)
static GroundgetGp (HSD_GObj *gobj)

Variables

static s16 grSh_Route_803E58E0 [] = { 51, 79, 101, 102, 115, 116, 131, 0 }
static StageCallbacks stage_callbacks []
StageData grSh_Route_StageData
static struct grShrineRoute_YakumonoParamyakumono_param
static struct grSh_Route_LightConfig light_config []
static float lobj0_shininess = 16.0f
static HSD_LightDesc lobj0
static float lobj1_shininess = 16.0f
static HSD_LightDesc lobj1

Function Documentation

◆ grShrineRoute_OnDemoInit()

void grShrineRoute_OnDemoInit ( bool arg)
static

◆ grShrineRoute_OnInit()

void grShrineRoute_OnInit ( void )
static

◆ grShrineRoute_OnLoad()

void grShrineRoute_OnLoad ( void )
static

◆ grShrineRoute_OnStart()

void grShrineRoute_OnStart ( void )
static

◆ grShrineRoute_802088B8()

bool grShrineRoute_802088B8 ( void )
static

◆ grShrineRoute_802088C0()

HSD_GObj * grShrineRoute_802088C0 ( int gobj_id)
static

◆ grShrineRoute_802089AC()

void grShrineRoute_802089AC ( Ground_GObj * gobj)
static

◆ grShrineRoute_802089D8()

bool grShrineRoute_802089D8 ( Ground_GObj * arg)
static

◆ grShrineRoute_802089E0()

void grShrineRoute_802089E0 ( Ground_GObj * arg)
static

◆ grShrineRoute_802089E4()

void grShrineRoute_802089E4 ( Ground_GObj * arg)
static

◆ grShrineRoute_802089E8()

void grShrineRoute_802089E8 ( Ground_GObj * gobj)
static

◆ grShrineRoute_80208A28()

bool grShrineRoute_80208A28 ( Ground_GObj * arg)
static

◆ grShrineRoute_80208A30()

void grShrineRoute_80208A30 ( Ground_GObj * arg)
static

◆ grShrineRoute_80208A34()

void grShrineRoute_80208A34 ( Ground_GObj * arg)
static

◆ fn_80208A38()

void fn_80208A38 ( HSD_GObj * gobj)
static

◆ grShrineRoute_80208D14()

void grShrineRoute_80208D14 ( Ground_GObj * gobj)
static

◆ grShrineRoute_80208F0C()

bool grShrineRoute_80208F0C ( Ground_GObj * arg)
static

◆ grShrineRoute_80208F14()

bool grShrineRoute_80208F14 ( void )
static

◆ grShrineRoute_80208F70()

void grShrineRoute_80208F70 ( Ground_GObj * gobj)
static

◆ grShrineRoute_80209AEC()

void grShrineRoute_80209AEC ( Ground_GObj * arg)
static

◆ grShrineRoute_80209AF0()

void grShrineRoute_80209AF0 ( Ground_GObj * gobj)
static

◆ grShrineRoute_80209BE4()

bool grShrineRoute_80209BE4 ( Ground_GObj * arg)
static

◆ grShrineRoute_80209BEC()

void grShrineRoute_80209BEC ( Ground_GObj * gobj)
static

◆ grShrineRoute_8020A100()

void grShrineRoute_8020A100 ( Ground_GObj * arg)
static

◆ grShrineRoute_8020A104()

void grShrineRoute_8020A104 ( Ground_GObj * gobj)
static

◆ grShrineRoute_8020A214()

bool grShrineRoute_8020A214 ( Ground_GObj * arg)
static

◆ grShrineRoute_8020A21C()

void grShrineRoute_8020A21C ( Ground_GObj * gobj)
static

◆ grShrineRoute_8020A864()

void grShrineRoute_8020A864 ( Ground_GObj * arg)
static

◆ grShrineRoute_8020A868()

void grShrineRoute_8020A868 ( Ground_GObj * gobj)
static

◆ grShrineRoute_8020A894()

bool grShrineRoute_8020A894 ( Ground_GObj * arg)
static

◆ grShrineRoute_8020A89C()

void grShrineRoute_8020A89C ( Ground_GObj * arg)
static

◆ grShrineRoute_8020A8A0()

void grShrineRoute_8020A8A0 ( Ground_GObj * arg)
static

◆ grShrineRoute_8020A8A4()

void grShrineRoute_8020A8A4 ( Ground_GObj * gobj)
static

◆ grShrineRoute_8020AA40()

void grShrineRoute_8020AA40 ( HSD_GObj * gobj)
static

◆ grShrineRoute_8020AB58()

HSD_LObj * grShrineRoute_8020AB58 ( Ground_GObj * gobj)
static

◆ grShrineRoute_8020AC44()

HSD_LObj * grShrineRoute_8020AC44 ( HSD_GObj * gobj)
static

◆ grShrineRoute_8020AD24()

bool grShrineRoute_8020AD24 ( int arg)
static

◆ onJointCollision()

void onJointCollision ( void * user_data,
int joint_id,
CollData * coll,
int coll_x50,
mpLib_GroundEnum ground_kind,
float delta_y )
static

Joint collision callback for ground surfaces.

Parameters
user_dataSaved untyped data attached to the callback.
coll_x50Unknown, sourced from CollData::x50. dist according to fn_801FC9AC?
delta_yRelative y-offset since the collision started, equal to coll->cur_pos.y - coll->last_pos.y

◆ grShrineRoute_8020AE08()

s32 grShrineRoute_8020AE08 ( HSD_GObj * gobj,
HSD_GObj * player_gobj,
s32 * out )
static

◆ grShrineRoute_8020AF38()

void grShrineRoute_8020AF38 ( HSD_GObj * gobj,
s32 arg1 )
static

◆ grShrineRoute_8020B020()

void grShrineRoute_8020B020 ( HSD_GObj * gobj,
int r4,
bool hide )
static

◆ grShrineRoute_8020B0AC()

void grShrineRoute_8020B0AC ( void )
static

◆ grShrineRoute_OnTouchLine()

DynamicsDesc * grShrineRoute_OnTouchLine ( enum_t arg)
static

◆ grShrineRoute_OnCheckShadowRender()

bool grShrineRoute_OnCheckShadowRender ( Vec3 * a,
int arg,
HSD_JObj * jobj )
static

◆ grShrineRoute_8020A8A4_rand()

f32 grShrineRoute_8020A8A4_rand ( void )
inline

◆ grShrineRoute_StackPad()

void grShrineRoute_StackPad ( GXColor color)
inlinestatic

◆ getGp()

Ground * getGp ( HSD_GObj * gobj)
inlinestatic

Variable Documentation

◆ grSh_Route_803E58E0

s16 grSh_Route_803E58E0[] = { 51, 79, 101, 102, 115, 116, 131, 0 }
static

◆ stage_callbacks

StageCallbacks stage_callbacks[]
static

◆ grSh_Route_StageData

StageData grSh_Route_StageData
Initial value:
= {
"/GrNSr.dat",
(1 << 0),
0,
}
static StageCallbacks stage_callbacks[]
Definition grheal.c:85
static bool grShrineRoute_OnCheckShadowRender(Vec3 *, int arg, HSD_JObj *jobj)
Definition grshrineroute.c:1575
static bool grShrineRoute_802088B8(void)
Definition grshrineroute.c:218
static void grShrineRoute_OnDemoInit(bool)
Definition grshrineroute.c:183
static void grShrineRoute_OnStart(void)
Definition grshrineroute.c:203
static DynamicsDesc * grShrineRoute_OnTouchLine(enum_t)
Definition grshrineroute.c:1570
static void grShrineRoute_OnInit(void)
Definition grshrineroute.c:185
static void grShrineRoute_OnLoad(void)
Definition grshrineroute.c:198
@ Gr_Kind_ShrineRoute
Definition forward.h:87
#define NULL
Definition stddef.h:19

◆ yakumono_param

struct grShrineRoute_YakumonoParam* yakumono_param
static

◆ light_config

struct grSh_Route_LightConfig light_config[]
static

◆ lobj0_shininess

float lobj0_shininess = 16.0f
static

◆ lobj0

HSD_LightDesc lobj0
static
Initial value:
= {
0,
{ 0xFF, 0xFF, 0xFF, 0xFF },
}
static float lobj0_shininess
Definition grshrineroute.c:1350
#define LOBJ_DIFFUSE
Definition forward.h:169
#define LOBJ_FLAGS_B1
Definition forward.h:168

◆ lobj1_shininess

float lobj1_shininess = 16.0f
static

◆ lobj1

HSD_LightDesc lobj1
static
Initial value:
= {
0,
{ 0xFF, 0xFF, 0xFF, 0xFF },
}
static float lobj1_shininess
Definition grshrineroute.c:1387
#define LOBJ_SPECULAR
Definition forward.h:170