Package megamek.common.util
Class BuildingTemplate
java.lang.Object
megamek.common.util.BuildingTemplate
- All Implemented Interfaces:
Serializable
Building template, for placing on the map during map generation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuildingTemplate(BuildingType type, ArrayList<Coords> coords) Deprecated, for removal: This API element is subject to removal in a future version.Unused, will be removed in future versions.BuildingTemplate(BuildingType type, ArrayList<Coords> coords, int CF, int height, int basement) -
Method Summary
-
Field Details
-
BASEMENT_RANDOM
public static final int BASEMENT_RANDOM- See Also:
-
-
Constructor Details
-
BuildingTemplate
@Deprecated(since="0.50.07", forRemoval=true) public BuildingTemplate(BuildingType type, ArrayList<Coords> coords) Deprecated, for removal: This API element is subject to removal in a future version.Unused, will be removed in future versions. Use the other constructorConstructor for a building template.- Parameters:
type- type of the buildingBuildingTypecoords- vector containing Coords of all hexes the building covers
-
BuildingTemplate
public BuildingTemplate(BuildingType type, ArrayList<Coords> coords, int CF, int height, int basement)
-
-
Method Details
-
getCoords
- Returns:
- vector containing Coords of all hexes the building covers
-
getType
- Returns:
- type of the building (Building.LIGHT - Building.HARDENED)
-
getCF
public int getCF()- Returns:
- construction factor, used to initialise BLDG_CF
-
getHeight
public int getHeight()- Returns:
- height of the building, used to initialise BLDG_ELEV
-
getBasement
public int getBasement()- Returns:
- basement settings - basements arent implemented yet
-
containsCoords
-