public Trap(PictureBox[,] mapPic, Point trapPlace, delSplash splash) { this.trapPlace = trapPlace; this.mapPic = mapPic; this.splash = splash; CreateTimer(); timer.Enabled = true; }
public bool CanCreateTrap(PictureBox [,] mapPic, delSplash splash) { if (traps.Count >= quantityOfTraps) { return(false); } Trap trap = new Trap(mapPic, MyNowPoint(), splash); traps.Add(trap); return(true); }