SpaghettiKart
Loading...
Searching...
No Matches
OMoleGroup Class Reference

#include <MoleGroup.h>

Inheritance diagram for OMoleGroup:
[legend]
Collaboration diagram for OMoleGroup:
[legend]

Data Structures

struct  MoleEntry
 

Public Member Functions

 OMoleGroup (std::vector< FVector > &moles, size_t tickRate)
 
 ~OMoleGroup ()
 
virtual void Tick () override
 
void func_80081FF4 (s32 objectIndex)
 
- Public Member Functions inherited from OObject
virtual ~OObject ()=default
 
 OObject ()
 
 OObject (SpawnParams params)
 
virtual void SetSpawnParams (SpawnParams &params)
 
virtual void Tick60fps ()
 
virtual void Draw (s32 cameraId)
 
virtual void Expire ()
 
virtual void Destroy ()
 
virtual void Reset ()
 
FVector GetLocation () const
 
IRotator GetRotation () const
 
FVector GetScale () const
 
virtual void Translate (FVector pos)
 
void Rotate (IRotator rot)
 
void SetScale (FVector scale)
 
virtual void DrawEditorProperties ()
 

Data Fields

std::vector< MoleEntry_moles
 
size_t _tickRate
 
- Data Fields inherited from OObject
uint8_t uuid [16]
 
Object o
 
const char * Name = ""
 
const char * ResourceName = ""
 
bool bPendingDestroy = false
 
s32 _objectIndex = -1
 
const char * Model = ""
 
FVector SpawnPos = {0.0f, 0.0f, 0.0f}
 
IRotator SpawnRot = {0, 0, 0}
 
FVector SpawnScale = {1.0f, 1.0f, 1.0f}
 
float Speed = 0.0f
 
std::vector< TriangleTriangles
 

Private Attributes

size_t _idx
 

Static Private Attributes

static size_t _count = 0
 

Constructor & Destructor Documentation

◆ OMoleGroup()

OMoleGroup::OMoleGroup ( std::vector< FVector > & moles,
size_t tickRate )
explicit

TickRate: How many moles can pop out per frame. The mole must also be ready to jump to be considered.

Here is the call graph for this function:

◆ ~OMoleGroup()

OMoleGroup::~OMoleGroup ( )
inline

Member Function Documentation

◆ func_80081FF4()

void OMoleGroup::func_80081FF4 ( s32 objectIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tick()

void OMoleGroup::Tick ( void )
overridevirtual

This ticks the mole dirt particles. It must be ran after MoleGroup is done ticking. Otherwise, the dirt particle directions will not randomize The best solution would be for particles to be its own class. But that takes effort Instead, we wait until the last MoleGroup has ticked, then we tick the particles one time.

Warning: Calling this more than one time per frame, will result in doubling the speed

Reimplemented from OObject.

Here is the call graph for this function:

Field Documentation

◆ _count

size_t OMoleGroup::_count = 0
staticprivate

◆ _idx

size_t OMoleGroup::_idx
private

◆ _moles

std::vector<MoleEntry> OMoleGroup::_moles

◆ _tickRate

size_t OMoleGroup::_tickRate

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