Exemple #1
0
        public Lanes()
        {
            this.BowlingLanes = new List <BowlingLane>();

            for (var i = 0; i < 16; i++)
            {
                BowlingLane lane = new BowlingLane(i, 7);
                this.BowlingLanes.Add(lane);
            }
        }
Exemple #2
0
        public bool CheckAvailOfLane(int LaneID, List <int> Hours)
        {
            BowlingLane lane         = _bowlinglanes[LaneID];
            bool        Availability = true;

            for (int i = 0; i < Hours.Count; i++)
            {
                if (lane.GetStatus(Hours[i]) == Status.Occupied)
                {
                    Availability = false;
                }
            }
            return(Availability);
        }
Exemple #3
0
        public Status GetStatus(int LaneID, int Hour)
        {
            BowlingLane lane = _bowlinglanes[LaneID];

            return(lane.GetStatus(Hour));
        }