Affectable, Behavable, CMObject, Contingent, DBIdentifiable, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Tickable, ElecPanel, Electronics, Item, TechComponent, Technical, Wearable, java.lang.Cloneable, java.lang.Comparable<CMObject>public class GenLightSwitch extends GenElecCompItem implements ElecPanel
Technical.TechCommand, Technical.TechTypeWearable.CODES| Modifier and Type | Field | Description | 
|---|---|---|
| protected static long | LIGHT_TIME | |
| protected long | nextPowerNeed | |
| protected java.lang.String | readableText | 
idConverterPANELTYPEScircuitKey, installedFactor, listenForCmds, maxRechargePeractivated, cachedManufact, manufacturer, power, powerCapacity_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, xtraValuesDEFAULT_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 | 
|---|---|
| GenLightSwitch() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | affectPhyStats(Physical affected,
              PhyStats affectableStats) | This method is called by the recoverPhyStats() method on other Environmental objects. | 
| void | executeMsg(Environmental host,
          CMMsg msg) | The general message event handler for the object. | 
| java.lang.String | ID() | The CoffeeMud Java Class ID shared by all instances of
 this object. | 
| Technical.TechType | panelType() | Gets the type of panel this is, which shows what
 sorts of items can be "installed into it. | 
| void | powerOtherSwitched(Environmental host,
                  CMMsg msg) | |
| void | recoverPhyStats() | This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to
 all surrounding objects  with affectPhyStats(Environmental,PhyStats) method. | 
| void | setPanelType(Technical.TechType type) | Sets the type of panel this is, which shows what
 sorts of items can be "installed into it. | 
| void | tellOtherSwitches(Environmental host,
                 CMMsg msg,
                 boolean goAhead) | 
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, initializeClass, newInstancecanSaveDatabaseID, databaseID, setDatabaseIDactivate, activated, powerCapacity, powerNeeds, powerRemaining, powerTarget, setPowerCapacity, setPowerRemaining, setPowerTargetgetStat, getStatCodes, isGeneric, sameAs, setMiscText, 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, readableText, setReadable, setReadableTextdestroy, getComputedEfficiency, getInstalledFactor, getRechargeRate, isAllWiringHot, isInstalled, isThisPanelActivated, okMessage, powerNeeds, reportError, requiresPower, sendLocalMessage, setInstalledFactor, setOwner, setRechargeRate, subjectToWearAndTearactivate, activated, getFinalManufacturer, getManufacturerName, getTechType, powerCapacity, powerRemaining, powerTarget, setManufacturerName, setPowerCapacity, setPowerRemaining, setPowerTarget, setTechLevel, techLevelabilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, alreadyWornMsg, amBeingWornProperly, amDestroyed, amWearingAt, baseGoldValue, basePhyStats, behaviors, canSaveDatabaseID, canWear, canWearComplete, cloneFix, compareProperLocations, compareTo, container, copyOf, databaseID, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delEffect, delScript, description, description, displayText, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fitsOn, genericName, 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, readableText, recursiveWeight, removeFromOwnerContainer, riding, scripts, secretIdentity, setBasePhyStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadable, setReadableText, setRiding, setSavable, setSecretIdentity, setUsesRemaining, stopTicking, tackOns, tick, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWeargetFinalManufacturer, getManufacturerName, getTechType, setManufacturerName, setTechLevel, techLevelamBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWearprotected java.lang.String readableText
protected static final long LIGHT_TIME
protected volatile long nextPowerNeed
public java.lang.String ID()
CMObjectID in interface CMObjectID in class GenElecCompItempublic void recoverPhyStats()
AffectablerecoverPhyStats in interface AffectablerecoverPhyStats in class StdItemAffectable.basePhyStats(), 
Affectable.phyStats(), 
Affectable.addEffect(Ability), 
Behavable.addBehavior(Behavior), 
PhyStatspublic void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffectingaffectPhyStats in interface StatsAffectingaffectPhyStats in class StdItemaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats, 
Environmental, 
Affectable.basePhyStats(), 
Affectable.phyStats(), 
Affectable.recoverPhyStats()public void powerOtherSwitched(Environmental host, CMMsg msg)
public void tellOtherSwitches(Environmental host, CMMsg msg, boolean goAhead)
public void executeMsg(Environmental host, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdElecCompItemhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic 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.TechType