C# Class EducationSystem.SignNumGame.GameManager

Datei anzeigen Open project: huangfuyang/Sign-Language-with-Kinect Class Usage Examples

Public Methods

Method Description
GameManager ( Grid grid ) : System
MergeTile ( Tile movingTile, Tile mergedTile ) : void
Move ( Direction direction ) : bool
Move ( Tile tile, Point newPosition ) : void
UpdateGame ( bool isMoved ) : void

Private Methods

Method Description
AddRandomTile ( int maxSize ) : void
CreateTransversalOrder ( int axisDelta ) : IEnumerable
GetFarthestPosition ( Point position, Point delta ) : Point
GetNextValue ( int value ) : int
IsTilesMergeable ( Tile movingTile, Point mergedPosition ) : bool
Reset ( ) : void
getDirectionDelta ( Direction direction ) : Point

Method Details

GameManager() public method

public GameManager ( Grid grid ) : System
grid Grid
return System

MergeTile() public method

public MergeTile ( Tile movingTile, Tile mergedTile ) : void
movingTile Tile
mergedTile Tile
return void

Move() public method

public Move ( Direction direction ) : bool
direction Direction
return bool

Move() public method

public Move ( Tile tile, Point newPosition ) : void
tile Tile
newPosition Point
return void

UpdateGame() public method

public UpdateGame ( bool isMoved ) : void
isMoved bool
return void