SSBM Decomp
Loading...
Searching...
No Matches
grzebes.c File Reference
#include "grzebes.h"
#include <platform.h>
#include "cm/camera.h"
#include "forward.h"
#include "ft/ftdevice.h"
#include "ft/ftlib.h"
#include "gr/granime.h"
#include "gr/grdatfiles.h"
#include "gr/grdisplay.h"
#include "gr/grlib.h"
#include "gr/grmaterial.h"
#include "gr/grzakogenerator.h"
#include "gr/inlines.h"
#include "lb/lb_00B0.h"
#include "lb/lbspdisplay.h"
#include "mp/mplib.h"
#include <math_ppc.h>
#include <dolphin/mtx.h>
#include <dolphin/os.h>
#include <baselib/gobjgxlink.h>
#include <baselib/gobjproc.h>
#include <baselib/jobj.h>
#include <baselib/lobj.h>
#include <baselib/random.h>

Data Structures

struct  grZe_ColorEntry
struct  grZe_AcidLevelEntry
struct  grZe_YakumonoParam
struct  grZe_BubbleEntry
struct  grZe_BubbleSpawnPos
struct  grZe_BubbleScales
struct  grZe_BubbleConfig
struct  grZe_BubbleState
struct  grZe_AcidState

Functions

static void grZebes_801D84A0 (bool arg)
static void grZebes_801D8528 (void)
void grZebes_801D852C (void)
static bool grZebes_801D8550 (void)
static Ground_GObjgrZebes_801D8558 (int)
static bool grZebes_801D8814 (Ground_GObj *arg)
static void grZebes_801D90FC (Ground_GObj *arg)
static bool grZebes_801D9254 (Ground_GObj *arg)
static void grZebes_801D93D8 (Ground_GObj *arg)
void grZebes_801D93DC (Ground_GObj *gobj)
static bool grZebes_801D9408 (Ground_GObj *arg)
static void grZebes_801D9410 (Ground_GObj *arg)
static void grZebes_801D94EC (Ground_GObj *arg)
static void fn_801D94F0 (Ground_GObj *gobj)
static bool grZebes_801D95B0 (Ground_GObj *arg)
static void grZebes_801D95B8 (Ground_GObj *arg)
static void grZebes_801D9754 (Ground_GObj *arg)
static bool grZebes_801D99D8 (Ground_GObj *arg)
static void grZebes_801DA0C4 (f32 level)
static void grZebes_801DA254 (Ground_GObj *gobj, f32 level)
static void grZebes_801D9F2C (Ground_GObj *arg)
static bool grZebes_801D9F7C (Ground_GObj *arg)
static void grZebes_801DA0C0 (Ground_GObj *arg)
static void grZebes_801DA3E8 (void)
static s32 grZebes_801DA528 (HSD_GObj *, void *, s32, s32)
static void fn_801DA9D8 (Item_GObj *arg0, Ground *gp, Vec3 *pos, HSD_GObj *fobj, f32 slope)
static void fn_801DA9F0 (Item_GObj *arg0, Ground *gp, Vec3 *pos, HSD_GObj *fobj, f32 slope)
static void fn_801DAC90 (Item_GObj *, Ground *, Vec3 *, HSD_GObj *, f32)
static s32 grZebes_801DAA08 (void)
static void grZebes_801DAE70 (s32, u8, f32, f32, f32)
static s32 grZebes_801DB3CC (HSD_GObj *gobj)
static bool grZebes_801DBB60 (Item_GObj *yaku)
static void grZebes_801DC260 (void)
static void grZebes_801DC408 (Ground_GObj *)
static void grZebes_801DC744 (s32, u8)
static void grZebes_801DC9DC (s32 arg)
static DynamicsDescgrZebes_801DCCB8 (enum_t arg)
static bool grZebes_801DCCC0 (Vec3 *arg, int arg0, HSD_JObj *jobj)
void grZebes_801D84A4 (void)
void grZebes_801D8644 (HSD_GObj *gobj)
void grZebes_801D881C (HSD_GObj *gobj)
void grZebes_801D9100 (HSD_GObj *gobj)
void grZebes_801D925C (HSD_GObj *gobj)
void grZebes_801D9508 (Ground_GObj *gobj)
void grZebes_801D9758 (Ground_GObj *gobj)
void grZebes_801D9798 (HSD_GObj *gobj)
void grZebes_801D99E0 (HSD_GObj *gobj)
void grZebes_801D9F30 (Ground_GObj *gobj)
void grZebes_801D9F84 (Ground_GObj *gobj)
static void grZebes_801DA254_inline1 (GXColor color)
static void grZebes_801DA254_inline2 (HSD_LObj *lobj, GXColor *color)
void grZebes_801DA3F4 (Vec3 *pos)
void grZebes_801DA4FC (Ground_GObj *gobj)
s32 grZebes_801DB088 (Ground *gp, s32 arg1)
static f32 grZebes_801DB3CC_dist2 (f32 dy, f32 dx)
static f32 grZebes_801DB3CC_normalize (f32 dist, f32 value)
static f32 grZebes_GetBubbleStartY (Vec3 *base)
static f32 grZebes_GetBubbleStartX (Vec3 *base)
static void grZebes_SpawnBubbleLine (Vec3 *base, grZe_BubbleScales *scales, s32 *ip, f32 *y_start, u8 arg1)
bool grZebes_801DCB64 (Vec3 *vec, int val)
bool grZebes_801DCBB0 (Vec3 *vec, int val)
bool grZebes_801DCBFC (Ground_GObj *gobj, HSD_GObj *fobj, void *arg)
f32 grZebes_801DCCC8 (void)

Variables

static grZe_YakumonoParamyakumono_param
static s32 grZe_804D6994
static s16 grZe_804D6998
static Vec3 grZe_8049F140 [2]
static Vec3 grZe_8049F158 [2]
static grZe_BubbleEntry grZe_8049F170 [20]
GrJoint grZe_803E1A10 []
StageCallbacks grZe_callbacks []
StageData grZe_StageData
static struct grZebesRoute_LightData const grZe_803B7FF0
Vec3 grZe_803E1B90 []
Vec3 grZe_803E1C80 [8]
grZe_BubbleConfig const grZe_803B8044
grZe_ColorEntry table [3]

Function Documentation

◆ grZebes_801D84A0()

void grZebes_801D84A0 ( bool arg)
static

◆ grZebes_801D8528()

void grZebes_801D8528 ( void )
static

◆ grZebes_801D852C()

void grZebes_801D852C ( void )

◆ grZebes_801D8550()

bool grZebes_801D8550 ( void )
static

◆ grZebes_801D8558()

Ground_GObj * grZebes_801D8558 ( int id)
static

◆ grZebes_801D8814()

bool grZebes_801D8814 ( Ground_GObj * arg)
static

◆ grZebes_801D90FC()

void grZebes_801D90FC ( Ground_GObj * arg)
static

◆ grZebes_801D9254()

bool grZebes_801D9254 ( Ground_GObj * arg)
static

◆ grZebes_801D93D8()

void grZebes_801D93D8 ( Ground_GObj * arg)
static

◆ grZebes_801D93DC()

void grZebes_801D93DC ( Ground_GObj * gobj)

◆ grZebes_801D9408()

bool grZebes_801D9408 ( Ground_GObj * arg)
static

◆ grZebes_801D9410()

void grZebes_801D9410 ( Ground_GObj * arg)
static

◆ grZebes_801D94EC()

void grZebes_801D94EC ( Ground_GObj * arg)
static

◆ fn_801D94F0()

void fn_801D94F0 ( Ground_GObj * gobj)
static

◆ grZebes_801D95B0()

bool grZebes_801D95B0 ( Ground_GObj * arg)
static

◆ grZebes_801D95B8()

void grZebes_801D95B8 ( Ground_GObj * arg)
static

◆ grZebes_801D9754()

void grZebes_801D9754 ( Ground_GObj * arg)
static

◆ grZebes_801D99D8()

bool grZebes_801D99D8 ( Ground_GObj * arg)
static

◆ grZebes_801DA0C4()

void grZebes_801DA0C4 ( f32 level)
static

◆ grZebes_801DA254()

void grZebes_801DA254 ( Ground_GObj * gobj,
f32 level )
static

◆ grZebes_801D9F2C()

void grZebes_801D9F2C ( Ground_GObj * arg)
static

◆ grZebes_801D9F7C()

bool grZebes_801D9F7C ( Ground_GObj * arg)
static

◆ grZebes_801DA0C0()

void grZebes_801DA0C0 ( Ground_GObj * arg)
static

◆ grZebes_801DA3E8()

void grZebes_801DA3E8 ( void )
static

◆ grZebes_801DA528()

s32 grZebes_801DA528 ( HSD_GObj * arg0,
void * arg1,
s32 arg2,
s32 arg3 )
static

◆ fn_801DA9D8()

void fn_801DA9D8 ( Item_GObj * arg0,
Ground * gp,
Vec3 * pos,
HSD_GObj * fobj,
f32 slope )
static

◆ fn_801DA9F0()

void fn_801DA9F0 ( Item_GObj * arg0,
Ground * gp,
Vec3 * pos,
HSD_GObj * fobj,
f32 slope )
static

◆ fn_801DAC90()

void fn_801DAC90 ( Item_GObj * arg0,
Ground * arg1,
Vec3 * arg2,
HSD_GObj * arg3,
f32 arg4 )
static

◆ grZebes_801DAA08()

s32 grZebes_801DAA08 ( void )
static

◆ grZebes_801DAE70()

void grZebes_801DAE70 ( s32 arg0,
u8 arg1,
f32 x,
f32 y,
f32 scale )
static

◆ grZebes_801DB3CC()

s32 grZebes_801DB3CC ( HSD_GObj * gobj)
static

◆ grZebes_801DBB60()

bool grZebes_801DBB60 ( Item_GObj * yaku)
static

◆ grZebes_801DC260()

void grZebes_801DC260 ( void )
static

◆ grZebes_801DC408()

void grZebes_801DC408 ( Ground_GObj * gobj)
static

◆ grZebes_801DC744()

void grZebes_801DC744 ( s32 arg0,
u8 arg1 )
static

◆ grZebes_801DC9DC()

void grZebes_801DC9DC ( s32 arg)
static

◆ grZebes_801DCCB8()

DynamicsDesc * grZebes_801DCCB8 ( enum_t arg)
static

◆ grZebes_801DCCC0()

bool grZebes_801DCCC0 ( Vec3 * arg,
int arg0,
HSD_JObj * jobj )
static

◆ grZebes_801D84A4()

void grZebes_801D84A4 ( void )

◆ grZebes_801D8644()

void grZebes_801D8644 ( HSD_GObj * gobj)

◆ grZebes_801D881C()

void grZebes_801D881C ( HSD_GObj * gobj)

◆ grZebes_801D9100()

void grZebes_801D9100 ( HSD_GObj * gobj)

◆ grZebes_801D925C()

void grZebes_801D925C ( HSD_GObj * gobj)

◆ grZebes_801D9508()

void grZebes_801D9508 ( Ground_GObj * gobj)

◆ grZebes_801D9758()

void grZebes_801D9758 ( Ground_GObj * gobj)

◆ grZebes_801D9798()

void grZebes_801D9798 ( HSD_GObj * gobj)

◆ grZebes_801D99E0()

void grZebes_801D99E0 ( HSD_GObj * gobj)

◆ grZebes_801D9F30()

void grZebes_801D9F30 ( Ground_GObj * gobj)

◆ grZebes_801D9F84()

void grZebes_801D9F84 ( Ground_GObj * gobj)

◆ grZebes_801DA254_inline1()

void grZebes_801DA254_inline1 ( GXColor color)
inlinestatic

◆ grZebes_801DA254_inline2()

void grZebes_801DA254_inline2 ( HSD_LObj * lobj,
GXColor * color )
inlinestatic

◆ grZebes_801DA3F4()

void grZebes_801DA3F4 ( Vec3 * pos)

◆ grZebes_801DA4FC()

void grZebes_801DA4FC ( Ground_GObj * gobj)

◆ grZebes_801DB088()

s32 grZebes_801DB088 ( Ground * gp,
s32 arg1 )

◆ grZebes_801DB3CC_dist2()

f32 grZebes_801DB3CC_dist2 ( f32 dy,
f32 dx )
inlinestatic

◆ grZebes_801DB3CC_normalize()

f32 grZebes_801DB3CC_normalize ( f32 dist,
f32 value )
inlinestatic

◆ grZebes_GetBubbleStartY()

f32 grZebes_GetBubbleStartY ( Vec3 * base)
inlinestatic

◆ grZebes_GetBubbleStartX()

f32 grZebes_GetBubbleStartX ( Vec3 * base)
inlinestatic

◆ grZebes_SpawnBubbleLine()

void grZebes_SpawnBubbleLine ( Vec3 * base,
grZe_BubbleScales * scales,
s32 * ip,
f32 * y_start,
u8 arg1 )
inlinestatic

◆ grZebes_801DCB64()

bool grZebes_801DCB64 ( Vec3 * vec,
int val )

◆ grZebes_801DCBB0()

bool grZebes_801DCBB0 ( Vec3 * vec,
int val )

◆ grZebes_801DCBFC()

bool grZebes_801DCBFC ( Ground_GObj * gobj,
HSD_GObj * fobj,
void * arg )

◆ grZebes_801DCCC8()

f32 grZebes_801DCCC8 ( void )

Variable Documentation

◆ yakumono_param

grZe_YakumonoParam* yakumono_param
static

◆ grZe_804D6994

s32 grZe_804D6994
static

◆ grZe_804D6998

s16 grZe_804D6998
static

◆ grZe_8049F140

Vec3 grZe_8049F140[2]
static

◆ grZe_8049F158

Vec3 grZe_8049F158[2]
static

◆ grZe_8049F170

grZe_BubbleEntry grZe_8049F170[20]
static

◆ grZe_803E1A10

GrJoint grZe_803E1A10[]
Initial value:
= {
{ 1, 6, 21 }, { 4, 6, 14 }, { 3, 6, 1 }, { 2, 7, 6 }, { 5, 7, 1 },
}

◆ grZe_callbacks

StageCallbacks grZe_callbacks[]

◆ grZe_StageData

StageData grZe_StageData
Initial value:
= {
"/GrZe.dat",
(1 << 0),
}
#define ARRAY_SIZE(arr)
Definition types.h:31
static DynamicsDesc * grZebes_801DCCB8(enum_t arg)
Definition grzebes.c:2431
static bool grZebes_801D8550(void)
Definition grzebes.c:276
StageCallbacks grZe_callbacks[]
Definition grzebes.c:186
static bool grZebes_801DCCC0(Vec3 *arg, int arg0, HSD_JObj *jobj)
Definition grzebes.c:2436
void grZebes_801D84A4(void)
Definition grzebes.c:255
static void grZebes_801D8528(void)
Definition grzebes.c:269
static void grZebes_801D84A0(bool arg)
Definition grzebes.c:253
void grZebes_801D852C(void)
Definition grzebes.c:271
GrJoint grZe_803E1A10[]
Definition grzebes.c:182
@ Gr_Kind_Zebes
Definition forward.h:63

◆ grZe_803B7FF0

struct grZebesRoute_LightData const grZe_803B7FF0
static
Initial value:
= {
{ 0.0f, 0.0f, 0.0f }, { 8.2f, -4.55f, 0.0f },
{ 7.59f, 2.5f, 0.0f }, { 8.589f, 1.215f, 0.0f },
{ 23.151f, 1.207f, 0.0f },
}

◆ grZe_803E1B90

Vec3 grZe_803E1B90[]
Initial value:
= {
{ -40.5f, -10.0f, 13.0f }, { -40.5f, -24.0f, 13.0f },
{ -5.5f, -13.0f, 23.5f }, { -5.5f, -27.0f, 23.5f },
{ -5.5f, 0.5f, 0.0f }, { -5.5f, -10.0f, 0.0f },
{ -8.0f, 4.5f, 32.0f }, { -8.0f, -14.5f, 32.0f },
{ -34.0f, 0.5f, 24.0f }, { -34.0f, -17.5f, 24.0f },
{ -23.5f, -12.0f, 5.5f }, { -23.5f, -23.0f, 5.5f },
{ 6.5f, 4.0f, 18.0f }, { 6.5f, -10.5f, 18.0f },
{ 10.0f, 0.5f, 9.5f }, { 10.0f, -10.0f, 9.5f },
{ -21.5f, 2.0f, 15.5f }, { -21.5f, -16.0f, 15.5f },
{ -59.0f, 27.5f, 6.0f }, { -59.0f, 17.0f, 6.0f },
}

◆ grZe_803E1C80

Vec3 grZe_803E1C80[8]
Initial value:
= {
{ 42.5f, -11.0f, 0.0f }, { 42.5f, -25.0f, 0.0f },
{ 30.0f, 1.0f, 11.0f }, { 30.0f, -17.0f, 11.0f },
{ 45.0f, -5.0f, 7.5f }, { 45.0f, -14.0f, 7.5f },
{ 56.0f, 15.0f, 6.0f }, { 56.0f, 4.5f, 6.0f },
}

◆ grZe_803B8044

grZe_BubbleConfig const grZe_803B8044
Initial value:
= {
{ { 1.0f, 1.1f, 1.0f, 1.2f, 1.1f, 1.0f, 1.0f } },
{
{ 7.59f, 2.5f, 0.0f },
{ 24.05f, 2.2f, 0.0f },
{ 8.2f, -4.55f, 0.0f },
{ 24.1f, -4.6f, 0.0f },
},
}

◆ table

grZe_ColorEntry table[3]
Initial value:
= {
{ -320.0f, 0.0f, 0.0f, 0.0f },
{ -80.0f, 1.0f, 20.0f, 30.0f },
{ 90.0f, 90.0f, 75.0f, 0.0f },
}