|
Mario Kart 64
|
#include <Train.h>
Public Types | |
| enum | SpawnMode : uint16_t { POINT , AUTO } |
| enum | TenderStatus { NO_TENDER , HAS_TENDER } |
Public Member Functions | |
| ATrain (const SpawnParams ¶ms) | |
| ~ATrain () | |
| virtual void | SetSpawnParams (SpawnParams ¶ms) |
| virtual void | Tick () override |
| virtual void | Draw (Camera *camera) override |
| virtual void | VehicleCollision (s32 playerId, Player *player) override |
| virtual bool | IsMod () override |
| s32 | AddSmoke (s32 trainIndex, Vec3f pos, f32 velocity) |
| void | SyncComponents (TrainCarStuff *trainCar, s16 orientationY) |
| virtual void | DrawEditorProperties () override |
Public Member Functions inherited from AActor | |
| virtual | ~AActor ()=default |
| AActor () | |
| AActor (SpawnParams params) | |
| virtual void | BeginPlay () |
| virtual void | Collision (Player *player, AActor *actor) |
| void | SetLocation (FVector pos) |
| virtual void | Destroy () |
| FVector | GetLocation () const |
| IRotator | GetRotation () const |
| FVector | GetScale () const |
| void | Translate (FVector pos) |
| void | Rotate (IRotator rot) |
| void | SetScale (FVector scale) |
Static Public Member Functions | |
| static size_t | GetCount () |
| static ATrain * | Spawn (ATrain::TenderStatus tender, size_t numCarriages, f32 speed, uint32_t pathIndex, uint32_t pathPoint, ATrain::SpawnMode spawnMode) |
Data Fields | |
| TrainCarStuff | Locomotive |
| TrainCarStuff | Tender |
| std::vector< TrainCarStuff > | PassengerCars |
| size_t | PassengerCarsCount = 0 |
| ATrain::SpawnMode | SpawnType = ATrain::SpawnMode::AUTO |
| uint32_t | PathIndex = 0 |
| uint32_t | PathPoint = 0 |
| TenderStatus | HasTender = TenderStatus::NO_TENDER |
| s32 | SomeFlags |
| f32 | SomeMultiplier |
| size_t | Index |
| int32_t | SmokeParticles [128] |
| int32_t | NextParticlePtr = 0 |
| int16_t | AnotherSmokeTimer = 0 |
| int16_t | SmokeTimer = 0 |
Data Fields inherited from AActor | |
| s16 | Type = 0 |
| s16 | Flags |
| s16 | Unk_04 |
| s16 | State |
| f32 | Unk_08 |
| f32 | BoundingBoxSize |
| Vec3s | Rot = {0, 0, 0} |
| s16 | Unk_16 |
| Vec3f | Pos |
| Vec3f | Velocity = {0, 0, 0} |
| Collision | Unk30 |
| const char * | Model = "" |
| uint8_t | uuid [16] |
| const char * | Name = "" |
| const char * | ResourceName = "" |
| FVector | SpawnPos = {0.0f, 0.0f, 0.0f} |
| IRotator | SpawnRot = {0, 0, 0} |
| FVector | SpawnScale = {1.0f, 1.0f, 1.0f} |
| FVector | Scale = {1, 1, 1} |
| float | Speed = 0.0f |
| std::vector< Triangle > | Triangles |
| bool | bPendingDestroy = false |
Static Private Attributes | |
| static size_t | _count = 0 |
| static std::map< uint32_t, std::vector< uint32_t > > | TrainCounts |
Note that you can only remove the tender if there are no carriages
| enum ATrain::SpawnMode : uint16_t |
| enum ATrain::TenderStatus |
|
explicit |
|
inline |
| s32 ATrain::AddSmoke | ( | s32 | trainIndex, |
| Vec3f | pos, | ||
| f32 | velocity ) |
|
overridevirtual |
Reimplemented from AActor.
|
inlinestatic |
|
overridevirtual |
Reimplemented from AActor.
|
virtual |
Make sure you call this in derived classes! Usage: MyActor::SetSpawnParams(SetSpawnParams& params) { AActor::SetSpawnParams(params); // Calls default implementation }
Reimplemented from AActor.
|
inlinestatic |
| void ATrain::SyncComponents | ( | TrainCarStuff * | trainCar, |
| s16 | orientationY ) |
|
overridevirtual |
|
overridevirtual |
|
staticprivate |
| int16_t ATrain::AnotherSmokeTimer = 0 |
| TenderStatus ATrain::HasTender = TenderStatus::NO_TENDER |
| size_t ATrain::Index |
| TrainCarStuff ATrain::Locomotive |
| int32_t ATrain::NextParticlePtr = 0 |
| std::vector<TrainCarStuff> ATrain::PassengerCars |
| size_t ATrain::PassengerCarsCount = 0 |
| uint32_t ATrain::PathIndex = 0 |
| uint32_t ATrain::PathPoint = 0 |
| int32_t ATrain::SmokeParticles[128] |
| int16_t ATrain::SmokeTimer = 0 |
| s32 ATrain::SomeFlags |
| f32 ATrain::SomeMultiplier |
| ATrain::SpawnMode ATrain::SpawnType = ATrain::SpawnMode::AUTO |
| TrainCarStuff ATrain::Tender |
|
staticprivate |