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

#include <Crab.h>

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

Public Member Functions

 OCrab (const SpawnParams &params)
 
 ~OCrab ()
 
virtual void Tick () override
 
virtual void Draw (s32 cameraId) override
 
virtual void SetSpawnParams (SpawnParams &params) override
 
virtual void DrawEditorProperties () override
 
void DrawModel (s32 cameraId)
 
void init_ktb_crab (s32 objectIndex)
 
void func_80082B34 (s32 objectIndex)
 
void func_80082C30 (s32 objectIndex)
 
void func_80082E18 (s32 objectIndex)
 
- Public Member Functions inherited from OObject
virtual ~OObject ()=default
 
 OObject ()
 
 OObject (SpawnParams params)
 
virtual void Tick60fps ()
 
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)
 

Static Public Member Functions

static OCrabSpawn (const FVector2D &start, const FVector2D &end)
 

Private Attributes

FVector2D _start
 
FVector2D _end
 
s32 _idx
 

Static Private Attributes

static size_t _count = 0
 

Additional Inherited Members

- 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
 

Detailed Description

  • start x and z spawn location
  • end x and z patrol location

Crab patrols between start and end. The game automatically places the actor on the surface of the tracks geometry. Therefore, providing a Y height is unnecessary.

Crab appears to have a maximum patrolling distance and will patrol between end --> max distance rather than start --> end or start --> max distance.

Constructor & Destructor Documentation

◆ OCrab()

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

◆ ~OCrab()

OCrab::~OCrab ( )
inline

Member Function Documentation

◆ Draw()

void OCrab::Draw ( s32 cameraId)
overridevirtual

Reimplemented from OObject.

Here is the call graph for this function:

◆ DrawEditorProperties()

void OCrab::DrawEditorProperties ( )
overridevirtual

Reimplemented from OObject.

◆ DrawModel()

void OCrab::DrawModel ( s32 cameraId)
Here is the call graph for this function:

◆ func_80082B34()

void OCrab::func_80082B34 ( s32 objectIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80082C30()

void OCrab::func_80082C30 ( s32 objectIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80082E18()

void OCrab::func_80082E18 ( s32 objectIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_ktb_crab()

void OCrab::init_ktb_crab ( s32 objectIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetSpawnParams()

void OCrab::SetSpawnParams ( SpawnParams & params)
overridevirtual

Reimplemented from OObject.

◆ Spawn()

static OCrab * OCrab::Spawn ( const FVector2D & start,
const FVector2D & end )
inlinestatic
Here is the call graph for this function:

◆ Tick()

void OCrab::Tick ( void )
overridevirtual

Reimplemented from OObject.

Here is the call graph for this function:

Field Documentation

◆ _count

size_t OCrab::_count = 0
staticprivate

◆ _end

FVector2D OCrab::_end
private

◆ _idx

s32 OCrab::_idx
private

◆ _start

FVector2D OCrab::_start
private

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