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

Public Member Functions

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

Protected Member Functions

virtual void BeginPlay () override
 

Protected Attributes

TObjectPtr< USceneComponent > Origin
 
TObjectPtr< UStaticMeshComponent > GridMesh
 

Private Member Functions

void DrawGrid ()
 

Private Attributes

UMaterialInstanceDynamic * GridMaterial
 
SnakeGame::Dim GridDim
 
uint32 CellSize
 
uint32 WorldWidth
 
uint32 WorldHeight
 

Member Function Documentation

◆ SetModel()

void ASG_Grid::SetModel ( const TSharedPtr< SnakeGame::Grid > &  Grid,
uint32  CellSize 
)

Set core model to be observed by the grid world actor

Parameters
Gridmodel object
CellSizeworld size of the cell

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