|
|||||||||
| 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.Software.StdProgram
public class StdProgram
| Nested Class Summary |
|---|
| 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 java.lang.String |
currentScreen
|
protected java.lang.StringBuilder |
nextMsg
|
| 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.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 |
| Constructor Summary | |
|---|---|
StdProgram()
|
|
| Method Summary | |
|---|---|
void |
addScreenMessage(java.lang.String msg)
Adds a new message to the screen from this program, which will be received by those monitoring the computer |
boolean |
checkActivate(MOB mob,
java.lang.String message)
|
boolean |
checkDeactivate(MOB mob,
java.lang.String message)
|
boolean |
checkPowerCurrent(int value)
|
boolean |
checkTyping(MOB mob,
java.lang.String message)
|
java.lang.String |
display(double[] dir)
|
java.lang.String |
display(long d)
|
java.lang.String |
display(long[] coords)
|
java.lang.String |
displayPerSec(long speed)
|
void |
executeMsg(Environmental host,
CMMsg msg)
The general message event handler for the object. |
protected void |
forceNewMenuRead()
|
protected void |
forceNewMessageScan()
|
protected void |
forceUpMenu()
|
java.lang.String |
getActivationMenu()
Returns the menu name of this software, so that it can be identified on its parent screen. |
java.lang.String |
getCurrentScreenDisplay()
Returns the full screen appearance of this program when it is activated and on the screen. |
java.lang.String |
getInternalName()
Returns the internal name of this software. |
java.lang.String |
getParentMenu()
The parent menu that this software gets access from. |
java.lang.String |
getScreenMessage()
Returns any new messages from this program when it is activated and on the screen. |
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 |
isActivationString(java.lang.String word)
Returns whether the given computer-entry command should be responded to by THIS software object on an activation command. |
boolean |
isCommandString(java.lang.String word,
boolean isActive)
Returns whether the given computer-entry command should be responded to by THIS software object on a WRITE/ENTER command. |
boolean |
isDeActivationString(java.lang.String word)
Returns whether the given computer-entry command should be responded to by THIS software object on a deactivation command. |
boolean |
okMessage(Environmental host,
CMMsg msg)
The general message event previewer for the object. |
void |
onActivate(MOB mob,
java.lang.String message)
|
void |
onDeactivate(MOB mob,
java.lang.String message)
|
void |
onPowerCurrent(int value)
|
void |
onTyping(MOB mob,
java.lang.String message)
|
void |
setCircuitKey(java.lang.String key)
Software runs on computers, and computers run on power systems. |
void |
setCurrentScreenDisplay(java.lang.String msg)
|
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. |
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 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, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, 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, readableText, setReadable, setReadableText |
| Field Detail |
|---|
protected java.lang.StringBuilder nextMsg
protected java.lang.String currentScreen
| Constructor Detail |
|---|
public StdProgram()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdItempublic void setCircuitKey(java.lang.String key)
Software
setCircuitKey in interface Softwarekey - the circuit keypublic 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 getParentMenu()
Software
getParentMenu in interface Softwarepublic java.lang.String getInternalName()
Software
getInternalName in interface Softwarepublic boolean isActivationString(java.lang.String word)
Software
isActivationString in interface Softwareword - the computer-entry command entered
public boolean isDeActivationString(java.lang.String word)
Software
isDeActivationString in interface Softwareword - the computer-entry command entered
public boolean isCommandString(java.lang.String word,
boolean isActive)
Software
isCommandString in interface Softwareword - the computer-entry commandisActive - true if the software is already activated
public Technical.TechType getTechType()
Technical
getTechType in interface TechnicalTechnical.TechTypepublic java.lang.String getActivationMenu()
Software
getActivationMenu in interface Softwarepublic java.lang.String getCurrentScreenDisplay()
Software
getCurrentScreenDisplay in interface SoftwareSoftware.addScreenMessage(String),
Software.getScreenMessage()public void setCurrentScreenDisplay(java.lang.String msg)
public java.lang.String getScreenMessage()
Software
getScreenMessage in interface SoftwareSoftware.addScreenMessage(String),
Software.getCurrentScreenDisplay()public void addScreenMessage(java.lang.String msg)
Software
addScreenMessage in interface Softwaremsg - the new message for the screenSoftware.getScreenMessage(),
Software.getCurrentScreenDisplay()protected void forceUpMenu()
protected void forceNewMessageScan()
protected void forceNewMenuRead()
public boolean checkActivate(MOB mob,
java.lang.String message)
public boolean checkDeactivate(MOB mob,
java.lang.String message)
public boolean checkTyping(MOB mob,
java.lang.String message)
public boolean checkPowerCurrent(int value)
public boolean okMessage(Environmental host,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdItemhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void onActivate(MOB mob,
java.lang.String message)
public void onDeactivate(MOB mob,
java.lang.String message)
public void onTyping(MOB mob,
java.lang.String message)
public void onPowerCurrent(int value)
public void executeMsg(Environmental host,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdItemhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic java.lang.String display(long d)
public java.lang.String display(long[] coords)
public java.lang.String display(double[] dir)
public java.lang.String displayPerSec(long speed)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||