SSBM Decomp
Loading...
Searching...
No Matches
grstory.c File Reference

Functions

static void grStory_801E302C (bool)
 
static DynamicsDescgrStory_801E36D0 (enum_t)
 
void grStory_801E3030 (void)
 
void grStory_801E30A8 (void)
 
void grStory_801E30AC (void)
 
bool grStory_801E30D0 (void)
 
Ground_GObjgrStory_801E30D8 (int gobj_id)
 
void grStory_801E31C0 (Ground_GObj *gobj)
 
bool grStory_801E3224 (Ground_GObj *gobj)
 
void grStory_801E322C (Ground_GObj *gobj)
 
void grStory_801E3230 (Ground_GObj *gobj)
 
int randi (int max)
 
static void reset_shyguy_timer (Ground *gp)
 
static void set_shyguy_spawn_count (Ground *gp, int rarity)
 Set the number of Shy Guys to spawn to either 1, or a random integer from 3 to 6.
 
void grStory_801E3234 (Ground_GObj *gobj)
 Shy guys initialization function.
 
bool grStory_801E332C (Ground_GObj *gobj)
 
void grStory_801E3334 (Ground_GObj *gobj)
 
void grStory_801E336C (Ground_GObj *gobj)
 
void grStory_801E3370 (Ground_GObj *gobj)
 Randall initialization function.
 
bool grStory_801E33D8 (Ground_GObj *gobj)
 
void grStory_801E33E0 (Ground_GObj *gobj)
 
void grStory_801E3414 (Ground_GObj *gobj)
 
f32 frand_amp1 (void)
 
void grStory_801E3418 (Ground_GObj *gobj)
 Shy guy spawn timer frame callback.
 
void grStory_801E366C (Ground_GObj *gobj)
 Randall puff timer frame callback.
 
bool grStory_801E36D8 (Vec3 *a, int _, HSD_JObj *jobj)
 

Variables

StageInfo stage_info
 
static StageCallbacks grSt_803E26F0 []
 
struct { 
 
   float   timer_min 
 
   float   timer_rand 
 
   float   spawnmany_rarity 
 
   float   vpos [6] 
 
} * shyguy_vars 
 
StageData grSt_803E274C
 
static u32 _ []
 

Function Documentation

◆ grStory_801E302C()

static void grStory_801E302C ( bool  _)
static

◆ grStory_801E36D0()

static DynamicsDesc * grStory_801E36D0 ( enum_t  arg0)
static

◆ grStory_801E3030()

void grStory_801E3030 ( void  )

◆ grStory_801E30A8()

void grStory_801E30A8 ( void  )

◆ grStory_801E30AC()

void grStory_801E30AC ( void  )

◆ grStory_801E30D0()

bool grStory_801E30D0 ( void  )

◆ grStory_801E30D8()

Ground_GObj * grStory_801E30D8 ( int  gobj_id)

◆ grStory_801E31C0()

void grStory_801E31C0 ( Ground_GObj gobj)

◆ grStory_801E3224()

bool grStory_801E3224 ( Ground_GObj gobj)

◆ grStory_801E322C()

void grStory_801E322C ( Ground_GObj gobj)

◆ grStory_801E3230()

void grStory_801E3230 ( Ground_GObj gobj)

◆ randi()

int randi ( int  max)
inline

◆ reset_shyguy_timer()

static void reset_shyguy_timer ( Ground gp)
inlinestatic

◆ set_shyguy_spawn_count()

static void set_shyguy_spawn_count ( Ground gp,
int  rarity 
)
inlinestatic

Set the number of Shy Guys to spawn to either 1, or a random integer from 3 to 6.

Parameters
rarityControls the rarity of spawning multiple Shy Guys

◆ grStory_801E3234()

void grStory_801E3234 ( Ground_GObj gobj)

Shy guys initialization function.

◆ grStory_801E332C()

bool grStory_801E332C ( Ground_GObj gobj)

◆ grStory_801E3334()

void grStory_801E3334 ( Ground_GObj gobj)

◆ grStory_801E336C()

void grStory_801E336C ( Ground_GObj gobj)

◆ grStory_801E3370()

void grStory_801E3370 ( Ground_GObj gobj)

Randall initialization function.

◆ grStory_801E33D8()

bool grStory_801E33D8 ( Ground_GObj gobj)

◆ grStory_801E33E0()

void grStory_801E33E0 ( Ground_GObj gobj)

◆ grStory_801E3414()

void grStory_801E3414 ( Ground_GObj gobj)

◆ frand_amp1()

f32 frand_amp1 ( void  )
inline

◆ grStory_801E3418()

void grStory_801E3418 ( Ground_GObj gobj)

Shy guy spawn timer frame callback.

◆ grStory_801E366C()

void grStory_801E366C ( Ground_GObj gobj)

Randall puff timer frame callback.

◆ grStory_801E36D8()

bool grStory_801E36D8 ( Vec3 *  a,
int  _,
HSD_JObj jobj 
)

Variable Documentation

◆ stage_info

StageInfo stage_info
extern

◆ grSt_803E26F0

StageCallbacks grSt_803E26F0[]
static
Initial value:
= {
{ NULL, NULL, NULL, NULL, 0 },
0 },
0 },
(1 << 30) | (1 << 31) },
}
void grStory_801E3334(Ground_GObj *gobj)
Definition grstory.c:188
bool grStory_801E33D8(Ground_GObj *gobj)
Definition grstory.c:212
void grStory_801E33E0(Ground_GObj *gobj)
Definition grstory.c:217
bool grStory_801E3224(Ground_GObj *gobj)
Definition grstory.c:129
void grStory_801E31C0(Ground_GObj *gobj)
Definition grstory.c:119
void grStory_801E3234(Ground_GObj *gobj)
Shy guys initialization function.
Definition grstory.c:172
void grStory_801E336C(Ground_GObj *gobj)
Definition grstory.c:195
bool grStory_801E332C(Ground_GObj *gobj)
Definition grstory.c:183
void grStory_801E322C(Ground_GObj *gobj)
Definition grstory.c:134
void grStory_801E3370(Ground_GObj *gobj)
Randall initialization function.
Definition grstory.c:200
void grStory_801E3414(Ground_GObj *gobj)
Definition grstory.c:225
void grStory_801E3230(Ground_GObj *gobj)
Definition grstory.c:136
#define NULL
Definition stddef.h:19

◆ timer_min

float timer_min

◆ timer_rand

float timer_rand

◆ spawnmany_rarity

float spawnmany_rarity

◆ vpos

float vpos[6]

◆ [struct]

struct { ... } * shyguy_vars

◆ grSt_803E274C

StageData grSt_803E274C
Initial value:
= {
(1 << 1) | (1 << 3),
"/GrSt.dat",
(1 << 0),
0,
}
void grStory_801E30AC(void)
Definition grstory.c:78
static void grStory_801E302C(bool)
Definition grstory.c:61
bool grStory_801E36D8(Vec3 *a, int _, HSD_JObj *jobj)
Definition grstory.c:317
static StageCallbacks grSt_803E26F0[]
Definition grstory.c:26
void grStory_801E3030(void)
Definition grstory.c:63
bool grStory_801E30D0(void)
Definition grstory.c:83
void grStory_801E30A8(void)
Definition grstory.c:76
static DynamicsDesc * grStory_801E36D0(enum_t)
Definition grstory.c:312

◆ _

u32 _[]
static
Initial value:
= {
0xC3920000, 0x42D20000, 0xC3920000, 0x42960000, 0xC3920000, 0x42480000,
0x43980000, 0x42DC0000, 0x43980000, 0x42B40000, 0, 0,
}