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); }
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); }