|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Items.Basic.StdItem
com.planet_ink.coffee_mud.Items.Basic.StdContainer
com.planet_ink.coffee_mud.Items.Basic.StdRideable
com.planet_ink.coffee_mud.Items.CompTech.StdComputerConsole
public class StdComputerConsole
| 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 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 |
|---|
protected volatile java.lang.String circuitKey
protected float installedFactor
protected short 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
| Constructor Detail |
|---|
public StdComputerConsole()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdRideablepublic float getInstalledFactor()
TechComponent
getInstalledFactor in interface TechComponentTechComponent.setInstalledFactor(float)public void setInstalledFactor(float pct)
TechComponent
setInstalledFactor in interface TechComponentpct - installed factor is how well the equipment was installed. 0-1.0TechComponent.getInstalledFactor()public long powerCapacity()
Electronics
powerCapacity in interface ElectronicsElectronics.setPowerCapacity(long)public void setPowerCapacity(long capacity)
Electronics
setPowerCapacity in interface Electronicscapacity - the maximum amount of stored power capacityElectronics.powerCapacity()public int powerNeeds()
Electronics
powerNeeds in interface ElectronicsElectronics.powerRemaining(),
Electronics.powerCapacity()public void setRechargeRate(float pctCapPer)
TechComponent
setRechargeRate in interface TechComponentpctCapPer - the amount of capacity per tickTechComponent.getRechargeRate()public float getRechargeRate()
TechComponent
getRechargeRate in interface TechComponentTechComponent.setRechargeRate(float)public long powerRemaining()
Electronics
powerRemaining in interface ElectronicsElectronics.setPowerRemaining(long)public void setPowerRemaining(long remaining)
Electronics
setPowerRemaining in interface Electronicsremaining - the amount of power capacitance remainingElectronics.powerRemaining()public boolean activated()
Electronics
activated in interface ElectronicsElectronics.activate(boolean)public void activate(boolean truefalse)
Electronics
activate in interface Electronicstruefalse - true to activate, false to deactivateElectronics.activated()public void setActiveMenu(java.lang.String internalName)
Computer
setActiveMenu in interface ComputerinternalName - the menu to set as current and activeComputer.getActiveMenu()public java.lang.String getActiveMenu()
Computer
getActiveMenu in interface ComputerComputer.setActiveMenu(String)public int techLevel()
Technical
techLevel in interface TechnicalTechLibrary.getGlobalTechLevel(),
Technical.setTechLevel(int)public void setTechLevel(int lvl)
Technical
setTechLevel in interface Technicallvl - the absolute tech level of this itemTechLibrary.getGlobalTechLevel(),
Technical.techLevel()public java.lang.String getManufacturerName()
Electronics
getManufacturerName in interface ElectronicsElectronics.setManufacturerName(String),
Manufacturerpublic void setManufacturerName(java.lang.String name)
Electronics
setManufacturerName in interface Electronicsname - the Manufacturer ID/Name that made thisElectronics.getManufacturerName(),
Electronics.getFinalManufacturer(),
Manufacturerpublic Technical.TechType getTechType()
Technical
getTechType in interface TechnicalTechnical.TechTypeprotected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
Electronics
getFinalManufacturer in interface ElectronicsElectronics.getManufacturerName(),
Electronics.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)
Container
canContain in interface ContainercanContain in class StdContainerI - the item to check against the allowed content
Container.setContainTypes(long),
Container.containTypes()public boolean subjectToWearAndTear()
Item
subjectToWearAndTear in interface ItemsubjectToWearAndTear in class StdRideablepublic java.lang.String putString(Rider R)
Rideable
putString 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)
Rideable
stateStringSubject 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()
Computer
getSoftware in interface ComputerSoftwarepublic void setReadableText(java.lang.String text)
Readable
setReadableText in interface ReadablesetReadableText in class StdItemtext - the readable textReadable.isReadable(),
Readable.setReadable(boolean),
Readable.readableText()public boolean isInstalled()
TechComponent
isInstalled in interface TechComponentpublic java.lang.String readableText()
Readable
readableText in interface ReadablereadableText in class StdItemReadable.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 MsgListenerokMessage in class StdRideablehost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void executeMsg(Environmental host,
CMMsg msg)
MsgListener
executeMsg 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()
Computer
forceReadersSeeNew in interface ComputerComputer.getCurrentReaders(),
Computer.forceReadersMenu()public void forceReadersMenu()
Computer
forceReadersMenu in interface ComputerComputer.getCurrentReaders(),
Computer.forceReadersSeeNew()public void destroy()
Contingent
destroy in interface Contingentdestroy in class StdRideablepublic void setOwner(ItemPossessor owner)
Item
setOwner 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)
Environmental
sameAs in interface EnvironmentalsameAs in class StdItemE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||