|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Items.Basic.StdItem
com.planet_ink.coffee_mud.Items.Basic.StdContainer
com.planet_ink.coffee_mud.Items.BasicTech.StdElecContainer
public class StdElecContainer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Technical |
|---|
Technical.TechCommand, Technical.TechType |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
Wearable.CODES |
| Field Summary | |
|---|---|
protected boolean |
activated
|
protected Manufacturer |
cachedManufact
|
protected java.lang.String |
manufacturer
|
protected long |
power
|
protected long |
powerCapacity
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
capacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks |
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
|---|
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD |
| Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container |
|---|
CONTAIN_ANYTHING, CONTAIN_BODIES, CONTAIN_CAGED, CONTAIN_CLOTHES, CONTAIN_COINS, CONTAIN_DAGGERS, CONTAIN_DESCS, CONTAIN_DRINKABLES, CONTAIN_EATABLES, CONTAIN_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_RAWMATERIALS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS |
| Constructor Summary | |
|---|---|
StdElecContainer()
|
|
| Method Summary | |
|---|---|
void |
activate(boolean truefalse)
Sets whether this electrical item is "turned on". |
boolean |
activated()
Gets whether this electrical item is "turned on". |
protected double |
getComputedEfficiency()
|
Manufacturer |
getFinalManufacturer()
Returns the Manufacturer object of the manufacturer that made this electrical item. |
java.lang.String |
getManufacturerName()
Gets the Manufacturer ID/Name that made this electrical item. |
Technical.TechType |
getTechType()
Returns the tech type enum for this technical object, which describes more about its functionality, and is in fact a kind of class proxy. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
long |
powerCapacity()
Gets the maximum amount of capacitance supported by this electrical item. |
int |
powerNeeds()
Returns the immediate power needs of this electrical item. |
long |
powerRemaining()
Gets the amount of power capacitance remaining in this electrical item. |
void |
setManufacturerName(java.lang.String name)
Sets the Manufacturer ID/Name that made this electrical item. |
void |
setPowerCapacity(long capacity)
Sets the maximum amount of capacitance supported by this electrical item. |
void |
setPowerRemaining(long remaining)
Sets the amount of power capacitance remaining in this electrical item. |
void |
setTechLevel(int lvl)
One of the most important methods in the tech game, this denotes the level of technology of the specific instance of this item. |
int |
techLevel()
One of the most important methods in the tech game, this denotes the level of technology of the specific instance of this item. |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
|---|
canContain, capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, executeMsg, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, keyName, numberOfItems, okMessage, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setKeyName, setMiscText, setOpenDelayTicks, tick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
|---|
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider |
|---|
riding, setRiding |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable |
|---|
canSaveDatabaseID, databaseID, setDatabaseID |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Readable |
|---|
isReadable, readableText, setReadable, setReadableText |
| Field Detail |
|---|
protected long powerCapacity
protected long power
protected boolean activated
protected java.lang.String manufacturer
protected Manufacturer cachedManufact
| Constructor Detail |
|---|
public StdElecContainer()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdContainerpublic long powerCapacity()
Electronics
powerCapacity in interface ElectronicsElectronics.setPowerCapacity(long)public void setPowerCapacity(long capacity)
Electronics
setPowerCapacity in interface Electronicscapacity - the maximum amount of stored power capacityElectronics.powerCapacity()public long powerRemaining()
Electronics
powerRemaining in interface ElectronicsElectronics.setPowerRemaining(long)public void setPowerRemaining(long remaining)
Electronics
setPowerRemaining in interface Electronicsremaining - the amount of power capacitance remainingElectronics.powerRemaining()public boolean activated()
Electronics
activated in interface ElectronicsElectronics.activate(boolean)public void activate(boolean truefalse)
Electronics
activate in interface Electronicstruefalse - true to activate, false to deactivateElectronics.activated()public int powerNeeds()
Electronics
powerNeeds in interface ElectronicsElectronics.powerRemaining(),
Electronics.powerCapacity()public int techLevel()
Technical
techLevel in interface TechnicalTechLibrary.getGlobalTechLevel(),
Technical.setTechLevel(int)public void setTechLevel(int lvl)
Technical
setTechLevel in interface Technicallvl - the absolute tech level of this itemTechLibrary.getGlobalTechLevel(),
Technical.techLevel()public java.lang.String getManufacturerName()
Electronics
getManufacturerName in interface ElectronicsElectronics.setManufacturerName(String),
Manufacturerpublic Technical.TechType getTechType()
Technical
getTechType in interface TechnicalTechnical.TechTypepublic void setManufacturerName(java.lang.String name)
Electronics
setManufacturerName in interface Electronicsname - the Manufacturer ID/Name that made thisElectronics.getManufacturerName(),
Electronics.getFinalManufacturer(),
Manufacturerprotected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
Electronics
getFinalManufacturer in interface ElectronicsElectronics.getManufacturerName(),
Electronics.setManufacturerName(String),
Manufacturer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||