Mario Kart 64
Loading...
Searching...
No Matches
World Class Reference

#include <World.h>

Collaboration diagram for World:
[legend]

Data Structures

struct  Matrix
 

Public Member Functions

 World ()
 
 ~World ()
 
RaceManager & GetRaceManager ()
 
void SetRaceManager (std::unique_ptr< RaceManager > manager)
 
void TickCameras ()
 
AActorAddActor (std::unique_ptr< AActor > actor)
 
struct ActorAddBaseActor ()
 
void ActorBeginPlay (Actor *actor)
 
AActorGetActor (size_t index)
 
void TickActors ()
 
AActorConvertActorToAActor (Actor *actor)
 
ActorConvertAActorToActor (AActor *actor)
 
void DrawStaticMeshActors ()
 
StaticMeshActorAddStaticMeshActor (const std::string &name, FVector pos, IRotator rot, FVector scale, const std::string &model, int32_t *collision)
 
OObjectAddObject (std::unique_ptr< OObject > object)
 
void TickObjects ()
 
void TickObjects60fps ()
 
void DrawObjects (s32 cameraId)
 
ObjectGetObjectByIndex (size_t)
 
void TickParticles ()
 
void DrawParticles (s32 cameraId)
 
ParticleEmitterAddEmitter (ParticleEmitter *emitter)
 
void Reset (void)
 
void AddCup (Cup *)
 
void SetCurrentCup (Cup *cup)
 
CupGetCurrentCup ()
 
void SetCupIndex (size_t index)
 
const char * GetCupName ()
 
u32 GetCupIndex ()
 
u32 NextCup ()
 
u32 PreviousCup ()
 
WorldGetWorld (void)
 
void CleanWorld (void)
 
TrackGetTrack ()
 
void SetCurrentTrack (std::unique_ptr< Track > track)
 
TrainCrossingAddCrossing (Vec3f position, u32 waypointMin, u32 waypointMax, f32 approachRadius, f32 exitRadius)
 

Data Fields

Matrix Mtx
 
std::vector< Cup * > Cups
 
size_t CupIndex = 1
 
std::vector< GameCamera * > Cameras
 
std::vector< std::unique_ptr< StaticMeshActor > > StaticMeshActors
 
std::vector< std::unique_ptr< AActor > > Actors
 
std::vector< std::unique_ptr< OObject > > Objects
 
std::vector< ParticleEmitter * > Emitters
 
std::unordered_map< s32, OLakitu * > Lakitus
 
PlayerBombKart mPlayerBombKart [4]
 
std::vector< std::shared_ptr< TrainCrossing > > Crossings
 

Static Public Attributes

static WorldInstance
 

Private Attributes

std::unique_ptr< TrackmTrack
 
CupCurrentCup
 
std::unique_ptr< RaceManager > RaceManagerInstance
 

Constructor & Destructor Documentation

◆ World()

World::World ( )
explicit
Here is the caller graph for this function:

◆ ~World()

World::~World ( )
Here is the call graph for this function:

Member Function Documentation

◆ ActorBeginPlay()

void World::ActorBeginPlay ( Actor * actor)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddActor()

AActor * World::AddActor ( std::unique_ptr< AActor > actor)
Here is the caller graph for this function:

◆ AddBaseActor()

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

◆ AddCrossing()

TrainCrossing * World::AddCrossing ( Vec3f position,
u32 waypointMin,
u32 waypointMax,
f32 approachRadius,
f32 exitRadius )
Here is the caller graph for this function:

◆ AddCup()

void World::AddCup ( Cup * cup)
Here is the caller graph for this function:

◆ AddEmitter()

ParticleEmitter * World::AddEmitter ( ParticleEmitter * emitter)
Here is the caller graph for this function:

◆ AddObject()

OObject * World::AddObject ( std::unique_ptr< OObject > object)
Here is the caller graph for this function:

◆ AddStaticMeshActor()

StaticMeshActor * World::AddStaticMeshActor ( const std::string & name,
FVector pos,
IRotator rot,
FVector scale,
const std::string & model,
int32_t * collision )
Here is the caller graph for this function:

◆ CleanWorld()

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

◆ ConvertAActorToActor()

Actor * World::ConvertAActorToActor ( AActor * actor)

Converts a C++ AActor class to a C Actor* struct.

◆ ConvertActorToAActor()

AActor * World::ConvertActorToAActor ( Actor * actor)

Converts a C struct Actor* to its C++ AActor class

Here is the caller graph for this function:

◆ DrawObjects()

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

◆ DrawParticles()

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

◆ DrawStaticMeshActors()

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

◆ GetActor()

AActor * World::GetActor ( size_t index)

◆ GetCupIndex()

u32 World::GetCupIndex ( )
Here is the caller graph for this function:

◆ GetCupName()

const char * World::GetCupName ( )

◆ GetCurrentCup()

Cup * World::GetCurrentCup ( )
inline
Here is the caller graph for this function:

◆ GetObjectByIndex()

Object * World::GetObjectByIndex ( size_t index)

◆ GetRaceManager()

RaceManager & World::GetRaceManager ( )
inline
Here is the caller graph for this function:

◆ GetTrack()

Track * World::GetTrack ( )
inline
Here is the caller graph for this function:

◆ GetWorld()

World * World::GetWorld ( void )
Here is the call graph for this function:

◆ NextCup()

u32 World::NextCup ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PreviousCup()

u32 World::PreviousCup ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

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

◆ SetCupIndex()

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

◆ SetCurrentCup()

void World::SetCurrentCup ( Cup * cup)
Here is the caller graph for this function:

◆ SetCurrentTrack()

void World::SetCurrentTrack ( std::unique_ptr< Track > track)
Here is the caller graph for this function:

◆ SetRaceManager()

void World::SetRaceManager ( std::unique_ptr< RaceManager > manager)
inline

◆ TickActors()

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

◆ TickCameras()

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

◆ TickObjects()

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

◆ TickObjects60fps()

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

◆ TickParticles()

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

Field Documentation

◆ Actors

std::vector<std::unique_ptr<AActor> > World::Actors

◆ Cameras

std::vector<GameCamera*> World::Cameras

◆ Crossings

std::vector<std::shared_ptr<TrainCrossing> > World::Crossings

◆ CupIndex

size_t World::CupIndex = 1

◆ Cups

std::vector<Cup*> World::Cups

◆ CurrentCup

Cup* World::CurrentCup
private

◆ Emitters

std::vector<ParticleEmitter*> World::Emitters

◆ Instance

World * World::Instance
static

◆ Lakitus

std::unordered_map<s32, OLakitu*> World::Lakitus

◆ mPlayerBombKart

PlayerBombKart World::mPlayerBombKart[4]

Objects

◆ mTrack

std::unique_ptr<Track> World::mTrack
private

◆ Mtx

Matrix World::Mtx

◆ Objects

std::vector<std::unique_ptr<OObject> > World::Objects

◆ RaceManagerInstance

std::unique_ptr<RaceManager> World::RaceManagerInstance
private

◆ StaticMeshActors

std::vector<std::unique_ptr<StaticMeshActor> > World::StaticMeshActors

The documentation for this class was generated from the following files: