|
Unreal Snake Game 1.0.0
|
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::Snake > | Snake |
| uint32 | CellSize |
| SnakeGame::Dim | Dims |
| FLinearColor | SnakeLinkColor |
| TArray< TObjectPtr< ASG_SnakeLink > > | SnakeLinks |
| TObjectPtr< USG_ObjectPool > | SnakeObjectPool {nullptr} |
| 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
| Snake | model object |
| CellSize | world size of the cell |
| Dims | dimensions of the grid |