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

Public Member Functions

void SetModel (const TSharedPtr< SnakeGame::Snake > &Snake, uint32 CellSize, const SnakeGame::Dim &Dims)
 
void UpdateColors (const FSnakeColors &Colors)
 
void Explode ()
 
virtual void Tick (float DeltaTime) override
 

Protected Attributes

TSubclassOf< AActor > SnakeLinkClass
 

Private Member Functions

void InitObjectPool ()
 

Private Attributes

TWeakPtr< SnakeGame::SnakeSnake
 
uint32 CellSize
 
SnakeGame::Dim Dims
 
FLinearColor SnakeLinkColor
 
TArray< TObjectPtr< ASG_SnakeLink > > SnakeLinks
 
TObjectPtr< USG_ObjectPoolSnakeObjectPool {nullptr}
 

Member Function Documentation

◆ SetModel()

void ASG_Snake::SetModel ( const TSharedPtr< SnakeGame::Snake > &  Snake,
uint32  CellSize,
const SnakeGame::Dim Dims 
)

Set core model to be observed by the Snake world actor

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

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