예제 #1
0
파일: Player.cs 프로젝트: khrpnv/LodeRunner
 protected static void PutTrap(GameCell[,] gameField, PictureBox[,] pictureField, int i, int j, int delta, Panel MainPanel)
 {
     if (gameField[i, j + delta].Type != "FreeArea" || RopeTrapAmount <= 0)
     {
         return;
     }
     gameField[i, j + delta] = new RopeTrap();
     RopeTrapAmount--;
     Update(i, j, delta, 0, gameField, pictureField, new Player(i, j), new RopeTrap(), MainPanel);
 }
예제 #2
0
 protected static void Die(GameCell[,] gameField, PictureBox[,] pictureField, int i, int j, int delta, Panel MainPanel)
 {
     gameField[i, j + delta] = new RopeTrap();
     gameField[i, j]         = new FreeArea();
     Update(i, j, delta, 0, gameField, pictureField, new FreeArea(), new RopeTrap(), MainPanel);
 }