public Bomb(PictureBox[,] _mapPic, Point _bombPlace, deBoom bb) { mapPic = _mapPic; bombPlace = _bombPlace; boBoom = bb; CreateTime(); timer.Enabled = true; }
public bool PutBomb(PictureBox[,] mapPic, deBoom bb) { if (bombs.Count >= countBombs) { return(false); } Bomb bomb = new Bomb(mapPic, MyNowPoint(), bb); bombs.Add(bomb); return(true); }
public bool PutBomb(PictureBox[,] mapPic, deBoom boom) { if (bombs.Count >= countBomb) { return(false); } player.Image = Properties.Resources.Character; Bomb bomb = new Bomb(mapPic, MycurrentPossion(), boom); bombs.Add(bomb); return(true); }