|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Electronics
Electronics are items that can be turned on and off before their interesting behavior or ability is available, which requires "power" to be operated, and has some capacitance for power that keeps it running for some dramatic amount of time while it is no longer receiving new power. Electronics have manufacturers who make them, and can be of many different sorts.
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 |
---|
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 |
Method Summary | |
---|---|
void |
activate(boolean truefalse)
Sets whether this electrical item is "turned on". |
boolean |
activated()
Gets whether this electrical item is "turned on". |
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. |
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. |
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Technical |
---|
getTechType, setTechLevel, techLevel |
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, ID, 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 |
Method Detail |
---|
long powerCapacity()
setPowerCapacity(long)
void setPowerCapacity(long capacity)
capacity
- the maximum amount of stored power capacitypowerCapacity()
long powerRemaining()
setPowerRemaining(long)
void setPowerRemaining(long remaining)
remaining
- the amount of power capacitance remainingpowerRemaining()
int powerNeeds()
powerRemaining()
,
powerCapacity()
boolean activated()
activate(boolean)
void activate(boolean truefalse)
truefalse
- true to activate, false to deactivateactivated()
java.lang.String getManufacturerName()
setManufacturerName(String)
,
Manufacturer
void setManufacturerName(java.lang.String name)
name
- the Manufacturer ID/Name that made thisgetManufacturerName()
,
getFinalManufacturer()
,
Manufacturer
Manufacturer getFinalManufacturer()
getManufacturerName()
,
setManufacturerName(String)
,
Manufacturer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |