public Lanes() { this.BowlingLanes = new List <BowlingLane>(); for (var i = 0; i < 16; i++) { BowlingLane lane = new BowlingLane(i, 7); this.BowlingLanes.Add(lane); } }
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); }
public Status GetStatus(int LaneID, int Hour) { BowlingLane lane = _bowlinglanes[LaneID]; return(lane.GetStatus(Hour)); }