Affectable, Behavable, CMObject, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, Item, Software, Technical, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>DatabaseProgram, ShipDiagProgram, ShipSensorProgram, ShipTelnetProgrampublic class GenShipProgram extends GenSoftware
Software.SoftwareProcedure, Software.SWServicesTechnical.TechCommand, Technical.TechTypeWearable.CODES| Modifier and Type | Field | Description |
|---|---|---|
protected Software.SoftwareProcedure |
activateProcedure |
|
protected int |
activationCounter |
|
protected static PrioritizingLimitedMap<java.lang.String,TechComponent> |
cachedComponents |
|
protected java.util.List<TechComponent> |
components |
|
protected java.util.List<TechComponent> |
dampers |
|
protected Software.SoftwareProcedure |
deactivateProcedure |
|
protected static int |
DEFAULT_ACT_8_SEC_COUNTDOWN |
|
protected java.util.List<ShipEngine> |
engines |
|
protected java.util.List<TechComponent> |
miscsystems |
|
protected long |
nextPowerCycleTmr |
|
protected java.lang.String |
readableText |
|
protected java.util.List<TechComponent> |
sensors |
|
protected java.util.List<TechComponent> |
shields |
|
protected java.util.List<TechComponent> |
weapons |
idConverterintName, parent, settings_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, xtraValuescachedManufact, circuitKey, currentScreen, isActivated, manufacturer, nextMsg, svcsDEFAULT_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 |
|---|---|
GenShipProgram() |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
checkActivate(MOB mob,
java.lang.String message) |
|
protected boolean |
checkDeactivate(MOB mob,
java.lang.String message) |
|
protected boolean |
checkPowerCurrent(int value) |
|
protected boolean |
checkTyping(MOB mob,
java.lang.String message) |
|
protected long[] |
convertStringToCoords(java.lang.String coordStr) |
|
protected void |
decache() |
|
void |
executeMsg(Environmental host,
CMMsg msg) |
The general message event handler for the object.
|
protected TechComponent |
findComponentByID(java.util.List<? extends TechComponent> list,
java.lang.String id) |
|
protected TechComponent |
findComponentByName(java.util.List<? extends TechComponent> list,
java.lang.String prefix,
java.lang.String name) |
|
protected long[] |
findCoordinates(java.lang.String name) |
|
protected ShipEngine |
findEngineByName(java.lang.String name) |
|
protected ShipEngine |
findEngineByPort(ShipDirectional.ShipDir portdir) |
|
protected TechComponent |
findSensorByName(java.lang.String name) |
|
protected ShipWarComponent |
findShieldByName(java.lang.String name) |
|
protected TechComponent |
findWeaponByName(java.lang.String name) |
|
java.lang.String |
getActivationMenu() |
Returns the menu name of this software, so that it can
be identified on its parent screen.
|
protected java.util.List<TechComponent> |
getComponent(Technical.TechType type) |
|
protected java.util.List<TechComponent> |
getDampeners() |
|
protected java.util.List<ShipEngine> |
getEngines() |
|
protected java.util.List<TechComponent> |
getShipSensors() |
|
protected java.util.List<TechComponent> |
getShipShields() |
|
protected java.util.List<TechComponent> |
getShipWeapons() |
|
protected java.util.List<TechComponent> |
getSystemMiscComponents() |
|
protected java.util.List<TechComponent> |
getTechComponents() |
|
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.
|
protected boolean |
isWeaponLauncher(TechComponent E) |
|
protected void |
onActivate(MOB mob,
java.lang.String message) |
|
protected void |
onActivationTimer(int value) |
|
protected void |
onDeactivate(MOB mob,
java.lang.String message) |
|
protected void |
onPowerCurrent(int value) |
|
protected void |
onPowerTimer(int value) |
|
protected void |
onTyping(MOB mob,
java.lang.String message) |
|
protected boolean |
sendMessage(MOB mob,
Item E,
CMMsg msg,
java.lang.String command) |
|
protected void |
trySendMsgToItem(MOB mob,
Item targetE,
CMMsg msg) |
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, initializeClass, newInstancecanSaveDatabaseID, databaseID, setDatabaseIDgetInternalName, getParentMenu, getSettings, getStat, getStatCodes, isGeneric, readableText, sameAs, setInternalName, setMiscText, setParentMenu, setReadableText, setSettings, setStat, textbaseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadable, setReadableabilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, cloneFix, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, destroy, displayText, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, getSaveStatIndex, getTickStatus, I, image, initializeClass, isReadable, isSavable, isStat, L, material, maxRange, minRange, miscTextFormat, name, name, Name, newInstance, numBehaviors, numberOfItems, numEffects, numScripts, owner, phyStats, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, recoverPhyStats, recursiveWeight, removeFromOwnerContainer, riding, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setRiding, setSavable, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, tackOns, tick, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearaddScreenMessage, display, display, display, displayPerSec, doServiceRequests, doServiceTransaction, forceNewMenuRead, forceNewMessageScan, forceUpMenu, genericName, getAppreciatedServices, getCurrentScreenDisplay, getFinalManufacturer, getManufacturerName, getMyComputer, getPeerComputers, getPeerComputingRooms, getProvidedServices, getRequiredServices, getResponseComputers, getScreenMessage, handleServices, okMessage, provideService, sendServiceMsg, sendSoftwareRespMsg, setCircuitKey, setCurrentScreenDisplay, setManufacturerName, setTechLevel, techLevel, trimColorsAndTrimamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected static final int DEFAULT_ACT_8_SEC_COUNTDOWN
protected volatile long nextPowerCycleTmr
protected volatile int activationCounter
protected java.lang.String readableText
protected volatile java.util.List<ShipEngine> engines
protected volatile java.util.List<TechComponent> sensors
protected volatile java.util.List<TechComponent> weapons
protected volatile java.util.List<TechComponent> shields
protected volatile java.util.List<TechComponent> components
protected volatile java.util.List<TechComponent> dampers
protected volatile java.util.List<TechComponent> miscsystems
protected static final PrioritizingLimitedMap<java.lang.String,TechComponent> cachedComponents
protected Software.SoftwareProcedure activateProcedure
protected Software.SoftwareProcedure deactivateProcedure
public java.lang.String ID()
CMObjectID in interface CMObjectID in class GenSoftwarepublic Technical.TechType getTechType()
TechnicalgetTechType in interface TechnicalgetTechType in class StdProgramTechnical.TechTypepublic boolean isActivationString(java.lang.String word)
SoftwareisActivationString in interface SoftwareisActivationString in class StdProgramword - the computer-entry command enteredpublic boolean isDeActivationString(java.lang.String word)
SoftwareisDeActivationString in interface SoftwareisDeActivationString in class StdProgramword - the computer-entry command enteredpublic boolean isCommandString(java.lang.String word,
boolean isActive)
SoftwareisCommandString in interface SoftwareisCommandString in class StdProgramword - the computer-entry commandisActive - true if the software is already activatedpublic java.lang.String getActivationMenu()
SoftwaregetActivationMenu in interface SoftwaregetActivationMenu in class StdProgramprotected boolean checkActivate(MOB mob, java.lang.String message)
checkActivate in class StdProgramprotected boolean checkDeactivate(MOB mob, java.lang.String message)
checkDeactivate in class StdProgramprotected boolean checkTyping(MOB mob, java.lang.String message)
checkTyping in class StdProgramprotected boolean checkPowerCurrent(int value)
checkPowerCurrent in class StdProgramprotected void onActivate(MOB mob, java.lang.String message)
onActivate in class StdProgramprotected void onDeactivate(MOB mob, java.lang.String message)
onDeactivate in class StdProgramprotected void onTyping(MOB mob, java.lang.String message)
onTyping in class StdProgramprotected void onPowerCurrent(int value)
onPowerCurrent in class StdProgrampublic void executeMsg(Environmental host, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdProgramhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgprotected void decache()
protected java.util.List<TechComponent> getComponent(Technical.TechType type)
protected java.util.List<ShipEngine> getEngines()
protected java.util.List<TechComponent> getTechComponents()
protected java.util.List<TechComponent> getShipSensors()
protected java.util.List<TechComponent> getSystemMiscComponents()
protected boolean isWeaponLauncher(TechComponent E)
protected java.util.List<TechComponent> getShipWeapons()
protected java.util.List<TechComponent> getShipShields()
protected java.util.List<TechComponent> getDampeners()
protected ShipEngine findEngineByName(java.lang.String name)
protected TechComponent findSensorByName(java.lang.String name)
protected TechComponent findWeaponByName(java.lang.String name)
protected ShipWarComponent findShieldByName(java.lang.String name)
protected ShipEngine findEngineByPort(ShipDirectional.ShipDir portdir)
protected TechComponent findComponentByName(java.util.List<? extends TechComponent> list, java.lang.String prefix, java.lang.String name)
protected TechComponent findComponentByID(java.util.List<? extends TechComponent> list, java.lang.String id)
protected void onPowerTimer(int value)
protected void onActivationTimer(int value)
protected long[] convertStringToCoords(java.lang.String coordStr)
protected long[] findCoordinates(java.lang.String name)