コード例 #1
0
 public Area(int x, int y, int h, int w, orientation or, buildingTypeEnum areaType)
 {
     this.height   = h;
     this.width    = w;
     this.x        = x;
     this.y        = y;
     this.dir      = or;
     this.areaType = areaType;
     this.depth    = 1;
 }
コード例 #2
0
 public Area(int x, int y, int h, int w, orientation or, int depth)
 {
     this.height   = h;
     this.width    = w;
     this.x        = x;
     this.y        = y;
     this.dir      = or;
     this.areaType = buildingTypeEnum.BUILDING;
     this.depth    = depth;
 }
コード例 #3
0
        public static Building MakeBuilding(double bldarea, string bldgname, buildingTypeEnum bldgType)
        {
            Building zeb = new Building();

            zeb.Area         = bldarea;
            zeb.id           = bldgname;
            zeb.buildingType = bldgType;
            //this has been arbitrarily defined and could be changed
            zeb.bldgStories = new BuildingStorey[1000];
            zeb.Spaces      = new Space[10000];
            return(zeb);
        }
コード例 #4
0
 public static Building MakeBuilding(double bldarea, string bldgname,buildingTypeEnum bldgType)
 {
     Building zeb = new Building();
     zeb.Area = bldarea;
     zeb.id = bldgname;
     zeb.buildingType = bldgType;
     //this has been arbitrarily defined and could be changed
     zeb.bldgStories = new BuildingStorey[1000];
     zeb.Spaces = new Space[10000];
     return zeb;
 }