CMCommon, Manufacturer, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>public class DefaultManufacturer extends java.lang.Object implements Manufacturer
| Modifier and Type | Field | Description |
|---|---|---|
protected MaskingLibrary.CompiledZMask |
compiledItemMask |
|
protected double |
efficiency |
|
protected byte |
maxTechLevelDiff |
|
protected byte |
minTechLevelDiff |
|
protected java.lang.String |
name |
|
protected java.lang.String |
rawItemMask |
|
protected double |
reliability |
|
protected java.util.Set<Technical.TechType> |
types |
idConverter| Constructor | Description |
|---|---|
DefaultManufacturer() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
double |
getEfficiencyPct() |
Returns a pct, from 0-2, to multiply by the power requirements
of electronic items for certain purposes.
|
MaskingLibrary.CompiledZMask |
getItemMask() |
Returns the item mask that describes what kind of items this
manufacturer makes.
|
java.lang.String |
getItemMaskStr() |
Returns the item mask that describes what kind of items this
manufacturer makes.
|
java.lang.String |
getManufactureredTypesList() |
Returns a comma-delimited list of the types of things this manufacturer will make.
|
byte |
getMaxTechLevelDiff() |
Returns a positive difference from Max Tech Level-10.
|
byte |
getMinTechLevelDiff() |
Returns a positive difference from Max Tech Level-10.
|
double |
getReliabilityPct() |
Returns a pct, from 0-2, to multiply by the amt of damage taken,
and the chance of failure, esp.
|
java.lang.String |
getXml() |
Returns an Xml document representing this manufacturer.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isManufactureredType(Technical T) |
Returns whether the given item will be manufacturered by this manufacturer.
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
void |
setEfficiencyPct(double pct) |
Sets a pct, from 0-2, to multiply by the power requirements
of electronic items for certain purposes.
|
void |
setItemMask(java.lang.String newMask) |
Sets the item mask that describes what kind of items this
manufacturer makes.
|
void |
setManufactureredTypesList(java.lang.String list) |
Sets the comma-delimited list of the types of things this manufacturer will make.
|
void |
setMaxTechLevelDiff(byte max) |
Sets a positive difference from Max Tech Level-10.
|
void |
setMinTechLevelDiff(byte min) |
Sets a positive difference from Max Tech Level-10.
|
void |
setName(java.lang.String name) |
Sets the name of the manufacturer
|
void |
setReliabilityPct(double pct) |
Sets a pct, from 0-2, to multiply by the amt of damage taken,
and the chance of failure, esp.
|
void |
setXml(java.lang.String xml) |
Sets an Xml document representing this manufacturer.
|
protected java.lang.String name
protected byte maxTechLevelDiff
protected byte minTechLevelDiff
protected double efficiency
protected double reliability
protected java.lang.String rawItemMask
protected java.util.Set<Technical.TechType> types
protected MaskingLibrary.CompiledZMask compiledItemMask
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public CMObject copyOf()
CMObjectpublic byte getMaxTechLevelDiff()
ManufacturergetMaxTechLevelDiff in interface Manufacturerpublic void setMaxTechLevelDiff(byte max)
ManufacturersetMaxTechLevelDiff in interface Manufacturermax - a number from 0-10public byte getMinTechLevelDiff()
ManufacturergetMinTechLevelDiff in interface Manufacturerpublic void setMinTechLevelDiff(byte min)
ManufacturersetMinTechLevelDiff in interface Manufacturermin - a number from 0-10public void setName(java.lang.String name)
ManufacturersetName in interface Manufacturername - of the manufacturerpublic double getEfficiencyPct()
ManufacturergetEfficiencyPct in interface Manufacturerpublic void setEfficiencyPct(double pct)
ManufacturersetEfficiencyPct in interface Manufacturerpct - from 0-2public double getReliabilityPct()
ManufacturergetReliabilityPct in interface Manufacturerpublic void setReliabilityPct(double pct)
ManufacturersetReliabilityPct in interface Manufacturerpct - from 0-2public java.lang.String getItemMaskStr()
ManufacturergetItemMaskStr in interface ManufacturerMaskingLibrarypublic void setItemMask(java.lang.String newMask)
ManufacturersetItemMask in interface ManufacturernewMask - the zapperMaskMaskingLibrarypublic boolean isManufactureredType(Technical T)
ManufacturerisManufactureredType in interface ManufacturerT - the item typepublic java.lang.String getManufactureredTypesList()
ManufacturergetManufactureredTypesList in interface Manufacturerpublic void setManufactureredTypesList(java.lang.String list)
ManufacturersetManufactureredTypesList in interface Manufacturerlist - the comma-delimited list of the types of things this manufacturer will make.public MaskingLibrary.CompiledZMask getItemMask()
ManufacturergetItemMask in interface ManufacturerMaskingLibrarypublic java.lang.String getXml()
ManufacturergetXml in interface Manufacturerpublic void setXml(java.lang.String xml)
ManufacturersetXml in interface Manufacturerxml - Xml document representing this manufacturer.