com.planet_ink.coffee_mud.Items.MiscTech
Class StdShipConsole
java.lang.Object
com.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.MiscTech.StdShipConsole
- All Implemented Interfaces:
- Behavable, CMModifiable, CMObject, Environmental, MsgListener, Rideable, Rider, StatsAffecting, Tickable, Container, Electronics, Item, ShipComponent, ShipComponent.ShipPanel, java.lang.Cloneable, java.lang.Comparable<CMObject>
- Direct Known Subclasses:
- GenSSConsole
public class StdShipConsole
- extends StdRideable
- implements Electronics, ShipComponent, ShipComponent.ShipPanel
| Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
affects, baseEnvStats, baseGoldValue, behaviors, CODES, databaseID, description, destroyed, displayText, dispossessionTime, envStats, imageName, material, miscText, myContainer, myUses, myWornCode, name, owner, properWornBitmap, riding, scripts, secretIdentity, tickStatus, wornLogicalAnd, xtraValues |
| 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_FOOTWEAR, CONTAIN_KEYS, CONTAIN_LIQUID, CONTAIN_ONEHANDWEAPONS, CONTAIN_OTHERWEAPONS, CONTAIN_READABLES, CONTAIN_SCROLLS, CONTAIN_SMOKEABLES, CONTAIN_SSCOMPONENTS, CONTAIN_SWORDS |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdRideable |
addRider, affectEnvStats, amRiding, cloneFix, delRider, destroy, dismountString, displayText, fetchRider, getRideBuddies, isMobileRideBasis, mobileRideBasis, mountString, numRiders, putString, recoverEnvStats, rideBasis, riderCapacity, savable, setRideBasis, setRiderCapacity, stateString, stateStringSubject |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdContainer |
capacity, containTypes, emptyPlease, getContents, hasALid, hasALock, isLocked, isOpen, keyName, reallyGetContents, setCapacity, setContainTypes, setKeyName, setLidsNLocks, setMiscText, tick |
| Methods inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
abilityImbuesMagic, addBehavior, addEffect, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, alreadyWornMsg, amDestroyed, amWearingAt, baseEnvStats, baseGoldValue, canWear, canWearComplete, cloneEffects, compareProperLocations, compareTo, container, copyOf, databaseID, delBehavior, delEffect, delScript, description, envStats, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, finalize, fitsOn, getCodeNum, getSaveStatIndex, getStat, getStatCodes, getTickStatus, image, initializeClass, isGeneric, isStat, material, maxRange, minRange, miscTextFormat, name, Name, newInstance, numBehaviors, numberOfItems, numEffects, numScripts, owner, rawImage, rawLogicalAnd, rawProperLocationBitmap, rawSecretIdentity, rawWornCode, readableText, recursiveWeight, removeFromOwnerContainer, riding, sameAs, secretIdentity, setBaseEnvStats, setBaseValue, setContainer, setDatabaseID, setDescription, setDisplayText, setExpirationDate, setImage, setMaterial, setName, setOwner, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, setReadableText, setRiding, setSecretIdentity, setStat, setUsesRemaining, stopTicking, subjectToWearAndTear, tackOns, text, ultimateContainer, unWear, usesRemaining, value, wearAt, wearEvenIfImpossible, wearIfPossible, whereCantWear |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
activated
protected boolean activated
panelType
protected int panelType
StdShipConsole
public StdShipConsole()
ID
public java.lang.String ID()
- Description copied from interface:
CMObject
- The CoffeeMud Java Class ID shared by all instances of
this object. Unlike the Java Class name, this method
does not include package information. However, it must
return a String value unique to its class category in
the ClassLoader. Class categories include Libraries, Common,
Areas, Abilities, Behaviors, CharClasses, Commands, Exits
Locales, MOBS, Races, WebMacros, Basic Items, Armor,
Weapons, ClanItems, MiscTech. The name is typically identical
to the class name.
- Specified by:
ID in interface CMObject- Overrides:
ID in class StdRideable
- Returns:
- the name of this class
fuelType
public int fuelType()
- Specified by:
fuelType in interface Electronics
setFuelType
public void setFuelType(int resource)
- Specified by:
setFuelType in interface Electronics
powerCapacity
public long powerCapacity()
- Specified by:
powerCapacity in interface Electronics
setPowerCapacity
public void setPowerCapacity(long capacity)
- Specified by:
setPowerCapacity in interface Electronics
powerRemaining
public long powerRemaining()
- Specified by:
powerRemaining in interface Electronics
setPowerRemaining
public void setPowerRemaining(long remaining)
- Specified by:
setPowerRemaining in interface Electronics
activated
public boolean activated()
- Specified by:
activated in interface Electronics
activate
public void activate(boolean truefalse)
- Specified by:
activate in interface Electronics
panelType
public int panelType()
- Specified by:
panelType in interface ShipComponent.ShipPanel
setPanelType
public void setPanelType(int type)
- Specified by:
setPanelType in interface ShipComponent.ShipPanel
canContain
public boolean canContain(Environmental E)
- Specified by:
canContain in interface Container- Overrides:
canContain in class StdContainer
okMessage
public boolean okMessage(Environmental host,
CMMsg msg)
- Description copied from interface:
MsgListener
- The general message event previewer for the object. Messages passed herein
are in a pending state, and may be safely modified or rejected without fear
that they might be in the middle of being executed. Messages passed herein
may not necessarily be FOR or FROM this object, but will almost always
represent events which want to happen in the same rom. This method should
always always return true UNLESS this message needs to be canceled, in which
case it is necessary to tell the mob initiating the event (CMMsg.source())
why it is being cancelled. Every game event goes through these methods.
- Specified by:
okMessage in interface MsgListener- Overrides:
okMessage in class StdRideable
- Parameters:
host - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
- Returns:
- whether this message is allowed to execute
- See Also:
CMMsg,
CMMsg.source()
executeMsg
public void executeMsg(Environmental host,
CMMsg msg)
- Description copied from interface:
MsgListener
- The general message event handler for the object. Messages passed herein
may not necessarily be FOR this object, or from it, but will almost
always represent events happening in the same room. The messages
have already been through an approval process, so this method is
called only to affect the final execution of the meaning of the
message. Every game event goes through these methods.
- Specified by:
executeMsg in interface MsgListener- Overrides:
executeMsg in class StdRideable
- Parameters:
host - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executed- See Also:
CMMsg