Affectable, Behavable, CloseableLockable, CMObject, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rideable, Rider, StatsAffecting, Tickable, Computer, Container, ElecPanel, Electronics, Item, TechComponent, Technical, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>GenComputerConsolepublic class StdComputerConsole extends StdRideable implements TechComponent, Computer, ElecPanel
Rideable.BasisTechnical.TechCommand, Technical.TechTypeWearable.CODES| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
activated |
|
protected Manufacturer |
cachedManufact |
|
protected java.lang.String |
circuitKey |
|
protected java.lang.String |
currentMenu |
|
protected float |
installedFactor |
|
protected MOB |
lastReader |
|
protected java.lang.String |
manufacturer |
|
protected long |
nextPowerCycleTmr |
|
protected long |
nextSoftwareCheck |
|
protected long |
powerRemaining |
|
protected java.util.List<Software> |
software |
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_SWORDSPANELTYPEScapacity, 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, xtraValuesdismountString, mountString, putString, rideBasis, riderCapacity, riders, rideString, stateString, stateSubjectStrDEFAULT_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 |
|---|---|
StdComputerConsole() |
| 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".
|
boolean |
canContain(Item I) |
Returns whether this container is allowed to contain the given object.
|
protected void |
deactivateSystem() |
|
void |
destroy() |
Utterly and permanently destroy this object, not only removing it from the map, but
causing this object to be collected as garbage by Java.
|
void |
executeMsg(Environmental host,
CMMsg msg) |
The general message event handler for the object.
|
void |
forceReadersMenu() |
Forces all the current readers to "read" the computer, typically
seeing the menu.
|
void |
forceReadersSeeNew() |
Forces all the current readers to see any new messages that
should be seen by anyone monitoring the computer.
|
java.lang.String |
getActiveMenu() |
Most software supports different levels of menu, and some software
is even a sub-menu unto itself.
|
protected double |
getComputedEfficiency() |
|
java.util.List<MOB> |
getCurrentReaders() |
Returns the list of mobs currently monitoring the output of this
computers software.
|
Manufacturer |
getFinalManufacturer() |
Returns the Manufacturer object of the manufacturer that
made this electrical item.
|
float |
getInstalledFactor() |
The installed factor is how well the equipment was installed.
|
java.lang.String |
getManufacturerName() |
Gets the Manufacturer ID/Name that made this electrical
item.
|
float |
getRechargeRate() |
Gets the amount of the capacity of this component that can gain
power every time a power current is received.
|
java.util.List<Software> |
getSoftware() |
Returns the list of Software objects installed in this computer.
|
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.
|
boolean |
isInstalled() |
Returns whether this item is installed properly, which is
according to internal rules of each component type.
|
boolean |
okMessage(Environmental host,
CMMsg msg) |
The general message event previewer for the object.
|
Technical.TechType |
panelType() |
Gets the type of panel this is, which shows what
sorts of items can be "installed into it.
|
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.
|
java.lang.String |
putString(Rider R) |
Returns a string grammatically correct for the given rider when
they are putting something on this Rideable
|
java.lang.String |
readableText() |
For things that are readable, this returns the readable string
for this thing.
|
boolean |
sameAs(Environmental E) |
Whether this object instance is functionally identical to the object passed in.
|
void |
setActiveMenu(java.lang.String internalName) |
Most software supports different levels of menu, and some software
is even a sub-menu unto itself.
|
void |
setInstalledFactor(float pct) |
The installed factor is how well the equipment was installed.
|
void |
setManufacturerName(java.lang.String name) |
Sets the Manufacturer ID/Name that made this electrical
item.
|
void |
setOwner(ItemPossessor owner) |
Sets the Room or MOB representing where this item is located.
|
void |
setPanelType(Technical.TechType type) |
Sets the type of panel this is, which shows what
sorts of items can be "installed into it.
|
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 |
setReadableText(java.lang.String text) |
For things that are readable, this set the readable string
for this thing.
|
void |
setRechargeRate(float pctCapPer) |
Sets the amount of the capacity of this component that can gain
power every time a power current is received.
|
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.
|
java.lang.String |
stateStringSubject(Rider R) |
Returns a string grammatically correct for this Rideable when
Riders are mounted
|
boolean |
subjectToWearAndTear() |
Whether the usesRemaining() number above is used to determine the percentage health of
the 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, setSecretIdentity, setUsesRemaining, stopTicking, ultimateContainer, usesRemaining, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadable, setReadablecapacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, keyName, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setKeyName, setMiscText, setOpenDelayTicks, tickabilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, 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, removeFromOwnerContainer, riding, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setRiding, setSavable, setSecretIdentity, setStat, setUsesRemaining, stopTicking, tackOns, text, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearaddRider, affectPhyStats, amRiding, cloneFix, delRider, dismountString, displayText, fetchRider, genericName, getDismountString, getMountString, getPutString, getRideBuddies, getRideString, getStateString, getStateStringSubject, isMobileRideBasis, mobileRideBasis, mountString, numRiders, recoverPhyStats, rideBasis, riderCapacity, riders, rideString, savable, setDismountString, setMountString, setPutString, setRideBasis, setRiderCapacity, setRideString, setStateString, setStateStringSubject, stateStringamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected volatile java.lang.String circuitKey
protected float installedFactor
protected volatile long powerRemaining
protected boolean activated
protected volatile long nextPowerCycleTmr
protected MOB lastReader
protected volatile long nextSoftwareCheck
protected java.util.List<Software> software
protected java.lang.String currentMenu
protected java.lang.String manufacturer
protected Manufacturer cachedManufact
public java.lang.String ID()
CMObjectID in interface CMObjectID in class StdRideablepublic float getInstalledFactor()
TechComponentgetInstalledFactor in interface TechComponentTechComponent.setInstalledFactor(float)public void setInstalledFactor(float pct)
TechComponentsetInstalledFactor in interface TechComponentpct - installed factor is how well the equipment was installed. 0-1.0TechComponent.getInstalledFactor()public 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 int powerNeeds()
ElectronicspowerNeeds in interface ElectronicsElectronics.powerRemaining(),
Electronics.powerCapacity()public void setRechargeRate(float pctCapPer)
TechComponentsetRechargeRate in interface TechComponentpctCapPer - the amount of capacity per tickTechComponent.getRechargeRate()public float getRechargeRate()
TechComponentgetRechargeRate in interface TechComponentTechComponent.setRechargeRate(float)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 void setActiveMenu(java.lang.String internalName)
ComputersetActiveMenu in interface ComputerinternalName - the menu to set as current and activeComputer.getActiveMenu()public java.lang.String getActiveMenu()
ComputergetActiveMenu in interface ComputerComputer.setActiveMenu(String)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 void setManufacturerName(java.lang.String name)
TechnicalsetManufacturerName in interface Technicalname - the Manufacturer ID/Name that made thisTechnical.getManufacturerName(),
Technical.getFinalManufacturer(),
Manufacturerpublic Technical.TechType getTechType()
TechnicalgetTechType in interface TechnicalTechnical.TechTypeprotected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
TechnicalgetFinalManufacturer in interface TechnicalTechnical.getManufacturerName(),
Technical.setManufacturerName(String),
Manufacturerpublic Technical.TechType panelType()
ElecPanelContainer.containTypes()panelType in interface ElecPanelElecPanel.setPanelType(com.planet_ink.coffee_mud.Items.interfaces.Technical.TechType),
Technical.TechTypepublic void setPanelType(Technical.TechType type)
ElecPanelContainer.setContainTypes(long)setPanelType in interface ElecPaneltype - the type of panel this isElecPanel.setPanelType(com.planet_ink.coffee_mud.Items.interfaces.Technical.TechType),
Technical.TechTypepublic boolean canContain(Item I)
ContainercanContain in interface ContainercanContain in class StdContainerI - the item to check against the allowed contentContainer.setContainTypes(long),
Container.containTypes()public boolean subjectToWearAndTear()
ItemsubjectToWearAndTear in interface ItemsubjectToWearAndTear in class StdRideablepublic java.lang.String putString(Rider R)
RideableputString in interface RideableputString in class StdRideableR - The rider object to make grammatically correct.Rider,
Rideable.setPutString(String),
Rideable.getPutString()public java.lang.String stateStringSubject(Rider R)
RideablestateStringSubject in interface RideablestateStringSubject in class StdRideableR - The rider object to make grammatically correct.Rider,
Rideable.setStateStringSubject(String),
Rideable.getStateStringSubject()public java.util.List<Software> getSoftware()
ComputergetSoftware in interface ComputerSoftwarepublic void setReadableText(java.lang.String text)
ReadablesetReadableText in interface ReadablesetReadableText in class StdItemtext - the readable textReadable.isReadable(),
Readable.setReadable(boolean),
Readable.readableText()public boolean isInstalled()
TechComponentisInstalled in interface TechComponentpublic java.lang.String readableText()
ReadablereadableText in interface ReadablereadableText in class StdItemReadable.isReadable(),
Readable.setReadable(boolean),
Readable.setReadableText(String)public java.util.List<MOB> getCurrentReaders()
ComputergetCurrentReaders in interface Computerpublic boolean okMessage(Environmental host, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdRideablehost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg,
CMMsg.source()public void executeMsg(Environmental host, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdRideablehost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic void forceReadersSeeNew()
ComputerforceReadersSeeNew in interface ComputerComputer.getCurrentReaders(),
Computer.forceReadersMenu()public void forceReadersMenu()
ComputerforceReadersMenu in interface ComputerComputer.getCurrentReaders(),
Computer.forceReadersSeeNew()public void destroy()
Contingentdestroy in interface Contingentdestroy in class StdRideablepublic void setOwner(ItemPossessor owner)
ItemsetOwner in interface ItemsetOwner in class StdItemowner - the mob or room where the item is locatedItemCollection.addItem(Item)protected void deactivateSystem()
public boolean sameAs(Environmental E)
EnvironmentalsameAs in interface EnvironmentalsameAs in class StdItemE - the object to compare this one toModifiable.getStatCodes(),
Modifiable.getStat(String)