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>
GenComputerConsole
public class StdComputerConsole extends StdRideable implements TechComponent, Computer, ElecPanel
Rideable.Basis
Technical.TechCommand, Technical.TechType
Wearable.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 |
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
PANELTYPES
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
dismountString, mountString, putString, rideBasis, riderCapacity, riders, rideString, stateString, stateSubjectStr
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 |
---|---|
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, scripts
copyOf, initializeClass, newInstance
canSaveDatabaseID, databaseID, setDatabaseID
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setSecretIdentity, setUsesRemaining, stopTicking, ultimateContainer, usesRemaining, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isReadable, setReadable
capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, keyName, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setKeyName, setMiscText, setOpenDelayTicks, tick
abilityImbuesMagic, 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, whereCantWear
addRider, 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, stateString
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected 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()
CMObject
ID
in interface CMObject
ID
in class StdRideable
public float getInstalledFactor()
TechComponent
getInstalledFactor
in interface TechComponent
TechComponent.setInstalledFactor(float)
public void setInstalledFactor(float pct)
TechComponent
setInstalledFactor
in interface TechComponent
pct
- installed factor is how well the equipment was installed. 0-1.0TechComponent.getInstalledFactor()
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 int powerNeeds()
Electronics
powerNeeds
in interface Electronics
Electronics.powerRemaining()
,
Electronics.powerCapacity()
public void setRechargeRate(float pctCapPer)
TechComponent
setRechargeRate
in interface TechComponent
pctCapPer
- the amount of capacity per tickTechComponent.getRechargeRate()
public float getRechargeRate()
TechComponent
getRechargeRate
in interface TechComponent
TechComponent.setRechargeRate(float)
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 void setActiveMenu(java.lang.String internalName)
Computer
setActiveMenu
in interface Computer
internalName
- the menu to set as current and activeComputer.getActiveMenu()
public java.lang.String getActiveMenu()
Computer
getActiveMenu
in interface Computer
Computer.setActiveMenu(String)
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 void setManufacturerName(java.lang.String name)
Technical
setManufacturerName
in interface Technical
name
- the Manufacturer ID/Name that made thisTechnical.getManufacturerName()
,
Technical.getFinalManufacturer()
,
Manufacturer
public Technical.TechType getTechType()
Technical
getTechType
in interface Technical
Technical.TechType
protected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
Technical
getFinalManufacturer
in interface Technical
Technical.getManufacturerName()
,
Technical.setManufacturerName(String)
,
Manufacturer
public Technical.TechType panelType()
ElecPanel
Container.containTypes()
panelType
in interface ElecPanel
ElecPanel.setPanelType(com.planet_ink.coffee_mud.Items.interfaces.Technical.TechType)
,
Technical.TechType
public void setPanelType(Technical.TechType type)
ElecPanel
Container.setContainTypes(long)
setPanelType
in interface ElecPanel
type
- the type of panel this isElecPanel.setPanelType(com.planet_ink.coffee_mud.Items.interfaces.Technical.TechType)
,
Technical.TechType
public boolean canContain(Item I)
Container
canContain
in interface Container
canContain
in class StdContainer
I
- the item to check against the allowed contentContainer.setContainTypes(long)
,
Container.containTypes()
public boolean subjectToWearAndTear()
Item
subjectToWearAndTear
in interface Item
subjectToWearAndTear
in class StdRideable
public java.lang.String putString(Rider R)
Rideable
putString
in interface Rideable
putString
in class StdRideable
R
- The rider object to make grammatically correct.Rider
,
Rideable.setPutString(String)
,
Rideable.getPutString()
public java.lang.String stateStringSubject(Rider R)
Rideable
stateStringSubject
in interface Rideable
stateStringSubject
in class StdRideable
R
- The rider object to make grammatically correct.Rider
,
Rideable.setStateStringSubject(String)
,
Rideable.getStateStringSubject()
public java.util.List<Software> getSoftware()
Computer
getSoftware
in interface Computer
Software
public void setReadableText(java.lang.String text)
Readable
setReadableText
in interface Readable
setReadableText
in class StdItem
text
- the readable textReadable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.readableText()
public boolean isInstalled()
TechComponent
isInstalled
in interface TechComponent
public java.lang.String readableText()
Readable
readableText
in interface Readable
readableText
in class StdItem
Readable.isReadable()
,
Readable.setReadable(boolean)
,
Readable.setReadableText(String)
public java.util.List<MOB> getCurrentReaders()
Computer
getCurrentReaders
in interface Computer
public boolean okMessage(Environmental host, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdRideable
host
- 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)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdRideable
host
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public void forceReadersSeeNew()
Computer
forceReadersSeeNew
in interface Computer
Computer.getCurrentReaders()
,
Computer.forceReadersMenu()
public void forceReadersMenu()
Computer
forceReadersMenu
in interface Computer
Computer.getCurrentReaders()
,
Computer.forceReadersSeeNew()
public void destroy()
Contingent
destroy
in interface Contingent
destroy
in class StdRideable
public void setOwner(ItemPossessor owner)
Item
setOwner
in interface Item
setOwner
in class StdItem
owner
- the mob or room where the item is locatedItemCollection.addItem(Item)
protected void deactivateSystem()
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
sameAs
in class StdItem
E
- the object to compare this one toModifiable.getStatCodes()
,
Modifiable.getStat(String)