Exemplo n.º 1
0
 /// <summary>
 /// Gets cells that are not committed yet by UpdateActiveShape
 /// </summary>
 /// <returns>Cells of changed, but not updated shape</returns>
 public Vector2[] GetChangedCells()
 {
     return(ShapeOnMatrix.GetShiftedCells(Location));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets up future shape to appear on screen
 /// </summary>
 public void SetupFutureShape()
 {
     _futureShapeOnMatrix = _shapeGenerator.GetNextElement();
     _futureColor         = _colorGenerator.GetNextElement();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Updates active shape
 /// </summary>
 public void UpdateActiveShape()
 {
     ActiveShape = ShapeOnMatrix.GetShiftedCells(Location);
 }