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

Public Member Functions

virtual void StartPlay () override
 
virtual void Tick (float DeltaSeconds) override
 

Protected Attributes

bool bOverrideUserSettings {false}
 
FUintPoint GridDims {10, 10}
 
uint32 CellSize {10}
 
uint32 SnakeDefaultSize {5}
 
float GameSpeed {1.0f}
 
TSubclassOf< ASG_GridGridVisualClass
 
TSubclassOf< ASG_SnakeSnakeVisualClass
 
TSubclassOf< ASG_FoodFoodVisualClass
 
TObjectPtr< UDataTable > ColorsTable
 
TObjectPtr< UInputAction > MoveForwardInputAction
 
TObjectPtr< UInputAction > MoveRightInputAction
 
TObjectPtr< UInputAction > ResetGameInputAction
 
TObjectPtr< UInputMappingContext > InputMapping
 

Private Member Functions

void NextColor ()
 
SnakeGame::Settings MakeSettings () const
 
void FindFog ()
 
void UpdateColors ()
 
void SetupInput ()
 
void OnMoveForward (const FInputActionValue &Value)
 
void OnMoveRight (const FInputActionValue &Value)
 
void OnGameReset (const FInputActionValue &Value)
 
void SubscribeOnGameEvents ()
 

Private Attributes

TObjectPtr< ASG_GridGridVisual
 
TObjectPtr< ASG_SnakeSnakeVisual
 
TObjectPtr< ASG_FoodFoodVisual
 
TObjectPtr< AExponentialHeightFog > Fog
 
TObjectPtr< ASG_HUDHUD
 
TSharedPtr< SnakeGame::GameGame
 
uint32 ColorTableIndex {0}
 
SnakeGame::Input SnakeInput {SnakeGame::Input::Default}
 

Member Function Documentation

◆ UpdateColors()

void ASG_GameMode::UpdateColors ( )
private

Updates Grid and ExponentialFog colours according to the ColorsTable property


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