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

#include <Ship.h>

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

Public Types

enum  Skin : int16_t { GHOSTSHIP , SHIP2 , SHIP3 }
 

Public Member Functions

 AShip (const SpawnParams &params)
 
virtual ~AShip ()=default
 
virtual void SetSpawnParams (SpawnParams &params) override
 
virtual void Tick () override
 
virtual void BeginPlay () override
 
virtual bool IsMod () override
 
virtual void DrawEditorProperties () override
 
- Public Member Functions inherited from AActor
virtual ~AActor ()=default
 
 AActor ()
 
 AActor (SpawnParams params)
 
virtual void Draw (Camera *camera)
 
virtual void Collision (Player *player, AActor *actor)
 
virtual void VehicleCollision (s32 playerId, Player *player)
 
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 AShipSpawn (FVector pos, IRotator rot, FVector scale, int16_t skin)
 

Data Fields

AShip::Skin SpawnSkin = Skin::GHOSTSHIP
 
- 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< TriangleTriangles
 
bool bPendingDestroy = false
 

Private Attributes

Gfx * _skin
 

Member Enumeration Documentation

◆ Skin

enum AShip::Skin : int16_t
Enumerator
GHOSTSHIP 
SHIP2 
SHIP3 

Constructor & Destructor Documentation

◆ AShip()

AShip::AShip ( const SpawnParams & params)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~AShip()

virtual AShip::~AShip ( )
virtualdefault

Member Function Documentation

◆ BeginPlay()

void AShip::BeginPlay ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ DrawEditorProperties()

void AShip::DrawEditorProperties ( )
overridevirtual

Reimplemented from AActor.

Here is the call graph for this function:

◆ IsMod()

bool AShip::IsMod ( )
overridevirtual

Reimplemented from AActor.

◆ SetSpawnParams()

void AShip::SetSpawnParams ( SpawnParams & params)
overridevirtual

Make sure you call this in derived classes! Usage: MyActor::SetSpawnParams(SetSpawnParams& params) { AActor::SetSpawnParams(params); // Calls default implementation }

Reimplemented from AActor.

Here is the call graph for this function:

◆ Spawn()

static AShip * AShip::Spawn ( FVector pos,
IRotator rot,
FVector scale,
int16_t skin )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void AShip::Tick ( )
overridevirtual

Reimplemented from AActor.

Field Documentation

◆ _skin

Gfx* AShip::_skin
private

◆ SpawnSkin

AShip::Skin AShip::SpawnSkin = Skin::GHOSTSHIP

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