示例#1
0
 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)
         );
 }
示例#2
0
 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)
         );
 }
示例#3
0
 private void GoUp()
 {
     firstDestroyer = tileFactory.CreateDestoyer();
     firstDestroyer.Move(
         PositionConverter.GetPositionsOnScreen(r: lineBonus.R - 1, c: lineBonus.C),
         PositionConverter.GetPositionsOnScreen(r: 0, c: lineBonus.C)
         );
 }
示例#4
0
 private void GoLeft()
 {
     firstDestroyer = tileFactory.CreateDestoyer();
     firstDestroyer.Move(
         PositionConverter.GetPositionsOnScreen(r: lineBonus.R, c: lineBonus.C - 1),
         PositionConverter.GetPositionsOnScreen(r: lineBonus.R, c: 0)
         );
 }