C# Class EducationSystem.SignNumGame.GameManager

Afficher le fichier Open project: huangfuyang/Sign-Language-with-Kinect Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GameManager ( Grid grid ) : System
grid Grid
Résultat System

MergeTile() public méthode

public MergeTile ( Tile movingTile, Tile mergedTile ) : void
movingTile Tile
mergedTile Tile
Résultat void

Move() public méthode

public Move ( Direction direction ) : bool
direction Direction
Résultat bool

Move() public méthode

public Move ( Tile tile, Point newPosition ) : void
tile Tile
newPosition Point
Résultat void

UpdateGame() public méthode

public UpdateGame ( bool isMoved ) : void
isMoved bool
Résultat void