|
|||||||||
| 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.BasicTech.StdElecItem
com.planet_ink.coffee_mud.Items.CompTech.StdElecCompItem
com.planet_ink.coffee_mud.Items.CompTech.StdShipFuellessThruster
public class StdShipFuellessThruster
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.TechComponent |
|---|
TechComponent.ShipDir |
| 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 boolean |
constantThrust
|
protected double |
fuelEfficiency
|
protected long[] |
lastThrustMs
|
protected int |
maxThrust
|
protected int |
minThrust
|
protected TechComponent.ShipDir[] |
ports
|
protected long |
specificImpulse
|
protected double |
thrust
|
| Fields inherited from class com.planet_ink.coffee_mud.Items.CompTech.StdElecCompItem |
|---|
circuitKey, installedFactor, maxRechargePer |
| Fields inherited from class com.planet_ink.coffee_mud.Items.BasicTech.StdElecItem |
|---|
activated, cachedManufact, manufacturer, power, powerCapacity |
| 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 | |
|---|---|
StdShipFuellessThruster()
|
|
| Method Summary | |
|---|---|
boolean |
consumeFuel(int amount)
Forces this engine to consumer some amount of its fuel, without any other effect. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
TechComponent.ShipDir[] |
getAvailPorts()
Gets set of available thrust ports on this engine. |
protected double |
getComputedEfficiency()
|
double |
getFuelEfficiency()
Gets the fuel efficiency pct, denoting how well the engine uses fuel to product thrust. |
int |
getMaxThrust()
Gets the maximum amount of thrust that this engine can put out. |
int |
getMinThrust()
Gets the minimum amount of thrust that this engine can put out. |
long |
getSpecificImpulse()
Specific Impulse has to do with the efficiency of conversion of fuel into thrust. |
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. |
double |
getThrust()
Gets the current amount of thrust being emitted by this ShipEngine, typically only describing the AFT thrust, since all other thrust is done in spurts. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isConstantThruster()
Gets whether this engine, once thrust is engaged, will continue to thrust at that speed, thus accelerating. |
boolean |
sameAs(Environmental E)
Whether this object instance is functionally identical to the object passed in. |
void |
setAvailPorts(TechComponent.ShipDir[] ports)
Sets set of available thrust ports on this engine. |
void |
setConstantThruster(boolean isConstant)
Sets whether this engine, once thrust is engaged, will continue to thrust at that speed, thus accelerating. |
void |
setFuelEfficiency(double amt)
Sets the fuel efficiency pct, denoting how well the engine uses fuel to product thrust. |
void |
setMaxThrust(int max)
Sets the maximum amount of thrust that this engine can put out. |
void |
setMinThrust(int min)
Sets the minimum amount of thrust that this engine can put out. |
void |
setSpecificImpulse(long amt)
Specific Impulse has to do with the efficiency of conversion of fuel into thrust. |
void |
setThrust(double current)
Gets the current amount of thrust being emitted by this ShipEngine, typically only describing the AFT thrust, since all other thrust is done in spurts. |
| Methods inherited from class com.planet_ink.coffee_mud.Items.CompTech.StdElecCompItem |
|---|
destroy, getInstalledFactor, getRechargeRate, isAllWiringHot, isInstalled, isThisPanelActivated, okMessage, powerNeeds, reportError, sendLocalMessage, setInstalledFactor, setOwner, setRechargeRate, subjectToWearAndTear |
| Methods inherited from class com.planet_ink.coffee_mud.Items.BasicTech.StdElecItem |
|---|
activate, activated, getFinalManufacturer, getManufacturerName, powerCapacity, powerRemaining, setManufacturerName, setPowerCapacity, setPowerRemaining, setTechLevel, techLevel |
| 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.TechComponent |
|---|
getInstalledFactor, getRechargeRate, isInstalled, setInstalledFactor, setRechargeRate |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Electronics |
|---|
activate, activated, getFinalManufacturer, getManufacturerName, powerCapacity, powerNeeds, powerRemaining, setManufacturerName, setPowerCapacity, setPowerRemaining |
| Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Technical |
|---|
setTechLevel, techLevel |
| 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 int maxThrust
protected int minThrust
protected double thrust
protected long specificImpulse
protected double fuelEfficiency
protected boolean constantThrust
protected final long[] lastThrustMs
protected TechComponent.ShipDir[] ports
| Constructor Detail |
|---|
public StdShipFuellessThruster()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdElecCompItempublic boolean sameAs(Environmental E)
Environmental
sameAs in interface EnvironmentalsameAs in class StdElecCompItemE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)public double getFuelEfficiency()
ShipEngine
getFuelEfficiency in interface ShipEngineShipEngine.setFuelEfficiency(double)public void setFuelEfficiency(double amt)
ShipEngine
setFuelEfficiency in interface ShipEngineamt - the fuel efficiency pctShipEngine.getFuelEfficiency()public int getMaxThrust()
ShipEngine
getMaxThrust in interface ShipEngineShipEngine.setMaxThrust(int)public void setMaxThrust(int max)
ShipEngine
setMaxThrust in interface ShipEnginemax - the maximum amount of thrust that this engine can put out.ShipEngine.getMaxThrust()public double getThrust()
ShipEngine
getThrust in interface ShipEngineShipEngine.setThrust(double)public void setThrust(double current)
ShipEngine
setThrust in interface ShipEnginecurrent - the current amount of aft thrustShipEngine.getThrust()public long getSpecificImpulse()
ShipEngine
getSpecificImpulse in interface ShipEngineShipEngine.setSpecificImpulse(long)public void setSpecificImpulse(long amt)
ShipEngine
setSpecificImpulse in interface ShipEngineamt - efficiency of conversion of fuel into thrustShipEngine.getSpecificImpulse()public Technical.TechType getTechType()
Technical
getTechType in interface TechnicalgetTechType in class StdElecItemTechnical.TechTypeprotected double getComputedEfficiency()
getComputedEfficiency in class StdElecCompItempublic int getMinThrust()
ShipEngine
getMinThrust in interface ShipEngineShipEngine.setMinThrust(int)public void setMinThrust(int min)
ShipEngine
setMinThrust in interface ShipEnginemin - the minimum amount of thrust that this engine can put out.ShipEngine.getMinThrust()public boolean isConstantThruster()
ShipEngine
isConstantThruster in interface ShipEngineShipEngine.setConstantThruster(boolean)public void setConstantThruster(boolean isConstant)
ShipEngine
setConstantThruster in interface ShipEngineisConstant - true for an accelerator, false for one shotShipEngine.isConstantThruster()public TechComponent.ShipDir[] getAvailPorts()
getAvailPorts in interface ShipEngineShipEngine.setAvailPorts(TechComponent.ShipDir[])public void setAvailPorts(TechComponent.ShipDir[] ports)
setAvailPorts in interface ShipEngineports - the set of available thrust ports.ShipEngine.getAvailPorts()public boolean consumeFuel(int amount)
ShipEngine
consumeFuel in interface ShipEngineamount - the amount of fuel to consume
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdElecCompItemmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||