Mario Kart 64
Loading...
Searching...
No Matches
Game.h File Reference
#include <libultraship.h>
#include "engine/courses/Course.h"
#include "engine/HM_Intro.h"
#include "camera.h"
#include "actor_types.h"
Include dependency graph for Game.h:

Go to the source code of this file.

Functions

PropertiesCM_GetProps ()
 
PropertiesCM_GetPropsCourseId (s32 courseId)
 
void HM_InitIntro (void)
 
void HM_TickIntro (void)
 
void HM_DrawIntro (void)
 
void CM_SpawnFromLevelProps ()
 
void CM_DisplayBattleBombKart (s32 playerId, s32 primAlpha)
 
void CM_DrawBattleBombKarts (s32 cameraId)
 
u32 WorldNextCup (void)
 
u32 WorldPreviousCup (void)
 
u32 GetCupIndex (void)
 
const char * GetCupName (void)
 
void LoadCourse ()
 
size_t GetCourseIndex ()
 
void SetCourse (const char *name)
 
void NextCourse ()
 
void PreviousCourse ()
 
void CM_SetCup (void *)
 
void CM_SetCupIndex (size_t index)
 
void CM_LoadTextures ()
 
void CM_RenderCourse (struct UnkStruct_800DC5EC *arg0)
 
void CM_RenderCredits ()
 
void CM_SpawnStarterLakitu ()
 
void CM_ActivateFinishLakitu (s32 playerId)
 
void CM_ActivateSecondLapLakitu (s32 playerId)
 
void CM_ActivateFinalLapLakitu (s32 playerId)
 
void CM_ActivateReverseLakitu (s32 playerId)
 
bool CM_DoesFinishlineExist ()
 
void CM_InitClouds ()
 
void CM_DrawActors (Camera *camera, struct Actor *actor)
 
void CM_DrawStaticMeshActors ()
 
void CM_TickObjects ()
 
void CM_TickObjects60fps ()
 
void CM_DrawObjects (s32 cameraId)
 
void CM_TickEditor ()
 
void CM_DrawEditor ()
 
void CM_Editor_SetLevelDimensions (s16 minX, s16 maxX, s16 minZ, s16 maxZ, s16 minY, s16 maxY)
 
void CM_TickDraw ()
 
void Editor_ClearMatrix ()
 
void CM_TickParticles (void)
 
void CM_DrawParticles (s32 cameraId)
 
void CM_UpdateClouds (s32 arg0, Camera *camera)
 
void CM_Waypoints (Player *player, int8_t playerId)
 
void CM_SomeCollisionThing (Player *player, Vec3f arg1, Vec3f arg2, Vec3f arg3, f32 *arg4, f32 *arg5, f32 *arg6, f32 *arg7)
 
void CM_InitCourseObjects ()
 
void CM_UpdateCourseObjects ()
 
void CM_RenderCourseObjects (s32 cameraId)
 
void CM_SomeSounds ()
 
void CM_CreditsSpawnActors ()
 
void CM_WhatDoesThisDo (Player *player, int8_t playerId)
 
void CM_WhatDoesThisDoAI (Player *player, int8_t playerId)
 
void CM_SetStaffGhost ()
 
void CM_BombKartsWaypoint (s32 cameraId)
 
void CM_ScrollingTextures ()
 
s32 CM_GetCrossingOnTriggered (uintptr_t *crossing)
 
void CM_BeginPlay ()
 
void CM_DrawWater (struct UnkStruct_800DC5EC *screen, uint16_t pathCounter, uint16_t cameraRot, uint16_t playerDirection)
 
void CM_AICrossingBehaviour (s32 playerId)
 
void CM_ClearVehicles (void)
 
void CM_CrossingTrigger ()
 
void CM_VehicleCollision (s32 playerId, Player *player)
 
void CM_TickActors ()
 
void CM_DrawBombKarts (s32 cameraId)
 
void SetMarioRaceway (void)
 
size_t GetCupCursorPosition ()
 
void SetCupCursorPosition (size_t position)
 
size_t GetCupSize ()
 
void SetCourseFromCup ()
 
void * GetCourse (void)
 
void SetCourseById (s32 course)
 
struct ActorCM_GetActor (size_t index)
 
void CM_DeleteActor (size_t index)
 
struct ActorCM_AddBaseActor ()
 
void CM_AddEditorObject (struct Actor *actor, const char *name)
 
void Editor_AddLight (s8 *direction)
 
size_t CM_GetActorSize ()
 
size_t CM_FindActorIndex (struct Actor *actor)
 
void CM_ActorCollision (Player *player, struct Actor *actor)
 
void CM_CleanWorld (void)
 
f32 CM_GetWaterLevel (Vec3f pos, Collision *collision)
 
bool IsMarioRaceway ()
 
bool IsLuigiRaceway ()
 
bool IsChocoMountain ()
 
bool IsBowsersCastle ()
 
bool IsBansheeBoardwalk ()
 
bool IsYoshiValley ()
 
bool IsFrappeSnowland ()
 
bool IsKoopaTroopaBeach ()
 
bool IsRoyalRaceway ()
 
bool IsMooMooFarm ()
 
bool IsToadsTurnpike ()
 
bool IsKalimariDesert ()
 
bool IsSherbetLand ()
 
bool IsRainbowRoad ()
 
bool IsWarioStadium ()
 
bool IsBlockFort ()
 
bool IsSkyscraper ()
 
bool IsDoubleDeck ()
 
bool IsDkJungle ()
 
bool IsBigDonut ()
 
bool IsPodiumCeremony ()
 
void SelectMarioRaceway ()
 
void SelectLuigiRaceway ()
 
void SelectChocoMountain ()
 
void SelectBowsersCastle ()
 
void SelectBansheeBoardwalk ()
 
void SelectYoshiValley ()
 
void SelectFrappeSnowland ()
 
void SelectKoopaTroopaBeach ()
 
void SelectRoyalRaceway ()
 
void SelectMooMooFarm ()
 
void SelectToadsTurnpike ()
 
void SelectKalimariDesert ()
 
void SelectSherbetLand ()
 
void SelectRainbowRoad ()
 
void SelectWarioStadium ()
 
void SelectBlockFort ()
 
void SelectSkyscraper ()
 
void SelectDoubleDeck ()
 
void SelectDkJungle ()
 
void SelectBigDonut ()
 
void SelectPodiumCeremony ()
 
void * GetMushroomCup (void)
 
void * GetFlowerCup (void)
 
void * GetStarCup (void)
 
void * GetSpecialCup (void)
 
void * GetBattleCup (void)
 
void * GetCup ()
 
void CM_RunGarbageCollector (void)
 

Variables

s32 gTrophyIndex
 

Function Documentation

◆ CM_ActivateFinalLapLakitu()

void CM_ActivateFinalLapLakitu ( s32 playerId)
Here is the caller graph for this function:

◆ CM_ActivateFinishLakitu()

void CM_ActivateFinishLakitu ( s32 playerId)
Here is the caller graph for this function:

◆ CM_ActivateReverseLakitu()

void CM_ActivateReverseLakitu ( s32 playerId)

◆ CM_ActivateSecondLapLakitu()

void CM_ActivateSecondLapLakitu ( s32 playerId)
Here is the caller graph for this function:

◆ CM_ActorCollision()

void CM_ActorCollision ( Player * player,
struct Actor * actor )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CM_AddBaseActor()

struct Actor * CM_AddBaseActor ( )
Here is the caller graph for this function:

◆ CM_AddEditorObject()

void CM_AddEditorObject ( struct Actor * actor,
const char * name )
Here is the caller graph for this function:

◆ CM_AICrossingBehaviour()

void CM_AICrossingBehaviour ( s32 playerId)
Here is the caller graph for this function:

◆ CM_BeginPlay()

void CM_BeginPlay ( )
Here is the caller graph for this function:

◆ CM_BombKartsWaypoint()

void CM_BombKartsWaypoint ( s32 cameraId)
Here is the caller graph for this function:

◆ CM_CleanWorld()

void CM_CleanWorld ( void )

Clean up actors and other game objects.

Here is the caller graph for this function:

◆ CM_ClearVehicles()

void CM_ClearVehicles ( void )
Here is the caller graph for this function:

◆ CM_CreditsSpawnActors()

void CM_CreditsSpawnActors ( )
Here is the caller graph for this function:

◆ CM_CrossingTrigger()

void CM_CrossingTrigger ( )
Here is the caller graph for this function:

◆ CM_DeleteActor()

void CM_DeleteActor ( size_t index)

◆ CM_DisplayBattleBombKart()

void CM_DisplayBattleBombKart ( s32 playerId,
s32 primAlpha )
Here is the caller graph for this function:

◆ CM_DoesFinishlineExist()

bool CM_DoesFinishlineExist ( )

◆ CM_DrawActors()

void CM_DrawActors ( Camera * camera,
struct Actor * actor )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CM_DrawBattleBombKarts()

void CM_DrawBattleBombKarts ( s32 cameraId)
Here is the caller graph for this function:

◆ CM_DrawBombKarts()

void CM_DrawBombKarts ( s32 cameraId)

◆ CM_DrawEditor()

void CM_DrawEditor ( )
Here is the caller graph for this function:

◆ CM_DrawObjects()

void CM_DrawObjects ( s32 cameraId)
Here is the caller graph for this function:

◆ CM_DrawParticles()

void CM_DrawParticles ( s32 cameraId)
Here is the caller graph for this function:

◆ CM_DrawStaticMeshActors()

void CM_DrawStaticMeshActors ( )
Here is the caller graph for this function:

◆ CM_DrawWater()

void CM_DrawWater ( struct UnkStruct_800DC5EC * screen,
uint16_t pathCounter,
uint16_t cameraRot,
uint16_t playerDirection )
Here is the caller graph for this function:

◆ CM_Editor_SetLevelDimensions()

void CM_Editor_SetLevelDimensions ( s16 minX,
s16 maxX,
s16 minZ,
s16 maxZ,
s16 minY,
s16 maxY )
Here is the caller graph for this function:

◆ CM_FindActorIndex()

size_t CM_FindActorIndex ( struct Actor * actor)
Here is the caller graph for this function:

◆ CM_GetActor()

struct Actor * CM_GetActor ( size_t index)

◆ CM_GetActorSize()

size_t CM_GetActorSize ( )

◆ CM_GetCrossingOnTriggered()

s32 CM_GetCrossingOnTriggered ( uintptr_t * crossing)
Here is the caller graph for this function:

◆ CM_GetProps()

Properties * CM_GetProps ( )
Here is the caller graph for this function:

◆ CM_GetPropsCourseId()

Properties * CM_GetPropsCourseId ( s32 courseId)
Here is the caller graph for this function:

◆ CM_GetWaterLevel()

f32 CM_GetWaterLevel ( Vec3f pos,
Collision * collision )
Here is the caller graph for this function:

◆ CM_InitClouds()

void CM_InitClouds ( )
Here is the caller graph for this function:

◆ CM_InitCourseObjects()

void CM_InitCourseObjects ( )
Here is the caller graph for this function:

◆ CM_LoadTextures()

void CM_LoadTextures ( )
Here is the caller graph for this function:

◆ CM_RenderCourse()

void CM_RenderCourse ( struct UnkStruct_800DC5EC * arg0)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CM_RenderCourseObjects()

void CM_RenderCourseObjects ( s32 cameraId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CM_RenderCredits()

void CM_RenderCredits ( )
Here is the caller graph for this function:

◆ CM_RunGarbageCollector()

void CM_RunGarbageCollector ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CM_ScrollingTextures()

void CM_ScrollingTextures ( )
Here is the caller graph for this function:

◆ CM_SetCup()

void CM_SetCup ( void * cup)
Here is the caller graph for this function:

◆ CM_SetCupIndex()

void CM_SetCupIndex ( size_t index)
Here is the caller graph for this function:

◆ CM_SetStaffGhost()

void CM_SetStaffGhost ( )
Here is the caller graph for this function:

◆ CM_SomeCollisionThing()

void CM_SomeCollisionThing ( Player * player,
Vec3f arg1,
Vec3f arg2,
Vec3f arg3,
f32 * arg4,
f32 * arg5,
f32 * arg6,
f32 * arg7 )
Here is the caller graph for this function:

◆ CM_SomeSounds()

void CM_SomeSounds ( )
Here is the caller graph for this function:

◆ CM_SpawnFromLevelProps()

void CM_SpawnFromLevelProps ( )
Here is the caller graph for this function:

◆ CM_SpawnStarterLakitu()

void CM_SpawnStarterLakitu ( )

This should only be ran once per course, otherwise animation/timings might become sped up.

Here is the caller graph for this function:

◆ CM_TickActors()

void CM_TickActors ( )
Here is the caller graph for this function:

◆ CM_TickDraw()

void CM_TickDraw ( )

◆ CM_TickEditor()

void CM_TickEditor ( )
Here is the caller graph for this function:

◆ CM_TickObjects()

void CM_TickObjects ( )
Here is the caller graph for this function:

◆ CM_TickObjects60fps()

void CM_TickObjects60fps ( )
Here is the caller graph for this function:

◆ CM_TickParticles()

void CM_TickParticles ( void )
Here is the caller graph for this function:

◆ CM_UpdateClouds()

void CM_UpdateClouds ( s32 arg0,
Camera * camera )
Here is the caller graph for this function:

◆ CM_UpdateCourseObjects()

void CM_UpdateCourseObjects ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CM_VehicleCollision()

void CM_VehicleCollision ( s32 playerId,
Player * player )
Here is the caller graph for this function:

◆ CM_Waypoints()

void CM_Waypoints ( Player * player,
int8_t playerId )

◆ CM_WhatDoesThisDo()

void CM_WhatDoesThisDo ( Player * player,
int8_t playerId )
Here is the caller graph for this function:

◆ CM_WhatDoesThisDoAI()

void CM_WhatDoesThisDoAI ( Player * player,
int8_t playerId )
Here is the caller graph for this function:

◆ Editor_AddLight()

void Editor_AddLight ( s8 * direction)

◆ Editor_ClearMatrix()

void Editor_ClearMatrix ( )
Here is the caller graph for this function:

◆ GetBattleCup()

void * GetBattleCup ( void )
Here is the caller graph for this function:

◆ GetCourse()

void * GetCourse ( void )

◆ GetCourseIndex()

size_t GetCourseIndex ( )
Here is the caller graph for this function:

◆ GetCup()

void * GetCup ( )
Here is the caller graph for this function:

◆ GetCupCursorPosition()

size_t GetCupCursorPosition ( )
Here is the caller graph for this function:

◆ GetCupIndex()

u32 GetCupIndex ( void )

◆ GetCupName()

const char * GetCupName ( void )
Todo
Move gGfxPool out of main.h

◆ GetCupSize()

size_t GetCupSize ( )
Here is the caller graph for this function:

◆ GetFlowerCup()

void * GetFlowerCup ( void )
Here is the caller graph for this function:

◆ GetMushroomCup()

void * GetMushroomCup ( void )
Here is the caller graph for this function:

◆ GetSpecialCup()

void * GetSpecialCup ( void )

◆ GetStarCup()

void * GetStarCup ( void )
Here is the caller graph for this function:

◆ HM_DrawIntro()

void HM_DrawIntro ( void )

◆ HM_InitIntro()

void HM_InitIntro ( void )

◆ HM_TickIntro()

void HM_TickIntro ( void )

◆ IsBansheeBoardwalk()

bool IsBansheeBoardwalk ( )
Here is the caller graph for this function:

◆ IsBigDonut()

bool IsBigDonut ( )
Here is the caller graph for this function:

◆ IsBlockFort()

bool IsBlockFort ( )
Here is the caller graph for this function:

◆ IsBowsersCastle()

bool IsBowsersCastle ( )
Here is the caller graph for this function:

◆ IsChocoMountain()

bool IsChocoMountain ( )
Here is the caller graph for this function:

◆ IsDkJungle()

bool IsDkJungle ( )
Here is the caller graph for this function:

◆ IsDoubleDeck()

bool IsDoubleDeck ( )
Here is the caller graph for this function:

◆ IsFrappeSnowland()

bool IsFrappeSnowland ( )
Here is the caller graph for this function:

◆ IsKalimariDesert()

bool IsKalimariDesert ( )
Here is the caller graph for this function:

◆ IsKoopaTroopaBeach()

bool IsKoopaTroopaBeach ( )
Here is the caller graph for this function:

◆ IsLuigiRaceway()

bool IsLuigiRaceway ( )
Here is the caller graph for this function:

◆ IsMarioRaceway()

bool IsMarioRaceway ( )
Here is the caller graph for this function:

◆ IsMooMooFarm()

bool IsMooMooFarm ( )
Here is the caller graph for this function:

◆ IsPodiumCeremony()

bool IsPodiumCeremony ( )
Here is the caller graph for this function:

◆ IsRainbowRoad()

bool IsRainbowRoad ( )
Here is the caller graph for this function:

◆ IsRoyalRaceway()

bool IsRoyalRaceway ( )
Here is the caller graph for this function:

◆ IsSherbetLand()

bool IsSherbetLand ( )
Here is the caller graph for this function:

◆ IsSkyscraper()

bool IsSkyscraper ( )
Here is the caller graph for this function:

◆ IsToadsTurnpike()

bool IsToadsTurnpike ( )
Here is the caller graph for this function:

◆ IsWarioStadium()

bool IsWarioStadium ( )
Here is the caller graph for this function:

◆ IsYoshiValley()

bool IsYoshiValley ( )
Here is the caller graph for this function:

◆ LoadCourse()

void LoadCourse ( )
Here is the caller graph for this function:

◆ NextCourse()

void NextCourse ( )
Here is the caller graph for this function:

◆ PreviousCourse()

void PreviousCourse ( )
Here is the caller graph for this function:

◆ SelectBansheeBoardwalk()

void SelectBansheeBoardwalk ( )

◆ SelectBigDonut()

void SelectBigDonut ( )

◆ SelectBlockFort()

void SelectBlockFort ( )

◆ SelectBowsersCastle()

void SelectBowsersCastle ( )
Here is the caller graph for this function:

◆ SelectChocoMountain()

void SelectChocoMountain ( )

◆ SelectDkJungle()

void SelectDkJungle ( )

◆ SelectDoubleDeck()

void SelectDoubleDeck ( )

◆ SelectFrappeSnowland()

void SelectFrappeSnowland ( )

◆ SelectKalimariDesert()

void SelectKalimariDesert ( )
Here is the caller graph for this function:

◆ SelectKoopaTroopaBeach()

void SelectKoopaTroopaBeach ( )

◆ SelectLuigiRaceway()

void SelectLuigiRaceway ( )
Here is the caller graph for this function:

◆ SelectMarioRaceway()

void SelectMarioRaceway ( )
Here is the caller graph for this function:

◆ SelectMooMooFarm()

void SelectMooMooFarm ( )

◆ SelectPodiumCeremony()

void SelectPodiumCeremony ( )
Here is the caller graph for this function:

◆ SelectRainbowRoad()

void SelectRainbowRoad ( )

◆ SelectRoyalRaceway()

void SelectRoyalRaceway ( )

◆ SelectSherbetLand()

void SelectSherbetLand ( )
Here is the caller graph for this function:

◆ SelectSkyscraper()

void SelectSkyscraper ( )

◆ SelectToadsTurnpike()

void SelectToadsTurnpike ( )

◆ SelectWarioStadium()

void SelectWarioStadium ( )
Here is the caller graph for this function:

◆ SelectYoshiValley()

void SelectYoshiValley ( )

◆ SetCourse()

void SetCourse ( const char * name)

◆ SetCourseById()

void SetCourseById ( s32 course)
Here is the caller graph for this function:

◆ SetCourseFromCup()

void SetCourseFromCup ( )
Here is the caller graph for this function:

◆ SetCupCursorPosition()

void SetCupCursorPosition ( size_t position)
Here is the caller graph for this function:

◆ SetMarioRaceway()

void SetMarioRaceway ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WorldNextCup()

u32 WorldNextCup ( void )

◆ WorldPreviousCup()

u32 WorldPreviousCup ( void )

Variable Documentation

◆ gTrophyIndex

s32 gTrophyIndex
extern