|
Mario Kart 64
|
#include <ultra64.h>#include <macros.h>#include <PR/os.h>#include <mk64.h>#include <sounds.h>#include <common_structs.h>#include <actor_types.h>#include <defines.h>#include <PR/gbi.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 "update_objects.h"#include "effects.h"#include "collision.h"#include "audio/external.h"#include <assets/common_data.h>#include "courses/all_course_data.h"#include "data/other_textures.h"#include "actors/cow/render.inc.c"#include "actors/yoshi_egg/update.inc.c"#include "actors/kiwano_fruit/update.inc.c"#include "actors/paddle_boat/update.inc.c"#include "actors/train/update.inc.c"#include "actors/piranha_plant/update.inc.c"#include "actors/piranha_plant/render.inc.c"#include "actors/trees/render.inc.c"#include "actors/kiwano_fruit/render.inc.c"#include "actors/green_shell/render.inc.c"#include "actors/blue_and_red_shells/render.inc.c"#include "actors/banana/render.inc.c"#include "actors/wario_sign/update.inc.c"#include "actors/railroad_crossing/update.inc.c"#include "actors/mario_sign/update.inc.c"#include "actors/paddle_boat/render.inc.c"#include "actors/box_truck/render.inc.c"#include "actors/school_bus/render.inc.c"#include "actors/car/render.inc.c"#include "actors/tanker_truck/render.inc.c"#include "actors/train/render.inc.c"#include "actors/falling_rock/render.inc.c"#include "actors/falling_rock/update.inc.c"#include "actors/fake_item_box/update.inc.c"#include "actors/item_box/update.inc.c"#include "actors/fake_item_box/render.inc.c"#include "actors/item_box/render.inc.c"#include "actors/wario_sign/render.inc.c"#include "actors/yoshi_egg/render.inc.c"#include "actors/mario_sign/render.inc.c"#include "actors/railroad_crossing/render.inc.c"#include "actors/palm_tree/render.inc.c"Data Structures | |
| struct | test |
Variables | |
| u8 * | D_802BA050 |
| u8 * | D_802BA054 |
| u8 * | D_802BA058 |
| struct Actor * | gActorHotAirBalloonItemBox |
| 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.
| bool collision_piranha_plant | ( | Player * | player, |
| struct PiranhaPlant * | plant ) |
| bool collision_yoshi_egg | ( | Player * | player, |
| struct YoshiValleyEgg * | egg ) |
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
| void evaluate_actor_collision_between_two_destructible_actors | ( | struct Actor * | actor1, |
| struct Actor * | actor2 ) |
| void func_802A1064 | ( | struct FakeItemBox * | fake_item_box | ) |
Loads actor textures, course specific actor textures. Calls to init_course_vehicles and place_course_actors.
| bool query_and_resolve_collision_player_actor | ( | Player * | player, |
| Vec3f | pos, | ||
| f32 | minDist, | ||
| f32 | dist, | ||
| f32 | arg4 ) |
| void render_actor_shell | ( | Camera * | camera, |
| Mat4 | matrix, | ||
| struct ShellActor * | shell ) |
| void render_course_actors | ( | struct UnkStruct_800DC5EC * | arg0 | ) |
| void render_item_boxes | ( | struct UnkStruct_800DC5EC * | arg0 | ) |
| void spawn_all_item_boxes | ( | struct ActorSpawnData * | spawnData | ) |
| void spawn_foliage | ( | struct ActorSpawnData * | arg0 | ) |
| void spawn_palm_trees | ( | struct ActorSpawnData * | spawnData | ) |
| void spawn_piranha_plants | ( | struct ActorSpawnData * | spawnData | ) |
| u8* D_802BA050 |
| u8* D_802BA054 |
| u8* D_802BA058 |
| u16 D_802BA260 |
| s8 gTLUTRedShell[512] |