Example #1
0
        public Trap(PictureBox[,] mapPic, Point trapPlace, delSplash splash)
        {
            this.trapPlace = trapPlace;
            this.mapPic    = mapPic;
            this.splash    = splash;

            CreateTimer();
            timer.Enabled = true;
        }
Example #2
0
        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);
        }