Mario Kart 64
|
#include <ultra64.h>
#include <macros.h>
#include <PR/os.h>
#include <sounds.h>
#include <common_structs.h>
#include <actor_types.h>
#include <defines.h>
#include <PR/gbi.h>
#include <types.h>
#include "code_800029B0.h"
#include "main.h"
#include "math_util.h"
#include "memory.h"
#include "actors_extended.h"
#include "actors.h"
#include "waypoints.h"
#include "code_80005FD0.h"
#include "code_80071F00.h"
#include "effects.h"
#include "collision.h"
#include "audio/external.h"
#include "common_textures.h"
#include "courses/all_course_data.h"
#include "data/other_textures.h"
#include "actors/boat.inc.c"
#include "actors/train.inc.c"
#include "actors/falling_rocks.inc.c"
Data Structures | |
struct | test |
Variables | |
u8 * | D_802BA050 |
u8 * | D_802BA054 |
u8 * | D_802BA058 |
struct Actor * | D_802BA05C |
s8 | gTLUTRedShell [512] |
u16 | D_802BA260 |
UNUSED s16 | D_802B8808 [] |
UNUSED s16 | D_802B8810 [] |
void actor_init | ( | struct Actor * | actor, |
Vec3f | startingPos, | ||
Vec3s | startingRot, | ||
Vec3f | startingVelocity, | ||
s16 | actorType ) |
void cleanup_red_and_green_shells | ( | struct ShellActor * | shell | ) |
Once the amount of spawned player red and green shell count has reached 21 or higher the game will cleanup any dead red or green shells by deleting their actors.
This func likely plays an audio track based on flag Next, it destroys the actor via zeroing its flags and type. Note that the data from its other members still exist. Actors are expected to set members such as pos and rot data if used. Not doing so could result in the use of expired data.
This method does not require modification to gActorList directly. No popping members of gActorList. The list is always the size of ACTOR_LIST_SIZE. Actors are members of gActorList by definition.
Actor | to destroy |
Destroys actors via zeroing some of the member data Key word some. When spawning a new actor, members such as pos and rot should be set to prevent using expired data
s32 func_8029F2FC | ( | Player * | player, |
struct PiranhaPlant * | plant ) |
s32 func_8029F408 | ( | Player * | player, |
struct YoshiValleyEgg * | egg ) |
void func_802A1064 | ( | struct FakeItemBox * | fake_item_box | ) |
void func_802A171C | ( | Camera * | camera, |
struct FakeItemBox * | fakeItemBox ) |
void func_802A2AD0 | ( | Camera * | arg0, |
struct RailroadCrossing * | rr_crossing ) |
void func_802A2F34 | ( | struct UnkStruct_800DC5EC * | arg0 | ) |
void place_all_item_boxes | ( | struct ActorSpawnData * | spawnData | ) |
void place_palm_trees | ( | struct ActorSpawnData * | spawnData | ) |
void place_piranha_plants | ( | struct ActorSpawnData * | spawnData | ) |
void render_actor_blue_shell | ( | Camera * | camera, |
Mat4 | matrix, | ||
struct ShellActor * | shell ) |
void render_actor_falling_rock | ( | Camera * | camera, |
struct FallingRock * | rock ) |
void render_actor_green_shell | ( | Camera * | camera, |
Mat4 | matrix, | ||
struct ShellActor * | shell ) |
void render_actor_kiwano_fruit_dks_jungle_parkway | ( | UNUSED Camera * | camera, |
Mat4 | arg1, | ||
struct Actor * | actor ) |
void render_actor_piranha_plant | ( | Camera * | arg0, |
Mat4 | arg1, | ||
struct PiranhaPlant * | arg2 ) |
void render_actor_red_shell | ( | Camera * | camera, |
Mat4 | matrix, | ||
struct ShellActor * | shell ) |
void render_actor_shell | ( | Camera * | camera, |
Mat4 | matrix, | ||
struct ShellActor * | shell ) |
void render_course_actors | ( | struct UnkStruct_800DC5EC * | arg0 | ) |
void spawn_foliage | ( | struct ActorSpawnData * | arg0 | ) |
void update_actor_fake_item_box | ( | struct FakeItemBox * | fake_item_box | ) |
void update_actor_kiwano_fruit | ( | struct KiwanoFruit * | fruit | ) |
void update_actor_piranha_plant | ( | struct PiranhaPlant * | arg0 | ) |
void update_actor_railroad_crossing | ( | struct RailroadCrossing * | crossing | ) |
If train close activate bell sound according to timing
void update_actor_yoshi_valley_egg | ( | struct YoshiValleyEgg * | egg | ) |
u8* D_802BA050 |
u8* D_802BA054 |
u8* D_802BA058 |
u16 D_802BA260 |
s8 gTLUTRedShell[512] |