Affectable, Behavable, CloseableLockable, CMObject, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, Container, Electronics, Item, Technical, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>GenElecContainer, StdElecCompContainer, StdElecPanel, StdTriCorderpublic class StdElecContainer extends StdContainer implements Electronics
Technical.TechCommand, Technical.TechTypeWearable.CODES| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
activated |
|
protected Manufacturer |
cachedManufact |
|
protected java.lang.String |
manufacturer |
|
protected long |
power |
|
protected long |
powerCapacity |
idConverterCONTAIN_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_SHIELDS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDScapacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks_name, affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValuesDEFAULT_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| Constructor | Description |
|---|---|
StdElecContainer() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
long |
powerTarget() |
Gets the amount of power capacitance to allow this
electrical item to charge up to.
|
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 |
setPowerTarget(long capacity) |
Sets the amount of power capacitance to allow this
electrical item to charge up to.
|
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.
|
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, initializeClass, newInstancecanSaveDatabaseID, databaseID, setDatabaseIDbaseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadable, readableText, setReadable, setReadableTextcanContain, capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, executeMsg, genericName, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, keyName, numberOfItems, okMessage, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setKeyName, setMiscText, setOpenDelayTicks, tickabilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, cloneFix, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, destroy, displayText, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, getSaveStatIndex, getStat, getStatCodes, getTickStatus, I, image, initializeClass, isGeneric, isReadable, isSavable, isStat, L, material, maxRange, minRange, miscTextFormat, name, name, Name, newInstance, numBehaviors, numEffects, numScripts, owner, phyStats, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, readableText, recoverPhyStats, removeFromOwnerContainer, riding, sameAs, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setReadableText, setRiding, setSavable, setSecretIdentity, setStat, setUsesRemaining, stopTicking, subjectToWearAndTear, tackOns, text, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected long powerCapacity
protected long power
protected boolean activated
protected java.lang.String manufacturer
protected Manufacturer cachedManufact
public java.lang.String ID()
CMObjectID in interface CMObjectID in class StdContainerpublic long powerCapacity()
ElectronicspowerCapacity in interface ElectronicsElectronics.setPowerCapacity(long)public void setPowerCapacity(long capacity)
ElectronicssetPowerCapacity in interface Electronicscapacity - the maximum amount of stored power capacityElectronics.powerCapacity()public long powerTarget()
ElectronicspowerTarget in interface ElectronicsElectronics.setPowerTarget(long)public void setPowerTarget(long capacity)
ElectronicssetPowerTarget in interface Electronicscapacity - the amount of power capacitance remainingElectronics.powerTarget()public long powerRemaining()
ElectronicspowerRemaining in interface ElectronicsElectronics.setPowerRemaining(long)public void setPowerRemaining(long remaining)
ElectronicssetPowerRemaining in interface Electronicsremaining - the amount of power capacitance remainingElectronics.powerRemaining()public boolean activated()
Electronicsactivated in interface ElectronicsElectronics.activate(boolean)public void activate(boolean truefalse)
Electronicsactivate in interface Electronicstruefalse - true to activate, false to deactivateElectronics.activated()public int powerNeeds()
ElectronicspowerNeeds in interface ElectronicsElectronics.powerRemaining(),
Electronics.powerCapacity()public int techLevel()
TechnicaltechLevel in interface TechnicalTechLibrary.getGlobalTechLevel(),
Technical.setTechLevel(int)public void setTechLevel(int lvl)
TechnicalsetTechLevel in interface Technicallvl - the absolute tech level of this itemTechLibrary.getGlobalTechLevel(),
Technical.techLevel()public java.lang.String getManufacturerName()
TechnicalgetManufacturerName in interface TechnicalTechnical.setManufacturerName(String),
Manufacturerpublic Technical.TechType getTechType()
TechnicalgetTechType in interface TechnicalTechnical.TechTypepublic void setManufacturerName(java.lang.String name)
TechnicalsetManufacturerName in interface Technicalname - the Manufacturer ID/Name that made thisTechnical.getManufacturerName(),
Technical.getFinalManufacturer(),
Manufacturerprotected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
TechnicalgetFinalManufacturer in interface TechnicalTechnical.getManufacturerName(),
Technical.setManufacturerName(String),
Manufacturer