示例#1
0
        public ILane Build(LaneStyle style)
        {
            switch (style)
            {
            case LaneStyle.Classic:
                return(SelectLane("Classy", style));

            case LaneStyle.WildWest:
                return(SelectLane("Cowboy", style));

            case LaneStyle.Disco:
            default:
                return(SelectLane("Saturday night", style));
            }
        }
示例#2
0
 protected internal override ILane SelectLane(string name, LaneStyle style)
 {
     return(new OakLane {
         PriceRange = LanePriceRange.AllStars, Name = name, LaneStyle = style
     });
 }
 protected internal override ILane SelectLane(string name, LaneStyle style)
 {
     return(new PineWoodLane {
         PriceRange = LanePriceRange.Beginners, Name = name, LaneStyle = style
     });
 }
示例#4
0
 protected internal abstract ILane SelectLane(string name, LaneStyle style);