com.planet_ink.coffee_mud.Items.CompTech
Class StdComputerConsole

java.lang.Object
  extended by com.planet_ink.coffee_mud.Items.Basic.StdItem
      extended by com.planet_ink.coffee_mud.Items.Basic.StdContainer
          extended by com.planet_ink.coffee_mud.Items.Basic.StdRideable
              extended by com.planet_ink.coffee_mud.Items.CompTech.StdComputerConsole
All Implemented Interfaces:
Affectable, Behavable, CloseableLockable, CMObject, Contingent, DBIdentifiable, Environmental, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rideable, Rider, StatsAffecting, Tickable, Computer, Container, ElecPanel, Electronics, Item, TechComponent, Technical, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>
Direct Known Subclasses:
GenComputerConsole

public class StdComputerConsole
extends StdRideable
implements TechComponent, Computer, ElecPanel


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.TechComponent
TechComponent.ShipDir
 
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
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  short powerRemaining
           
protected  java.util.List<Software> software
           
 
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdRideable
dismountString, mountString, putString, rideBasis, riderCapacity, riders, rideString, stateString, stateSubjectStr
 
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer
capacity, containType, defaultsClosed, defaultsLocked, hasALid, hasALock, isLocked, isOpen, openDelayTicks
 
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues
 
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.ElecPanel
PANELTYPES
 
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
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rideable
RIDEABLE_AIR, RIDEABLE_DESCS, RIDEABLE_ENTERIN, RIDEABLE_LADDER, RIDEABLE_LAND, RIDEABLE_SIT, RIDEABLE_SLEEP, RIDEABLE_TABLE, RIDEABLE_WAGON, RIDEABLE_WATER
 
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Container
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_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS
 
Constructor Summary
StdComputerConsole()
           
 
Method Summary
 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.
 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 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.
 
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdRideable
addRider, affectPhyStats, amRiding, cloneFix, delRider, dismountString, displayText, fetchRider, 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
 
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer
capacity, containTypes, defaultsClosed, defaultsLocked, emptyPlease, getContents, getDeepContents, hasADoor, hasALock, hasContent, isInside, isLocked, isOpen, keyName, numberOfItems, openDelayTicks, recursiveWeight, setCapacity, setContainTypes, setDoorsNLocks, setKeyName, setMiscText, setOpenDelayTicks, tick
 
Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem
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, getCodeNum, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setSecretIdentity, setUsesRemaining, stopTicking, 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, 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, setReadable
 

Field Detail

circuitKey

protected volatile java.lang.String circuitKey

installedFactor

protected float installedFactor

powerRemaining

protected short powerRemaining

activated

protected boolean activated

nextPowerCycleTmr

protected volatile long nextPowerCycleTmr

lastReader

protected MOB lastReader

nextSoftwareCheck

protected volatile long nextSoftwareCheck

software

protected java.util.List<Software> software

currentMenu

protected java.lang.String currentMenu

manufacturer

protected java.lang.String manufacturer

cachedManufact

protected Manufacturer cachedManufact
Constructor Detail

StdComputerConsole

public StdComputerConsole()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, Tech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdRideable
Returns:
the name of this class

getInstalledFactor

public float getInstalledFactor()
Description copied from interface: TechComponent
The installed factor is how well the equipment was installed. 0-1.0

Specified by:
getInstalledFactor in interface TechComponent
Returns:
installed factor is how well the equipment was installed. 0-1.0
See Also:
TechComponent.setInstalledFactor(float)

setInstalledFactor

public void setInstalledFactor(float pct)
Description copied from interface: TechComponent
The installed factor is how well the equipment was installed. 0-1.0

Specified by:
setInstalledFactor in interface TechComponent
Parameters:
pct - installed factor is how well the equipment was installed. 0-1.0
See Also:
TechComponent.getInstalledFactor()

powerCapacity

public long powerCapacity()
Description copied from interface: Electronics
Gets the maximum amount of capacitance supported by this electrical item. This is the maximum power the item can store up and utilize before it shuts off. Only the item itself knows how much it wants to use at any particular time.

Specified by:
powerCapacity in interface Electronics
Returns:
the maximum amount of stored power capacity
See Also:
Electronics.setPowerCapacity(long)

setPowerCapacity

public void setPowerCapacity(long capacity)
Description copied from interface: Electronics
Sets the maximum amount of capacitance supported by this electrical item. This is the maximum power the item can store up and utilize before it shuts off. Only the item itself knows how much it wants to use at any particular time.

Specified by:
setPowerCapacity in interface Electronics
Parameters:
capacity - the maximum amount of stored power capacity
See Also:
Electronics.powerCapacity()

powerNeeds

public int powerNeeds()
Description copied from interface: Electronics
Returns the immediate power needs of this electrical item. Typically powerCapacity - powerAvailable

Specified by:
powerNeeds in interface Electronics
Returns:
the amount of power this item can still absorb
See Also:
Electronics.powerRemaining(), Electronics.powerCapacity()

setRechargeRate

public void setRechargeRate(float pctCapPer)
Description copied from interface: TechComponent
Sets the amount of the capacity of this component that can gain power every time a power current is received.

Specified by:
setRechargeRate in interface TechComponent
Parameters:
pctCapPer - the amount of capacity per tick
See Also:
TechComponent.getRechargeRate()

getRechargeRate

public float getRechargeRate()
Description copied from interface: TechComponent
Gets the amount of the capacity of this component that can gain power every time a power current is received.

Specified by:
getRechargeRate in interface TechComponent
Returns:
amtPer the amount of capacity per tick
See Also:
TechComponent.setRechargeRate(float)

powerRemaining

public long powerRemaining()
Description copied from interface: Electronics
Gets the amount of power capacitance remaining in this electrical item. The item will continue to use this power until it doesn't have enough to operate, and then turn off.

Specified by:
powerRemaining in interface Electronics
Returns:
the amount of power capacitance remaining
See Also:
Electronics.setPowerRemaining(long)

setPowerRemaining

public void setPowerRemaining(long remaining)
Description copied from interface: Electronics
Sets the amount of power capacitance remaining in this electrical item. The item will continue to use this power until it doesn't have enough to operate, and then turn off.

Specified by:
setPowerRemaining in interface Electronics
Parameters:
remaining - the amount of power capacitance remaining
See Also:
Electronics.powerRemaining()

activated

public boolean activated()
Description copied from interface: Electronics
Gets whether this electrical item is "turned on". An activated item can do the stuff it is supposed to, but off it cannot.

Specified by:
activated in interface Electronics
Returns:
whether this electrical item is "turned on"
See Also:
Electronics.activate(boolean)

activate

public void activate(boolean truefalse)
Description copied from interface: Electronics
Sets whether this electrical item is "turned on". An activated item can do the stuff it is supposed to, but off it cannot.

Specified by:
activate in interface Electronics
Parameters:
truefalse - true to activate, false to deactivate
See Also:
Electronics.activated()

setActiveMenu

public void setActiveMenu(java.lang.String internalName)
Description copied from interface: Computer
Most software supports different levels of menu, and some software is even a sub-menu unto itself. This method forces the system to recognize one of those menus as current. The software takes it from there.

Specified by:
setActiveMenu in interface Computer
Parameters:
internalName - the menu to set as current and active
See Also:
Computer.getActiveMenu()

getActiveMenu

public java.lang.String getActiveMenu()
Description copied from interface: Computer
Most software supports different levels of menu, and some software is even a sub-menu unto itself. This method returns the current active menu.

Specified by:
getActiveMenu in interface Computer
Returns:
internalName the menu to set as current and active
See Also:
Computer.setActiveMenu(String)

techLevel

public int techLevel()
Description copied from interface: Technical
One of the most important methods in the tech game, this denotes the level of technology of the specific instance of this item. Technology progresses ever onward, and the users equipment can become outdated, and be outperformed by items with higher tech level. For that reason, they must constantly be looking to keeping their gear updates.

Specified by:
techLevel in interface Technical
Returns:
the absolute tech level of this item
See Also:
TechLibrary.getGlobalTechLevel(), Technical.setTechLevel(int)

setTechLevel

public void setTechLevel(int lvl)
Description copied from interface: Technical
One of the most important methods in the tech game, this denotes the level of technology of the specific instance of this item. Technology progresses ever onward, and the users equipment can become outdated, and be outperformed by items with higher tech level. For that reason, they must constantly be looking to keeping their gear updates.

Specified by:
setTechLevel in interface Technical
Parameters:
lvl - the absolute tech level of this item
See Also:
TechLibrary.getGlobalTechLevel(), Technical.techLevel()

getManufacturerName

public java.lang.String getManufacturerName()
Description copied from interface: Electronics
Gets the Manufacturer ID/Name that made this electrical item. This is important because benefits and detriments can come along with the manufacturer.

Specified by:
getManufacturerName in interface Electronics
Returns:
the Manufacturer ID/Name that made this
See Also:
Electronics.setManufacturerName(String), Manufacturer

setManufacturerName

public void setManufacturerName(java.lang.String name)
Description copied from interface: Electronics
Sets the Manufacturer ID/Name that made this electrical item. This is important because benefits and detriments can come along with the manufacturer.

Specified by:
setManufacturerName in interface Electronics
Parameters:
name - the Manufacturer ID/Name that made this
See Also:
Electronics.getManufacturerName(), Electronics.getFinalManufacturer(), Manufacturer

getTechType

public Technical.TechType getTechType()
Description copied from interface: Technical
Returns the tech type enum for this technical object, which describes more about its functionality, and is in fact a kind of class proxy. I hope this doesn't bog things down too much.

Specified by:
getTechType in interface Technical
Returns:
the tech type eum
See Also:
Technical.TechType

getComputedEfficiency

protected double getComputedEfficiency()

getFinalManufacturer

public Manufacturer getFinalManufacturer()
Description copied from interface: Electronics
Returns the Manufacturer object of the manufacturer that made this electrical item. This is important because benefits and detriments can come along with the manufacturer.

Specified by:
getFinalManufacturer in interface Electronics
Returns:
the Manufacturer that made this electrical item
See Also:
Electronics.getManufacturerName(), Electronics.setManufacturerName(String), Manufacturer

panelType

public Technical.TechType panelType()
Description copied from interface: ElecPanel
Gets the type of panel this is, which shows what sorts of items can be "installed into it. This method is a sort of companion to Container.containTypes()

Specified by:
panelType in interface ElecPanel
Returns:
the type of panel this is
See Also:
ElecPanel.setPanelType(com.planet_ink.coffee_mud.Items.interfaces.Technical.TechType), Technical.TechType

setPanelType

public void setPanelType(Technical.TechType type)
Description copied from interface: ElecPanel
Sets the type of panel this is, which shows what sorts of items can be "installed into it. This method is a sort of companion to Container.setContainTypes(long)

Specified by:
setPanelType in interface ElecPanel
Parameters:
type - the type of panel this is
See Also:
ElecPanel.setPanelType(com.planet_ink.coffee_mud.Items.interfaces.Technical.TechType), Technical.TechType

canContain

public boolean canContain(Item I)
Description copied from interface: Container
Returns whether this container is allowed to contain the given object.

Specified by:
canContain in interface Container
Overrides:
canContain in class StdContainer
Parameters:
I - the item to check against the allowed content
Returns:
true if the given item can go in this container, false otherwise
See Also:
Container.setContainTypes(long), Container.containTypes()

subjectToWearAndTear

public boolean subjectToWearAndTear()
Description copied from interface: Item
Whether the usesRemaining() number above is used to determine the percentage health of the item. If this method returns false, then health or condition is irrelevant to this Item. If true is returned, then usesRemaining is a number from 100 to 0, where 100 means perfect condition, and 0 means imminent disintegration.

Specified by:
subjectToWearAndTear in interface Item
Overrides:
subjectToWearAndTear in class StdRideable
Returns:
whether this item has a valid condition

putString

public java.lang.String putString(Rider R)
Description copied from interface: Rideable
Returns a string grammatically correct for the given rider when they are putting something on this Rideable

Specified by:
putString in interface Rideable
Overrides:
putString in class StdRideable
Parameters:
R - The rider object to make grammatically correct.
Returns:
a string describing the riders state of putting something on this Rideable
See Also:
Rider, Rideable.setPutString(String), Rideable.getPutString()

stateStringSubject

public java.lang.String stateStringSubject(Rider R)
Description copied from interface: Rideable
Returns a string grammatically correct for this Rideable when Riders are mounted

Specified by:
stateStringSubject in interface Rideable
Overrides:
stateStringSubject in class StdRideable
Parameters:
R - The rider object to make grammatically correct.
Returns:
a string describing the Riderable state of being ridden
See Also:
Rider, Rideable.setStateStringSubject(String), Rideable.getStateStringSubject()

getSoftware

public java.util.List<Software> getSoftware()
Description copied from interface: Computer
Returns the list of Software objects installed in this computer.

Specified by:
getSoftware in interface Computer
Returns:
the list of Software objects installed in this computer
See Also:
Software

setReadableText

public void setReadableText(java.lang.String text)
Description copied from interface: Readable
For things that are readable, this set the readable string for this thing. That is to say, what the player sees when they read the door.

Specified by:
setReadableText in interface Readable
Overrides:
setReadableText in class StdItem
Parameters:
text - the readable text
See Also:
Readable.isReadable(), Readable.setReadable(boolean), Readable.readableText()

isInstalled

public boolean isInstalled()
Description copied from interface: TechComponent
Returns whether this item is installed properly, which is according to internal rules of each component type.

Specified by:
isInstalled in interface TechComponent
Returns:
true if its installed, false if its just there.

readableText

public java.lang.String readableText()
Description copied from interface: Readable
For things that are readable, this returns the readable string for this thing. That is to say, what the player sees when they read the door.

Specified by:
readableText in interface Readable
Overrides:
readableText in class StdItem
Returns:
the readable string
See Also:
Readable.isReadable(), Readable.setReadable(boolean), Readable.setReadableText(String)

getCurrentReaders

public java.util.List<MOB> getCurrentReaders()
Description copied from interface: Computer
Returns the list of mobs currently monitoring the output of this computers software.

Specified by:
getCurrentReaders in interface Computer
Returns:
the list of mobs currently monitoring the output

okMessage

public boolean okMessage(Environmental host,
                         CMMsg msg)
Description copied from interface: MsgListener
The general message event previewer for the object. Messages passed herein are in a pending state, and may be safely modified or rejected without fear that they might be in the middle of being executed. Messages passed herein may not necessarily be FOR or FROM this object, but will almost always represent events which want to happen in the same rom. This method should always always return true UNLESS this message needs to be canceled, in which case it is necessary to tell the mob initiating the event (CMMsg.source()) why it is being cancelled. Every game event goes through these methods.

Specified by:
okMessage in interface MsgListener
Overrides:
okMessage in class StdRideable
Parameters:
host - either the initiator of the event, or the host of this object
msg - the CMMsg that wants to be executed
Returns:
whether this message is allowed to execute
See Also:
CMMsg, CMMsg.source()

executeMsg

public void executeMsg(Environmental host,
                       CMMsg msg)
Description copied from interface: MsgListener
The general message event handler for the object. Messages passed herein may not necessarily be FOR this object, or from it, but will almost always represent events happening in the same room. The messages have already been through an approval process, so this method is called only to affect the final execution of the meaning of the message. Every game event goes through these methods.

Specified by:
executeMsg in interface MsgListener
Overrides:
executeMsg in class StdRideable
Parameters:
host - either the initiator of the event, or the host of this object
msg - the CMMsg that needs to be executed
See Also:
CMMsg

forceReadersSeeNew

public void forceReadersSeeNew()
Description copied from interface: Computer
Forces all the current readers to see any new messages that should be seen by anyone monitoring the computer.

Specified by:
forceReadersSeeNew in interface Computer
See Also:
Computer.getCurrentReaders(), Computer.forceReadersMenu()

forceReadersMenu

public void forceReadersMenu()
Description copied from interface: Computer
Forces all the current readers to "read" the computer, typically seeing the menu.

Specified by:
forceReadersMenu in interface Computer
See Also:
Computer.getCurrentReaders(), Computer.forceReadersSeeNew()

destroy

public void destroy()
Description copied from interface: Contingent
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. Containers, rooms. and mobs who have their destroy() method called will also call the destroy() methods on all items and other objects listed as content, recursively.

Specified by:
destroy in interface Contingent
Overrides:
destroy in class StdRideable

setOwner

public void setOwner(ItemPossessor owner)
Description copied from interface: Item
Sets the Room or MOB representing where this item is located. Containers are handled by another pointer, container(), so those two methods be used together to determine where a given item is. This method is called by the addItem method on mobs and the addItem interface on Rooms. Alone, this method is insufficient to properly determine an items location, so one of the two above should be called instead.

Specified by:
setOwner in interface Item
Overrides:
setOwner in class StdItem
Parameters:
owner - the mob or room where the item is located
See Also:
ItemCollection.addItem(Item)

deactivateSystem

protected void deactivateSystem()

sameAs

public boolean sameAs(Environmental E)
Description copied from interface: Environmental
Whether this object instance is functionally identical to the object passed in. Works by repeatedly calling getStat on both objects and comparing the values.

Specified by:
sameAs in interface Environmental
Overrides:
sameAs in class StdItem
Parameters:
E - the object to compare this one to
Returns:
whether this object is the same as the one passed in
See Also:
Modifiable.getStatCodes(), Modifiable.getStat(String)