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

Public Member Functions

void UpdateLocation (const SnakeGame::Dim &Dim, int32 CellSize, const FTransform &GridOrigin)
 

Protected Attributes

USceneComponent * Origin
 
UCameraComponent * Camera
 

Private Member Functions

void OnViewportResized (FViewport *Viewport, uint32 Val)
 

Private Attributes

SnakeGame::Dim Dim
 
int32 CellSize
 
FTransform GridOrigin
 
FDelegateHandle ResizeHandle
 

Member Function Documentation

◆ UpdateLocation()

void ASG_Pawn::UpdateLocation ( const SnakeGame::Dim Dim,
int32  CellSize,
const FTransform &  GridOrigin 
)

Updates pawn height fitting grid in viewport

Parameters
Dimgrid dimensions
CellSizeworld size of the cell
GridOriginworld transformation of the grid

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