|
|||||||||
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 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 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()
Electronics
getManufacturerName
in interface Electronics
Electronics.setManufacturerName(String)
,
Manufacturer
public void setManufacturerName(java.lang.String name)
Electronics
setManufacturerName
in interface Electronics
name
- the Manufacturer ID/Name that made thisElectronics.getManufacturerName()
,
Electronics.getFinalManufacturer()
,
Manufacturer
public Technical.TechType getTechType()
Technical
getTechType
in interface Technical
Technical.TechType
protected double getComputedEfficiency()
public Manufacturer getFinalManufacturer()
Electronics
getFinalManufacturer
in interface Electronics
Electronics.getManufacturerName()
,
Electronics.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 content
Container.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 executed
CMMsg
,
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 to
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |