|
Mario Kart 64
|
#include <MoleGroup.h>
Data Structures | |
| struct | MoleEntry |
Public Member Functions | |
| OMoleGroup (std::vector< FVector > &moles) | |
| 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 ¶ms) |
| 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 |
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< Triangle > | Triangles |
Private Attributes | |
| size_t | _idx |
Static Private Attributes | |
| static size_t | _count = 0 |
|
explicit |
| void OMoleGroup::func_80081FF4 | ( | s32 | objectIndex | ) |
|
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.
|
staticprivate |
|
private |
| std::vector<MoleEntry> OMoleGroup::_moles |