private void GoDown() { secondDestroyer = tileFactory.CreateDestoyer(); secondDestroyer.Move( PositionConverter.GetPositionsOnScreen(r: lineBonus.R + 1, c: lineBonus.C), PositionConverter.GetPositionsOnScreen(r: matrix.Rows - 1, c: lineBonus.C) ); }
private void GoRight() { secondDestroyer = tileFactory.CreateDestoyer(); secondDestroyer.Move( PositionConverter.GetPositionsOnScreen(r: lineBonus.R, c: lineBonus.C + 1), PositionConverter.GetPositionsOnScreen(r: lineBonus.R, c: matrix.Columns - 1) ); }
private void GoUp() { firstDestroyer = tileFactory.CreateDestoyer(); firstDestroyer.Move( PositionConverter.GetPositionsOnScreen(r: lineBonus.R - 1, c: lineBonus.C), PositionConverter.GetPositionsOnScreen(r: 0, c: lineBonus.C) ); }
private void GoLeft() { firstDestroyer = tileFactory.CreateDestoyer(); firstDestroyer.Move( PositionConverter.GetPositionsOnScreen(r: lineBonus.R, c: lineBonus.C - 1), PositionConverter.GetPositionsOnScreen(r: lineBonus.R, c: 0) ); }