SpaghettiKart
Loading...
Searching...
No Matches
TrackEditor::GameObject Class Reference

#include <GameObject.h>

Inheritance diagram for TrackEditor::GameObject:
[legend]
Collaboration diagram for TrackEditor::GameObject:
[legend]

Public Types

enum class  CollisionType { VTX_INTERSECT , BOUNDING_BOX , BOUNDING_SPHERE }
 

Public Member Functions

 GameObject (FVector pos, IRotator rot, FVector scale, const char *model, std::vector< Triangle > triangles, CollisionType collision, float boundingBoxSize)
 
 GameObject ()
 
virtual ~GameObject ()=default
 
virtual void Tick ()
 
virtual void Draw ()
 
virtual void Load ()
 
FVector GetLocation () const
 
IRotator GetRotation () const
 
FVector GetScale () const
 
void Translate (FVector pos)
 
void Rotate (IRotator rot)
 
void SetScale (FVector scale)
 
void Destroy ()
 
virtual void DrawEditorProperties ()
 

Data Fields

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}
 
float Speed
 
FVector Pos
 
IRotator Rot
 
FVector Scale
 
const char * Model = ""
 
std::vector< TriangleTriangles
 
CollisionType Collision
 
float BoundingBoxSize
 

Member Enumeration Documentation

◆ CollisionType

Enumerator
VTX_INTERSECT 
BOUNDING_BOX 
BOUNDING_SPHERE 

Constructor & Destructor Documentation

◆ GameObject() [1/2]

TrackEditor::GameObject::GameObject ( FVector pos,
IRotator rot,
FVector scale,
const char * model,
std::vector< Triangle > triangles,
CollisionType collision,
float boundingBoxSize )

◆ GameObject() [2/2]

TrackEditor::GameObject::GameObject ( )

◆ ~GameObject()

virtual TrackEditor::GameObject::~GameObject ( )
virtualdefault

Member Function Documentation

◆ Destroy()

void TrackEditor::GameObject::Destroy ( )
inline

◆ Draw()

void TrackEditor::GameObject::Draw ( )
virtual

◆ DrawEditorProperties()

virtual void TrackEditor::GameObject::DrawEditorProperties ( )
inlinevirtual
Here is the call graph for this function:

◆ GetLocation()

FVector TrackEditor::GameObject::GetLocation ( ) const

◆ GetRotation()

IRotator TrackEditor::GameObject::GetRotation ( ) const

◆ GetScale()

FVector TrackEditor::GameObject::GetScale ( ) const

◆ Load()

virtual void TrackEditor::GameObject::Load ( )
inlinevirtual

◆ Rotate()

void TrackEditor::GameObject::Rotate ( IRotator rot)

◆ SetScale()

void TrackEditor::GameObject::SetScale ( FVector scale)

◆ Tick()

void TrackEditor::GameObject::Tick ( )
virtual

◆ Translate()

void TrackEditor::GameObject::Translate ( FVector pos)

Field Documentation

◆ BoundingBoxSize

float TrackEditor::GameObject::BoundingBoxSize

◆ Collision

CollisionType TrackEditor::GameObject::Collision

◆ Model

const char* TrackEditor::GameObject::Model = ""

◆ Name

const char* TrackEditor::GameObject::Name

◆ Pos

FVector TrackEditor::GameObject::Pos

◆ ResourceName

const char* TrackEditor::GameObject::ResourceName

◆ Rot

IRotator TrackEditor::GameObject::Rot

◆ Scale

FVector TrackEditor::GameObject::Scale

◆ SpawnPos

FVector TrackEditor::GameObject::SpawnPos = {0.0f, 0.0f, 0.0f}

◆ SpawnRot

IRotator TrackEditor::GameObject::SpawnRot = {0, 0, 0}

◆ SpawnScale

FVector TrackEditor::GameObject::SpawnScale = {1.0f, 1.0f, 1.0f}

◆ Speed

float TrackEditor::GameObject::Speed

◆ Triangles

std::vector<Triangle> TrackEditor::GameObject::Triangles

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