示例#1
0
 private static Area BuildAreaType(areaType type, Room fromHere)
 {
     Area area = null;
     switch (type) {
         case areaType.home:
             area = BuildHomeArea(fromHere);  // setup restrictions, weather, unique stats ...
             break;
         default:
             area = new Area("Undefined Area", "A default undefined area.");
             break;
     }
     return area;
 }
示例#2
0
        private static Area BuildAreaType(areaType type, Room fromHere)
        {
            Area area = null;

            switch (type)
            {
            case areaType.home:
                area = BuildHomeArea(fromHere);      // setup restrictions, weather, unique stats ...
                break;

            default:
                area = new Area("Undefined Area", "A default undefined area.");
                break;
            }
            return(area);
        }
示例#3
0
 public static Area AreaType(areaType type, Room fromHere = null)
 {
     return(BuildAreaType(type, fromHere));
 }
示例#4
0
 public static Area AreaType(areaType type, Room fromHere = null)
 {
     return BuildAreaType(type, fromHere);
 }