Exemplo n.º 1
0
 public object CopyObject()
 {
     Building newBuild = new Building();
     newBuild.setName(this.getName());
     newBuild.setX(this.x);
     newBuild.setY(this.y);
     newBuild.setWidth(this.width);
     newBuild.setHeight(this.height);
     newBuild.setBuildingType(this.buildingType);
     newBuild.setDoor(this.door.x, this.door.y);
     newBuild.setLit(this.isLit());
     newBuild.setRoofType(this.roofType);
     return newBuild;
 }
 public static void initialize(Building building)
 {
     building.setWidth(getWidth(building.getBuildingType()));
     building.setHeight(getHeight(building.getBuildingType()));
     building.setName(BuildingManager.makeBuildingName(building));
 }