|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultManufacturer
public class DefaultManufacturer
| Field Summary | |
|---|---|
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
|
| Constructor Summary | |
|---|---|
DefaultManufacturer()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public DefaultManufacturer()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String name()
CMObject
name in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic byte getMaxTechLevelDiff()
Manufacturer
getMaxTechLevelDiff in interface Manufacturerpublic void setMaxTechLevelDiff(byte max)
Manufacturer
setMaxTechLevelDiff in interface Manufacturermax - a number from 0-10public byte getMinTechLevelDiff()
Manufacturer
getMinTechLevelDiff in interface Manufacturerpublic void setMinTechLevelDiff(byte min)
Manufacturer
setMinTechLevelDiff in interface Manufacturermin - a number from 0-10public void setName(java.lang.String name)
Manufacturer
setName in interface Manufacturername - of the manufacturerpublic double getEfficiencyPct()
Manufacturer
getEfficiencyPct in interface Manufacturerpublic void setEfficiencyPct(double pct)
Manufacturer
setEfficiencyPct in interface Manufacturerpct - from 0-2public double getReliabilityPct()
Manufacturer
getReliabilityPct in interface Manufacturerpublic void setReliabilityPct(double pct)
Manufacturer
setReliabilityPct in interface Manufacturerpct - from 0-2public java.lang.String getItemMaskStr()
Manufacturer
getItemMaskStr in interface ManufacturerMaskingLibrarypublic void setItemMask(java.lang.String newMask)
Manufacturer
setItemMask in interface ManufacturernewMask - the zapperMaskMaskingLibrarypublic boolean isManufactureredType(Technical T)
Manufacturer
isManufactureredType in interface ManufacturerT - the item type
public java.lang.String getManufactureredTypesList()
Manufacturer
getManufactureredTypesList in interface Manufacturerpublic void setManufactureredTypesList(java.lang.String list)
Manufacturer
setManufactureredTypesList in interface Manufacturerlist - the comma-delimited list of the types of things this manufacturer will make.public MaskingLibrary.CompiledZMask getItemMask()
Manufacturer
getItemMask in interface ManufacturerMaskingLibrarypublic java.lang.String getXml()
Manufacturer
getXml in interface Manufacturerpublic void setXml(java.lang.String xml)
Manufacturer
setXml in interface Manufacturerxml - Xml document representing this manufacturer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||