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
, StdTriCorder
public class StdElecContainer extends StdContainer implements Electronics
Technical.TechCommand, Technical.TechType
Wearable.CODES
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
activated |
|
protected Manufacturer |
cachedManufact |
|
protected java.lang.String |
manufacturer |
|
protected long |
power |
|
protected long |
powerCapacity |
idConverter
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_SHIELDS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS
capacity, 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, xtraValues
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
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, scripts
copyOf, initializeClass, newInstance
canSaveDatabaseID, databaseID, setDatabaseID
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isReadable, readableText, setReadable, setReadableText
canContain, 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, tick
abilityImbuesMagic, 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, whereCantWear
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected long powerCapacity
protected long power
protected boolean activated
protected java.lang.String manufacturer
protected Manufacturer cachedManufact
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdContainer
public long powerCapacity()
Electronics
powerCapacity
in interface Electronics
Electronics.setPowerCapacity(long)
public void setPowerCapacity(long capacity)
Electronics
setPowerCapacity
in interface Electronics
capacity
- the maximum amount of stored power capacityElectronics.powerCapacity()
public long powerTarget()
Electronics
powerTarget
in interface Electronics
Electronics.setPowerTarget(long)
public void setPowerTarget(long capacity)
Electronics
setPowerTarget
in interface Electronics
capacity
- the amount of power capacitance remainingElectronics.powerTarget()
public long powerRemaining()
Electronics
powerRemaining
in interface Electronics
Electronics.setPowerRemaining(long)
public void setPowerRemaining(long remaining)
Electronics
setPowerRemaining
in interface Electronics
remaining
- the amount of power capacitance remainingElectronics.powerRemaining()
public boolean activated()
Electronics
activated
in interface Electronics
Electronics.activate(boolean)
public void activate(boolean truefalse)
Electronics
activate
in interface Electronics
truefalse
- true to activate, false to deactivateElectronics.activated()
public int powerNeeds()
Electronics
powerNeeds
in interface Electronics
Electronics.powerRemaining()
,
Electronics.powerCapacity()
public int techLevel()
Technical
techLevel
in interface Technical
TechLibrary.getGlobalTechLevel()
,
Technical.setTechLevel(int)
public void setTechLevel(int lvl)
Technical
setTechLevel
in interface Technical
lvl
- the absolute tech level of this itemTechLibrary.getGlobalTechLevel()
,
Technical.techLevel()
public java.lang.String getManufacturerName()
Technical
getManufacturerName
in interface Technical
Technical.setManufacturerName(String)
,
Manufacturer
public Technical.TechType getTechType()
Technical
getTechType
in interface Technical
Technical.TechType
public void setManufacturerName(java.lang.String name)
Technical
setManufacturerName
in interface Technical
name
- the Manufacturer ID/Name that made thisTechnical.getManufacturerName()
,
Technical.getFinalManufacturer()
,
Manufacturer
protected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
Technical
getFinalManufacturer
in interface Technical
Technical.getManufacturerName()
,
Technical.setManufacturerName(String)
,
Manufacturer