Package megamek.common.units
Class EntityFluff
java.lang.Object
megamek.common.units.EntityFluff
- All Implemented Interfaces:
Serializable
Tracks fluff details for entities.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUsed for writing the system manufacturers to a unit fileUsed for writing the system models to a unit filegetNotes()getSystemManufacturer(System system) Retrieves the manufacturer of particular system componentgetSystemModel(System system) Retrieves the manufacturer of particular system componentgetUse()getWidth()booleanvoidsetCapabilities(String newCapabilities) voidsetDeployment(String newDeployment) voidsetFluffDate(String fluffDate) voidsetFluffImage(String fluffImage64) Sets the encoded form of the fluff image to the given String.voidvoidsetHistory(String newHistory) voidvoidsetManufacturer(String manufacturer) voidvoidsetOverview(String newOverview) voidsetPrimaryFactory(String primaryFactory) voidsetSystemManufacturer(System system, String manufacturer) Sets the name of the manufacturer of a particular system component.voidsetSystemModel(System system, String model) Sets the model name of a particular system component.voidvoid
-
Constructor Details
-
EntityFluff
public EntityFluff()
-
-
Method Details
-
getCapabilities
-
setCapabilities
-
getOverview
-
setOverview
-
getDeployment
-
setDeployment
-
setHistory
-
getHistory
-
getManufacturer
-
setManufacturer
-
getPrimaryFactory
-
setPrimaryFactory
-
getSystemManufacturer
Retrieves the manufacturer of particular system component- Parameters:
system- The system component- Returns:
- The name of the manufacturer, or an empty string if it has not been set.
-
setSystemManufacturer
Sets the name of the manufacturer of a particular system component.- Parameters:
system- The system componentmanufacturer- The name of the manufacturer, ornullor an empty string to remove the entry.
-
getSystemModel
Retrieves the manufacturer of particular system component- Parameters:
system- The system component- Returns:
- The name of the manufacturer, or an empty string if it has not been set.
-
setSystemModel
Sets the model name of a particular system component.- Parameters:
system- The system componentmodel- The model name, ornullor an empty string to remove the entry.
-
getNotes
-
setNotes
-
getFluffDate
- Returns:
- The fluff date string, never null. Handles null from deserialization of older objects.
-
setFluffDate
-
getUse
-
setUse
-
getLength
-
setLength
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
createSystemManufacturersList
Used for writing the system manufacturers to a unit file- Returns:
- A list of all system manufacturers formatted as "system:manufacturer"
-
createSystemModelsList
Used for writing the system models to a unit file- Returns:
- A list of all system models formatted as "system:model"
-
setFluffImage
Sets the encoded form of the fluff image to the given String. -
getFluffImage
- Returns:
- The unit's fluff image, if a fluff image was stored in the unit file; null otherwise.
-
hasEmbeddedFluffImage
public boolean hasEmbeddedFluffImage()- Returns:
- True if a fluff image is part of the unit, i.e. stored in the unit file or set in MML.
-
getBase64FluffImage
- Returns:
- The Base64Image holding an embedded fluff image. Empty if no fluff image was stored in the unit file.
-