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.TechType
Wearable.CODES
Modifier and Type | Field | Description |
---|---|---|
protected static long |
LIGHT_TIME |
|
protected long |
nextPowerNeed |
|
protected java.lang.String |
readableText |
idConverter
PANELTYPES
circuitKey, installedFactor, listenForCmds, maxRechargePer
activated, 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, xtraValues
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 | 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, scripts
copyOf, initializeClass, newInstance
canSaveDatabaseID, databaseID, setDatabaseID
activate, activated, powerCapacity, powerNeeds, powerRemaining, powerTarget, setPowerCapacity, setPowerRemaining, setPowerTarget
getStat, getStatCodes, isGeneric, sameAs, setMiscText, setStat, text
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isReadable, readableText, setReadable, setReadableText
destroy, getComputedEfficiency, getInstalledFactor, getRechargeRate, isAllWiringHot, isInstalled, isThisPanelActivated, okMessage, powerNeeds, reportError, requiresPower, sendLocalMessage, setInstalledFactor, setOwner, setRechargeRate, subjectToWearAndTear
activate, activated, getFinalManufacturer, getManufacturerName, getTechType, powerCapacity, powerRemaining, powerTarget, setManufacturerName, setPowerCapacity, setPowerRemaining, setPowerTarget, setTechLevel, techLevel
abilityImbuesMagic, 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, whereCantWear
getFinalManufacturer, getManufacturerName, getTechType, setManufacturerName, setTechLevel, techLevel
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected java.lang.String readableText
protected static final long LIGHT_TIME
protected volatile long nextPowerNeed
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class GenElecCompItem
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
recoverPhyStats
in class StdItem
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
public void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffecting
affectPhyStats
in interface StatsAffecting
affectPhyStats
in class StdItem
affected
- 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)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdElecCompItem
host
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
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