Unreal Snake Game 1.0.0
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ASG_Food Class Reference
Inheritance diagram for ASG_Food:

Public Member Functions

virtual void Tick (float DeltaTime) override
 
void SetModel (const TSharedPtr< SnakeGame::Food > &InFood, uint32 InCellSize, const SnakeGame::Dim &InDims)
 
void UpdateColor (const FLinearColor &Color)
 
void Explode ()
 
void Hide ()
 

Protected Attributes

TObjectPtr< USceneComponent > Origin
 
TObjectPtr< UStaticMeshComponent > FoodMesh
 
TObjectPtr< UNiagaraSystem > ExplosionEffect
 

Private Member Functions

FVector GetFoodWorldLocation () const
 

Private Attributes

TWeakPtr< SnakeGame::FoodFood
 
uint32 CellSize
 
SnakeGame::Dim Dims
 
FLinearColor FoodColor
 

Member Function Documentation

◆ SetModel()

void ASG_Food::SetModel ( const TSharedPtr< SnakeGame::Food > &  InFood,
uint32  InCellSize,
const SnakeGame::Dim InDims 
)

Set core model to be observed by the Food world actor

Parameters
Foodmodel object
CellSizeworld size of the cell
Dimsdimensions of the grid

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