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>
ShipTacticalProgram
public class ShipNavProgram extends ShipSensorProgram
Modifier and Type | Class | Description |
---|---|---|
protected static class |
ShipNavProgram.ShipNavProcess |
|
protected static class |
ShipNavProgram.ShipNavState |
|
protected static class |
ShipNavProgram.ShipNavTrack |
ShipSensorProgram.DistanceSorter
Software.SoftwareProcedure, Software.SWServices
Technical.TechCommand, Technical.TechType
Wearable.CODES
Modifier and Type | Field | Description |
---|---|---|
protected Software.SoftwareProcedure |
approachProcedure |
|
protected Software.SoftwareProcedure |
cancelProcedure |
|
protected java.util.List<long[]> |
course |
|
protected Software.SoftwareProcedure |
courseProcedure |
|
protected long[] |
courseTargetCoords |
|
protected long |
courseTargetRadius |
|
protected Software.SoftwareProcedure |
engineProcedure |
|
protected Software.SoftwareProcedure |
faceProcedure |
|
protected java.util.Map<ShipEngine,java.lang.Double[]> |
injects |
|
protected Software.SoftwareProcedure |
landProcedure |
|
protected java.lang.Double |
lastInject |
|
protected Software.SoftwareProcedure |
launchProcedure |
|
protected Software.SoftwareProcedure |
moonProcedure |
|
protected ShipNavProgram.ShipNavTrack |
navTrack |
|
protected Software.SoftwareProcedure |
orbitProcedure |
|
protected java.lang.Double |
savedAcceleration |
|
protected java.lang.Double |
savedAngle |
|
protected java.lang.Double |
savedSpeedDelta |
|
protected Software.SoftwareProcedure |
stopProcedure |
|
protected java.lang.Double |
targetAcceleration |
idConverter
activateProcedure, activationCounter, cachedComponents, components, dampers, deactivateProcedure, DEFAULT_ACT_8_SEC_COUNTDOWN, engines, miscsystems, nextPowerCycleTmr, readableText, sensors, shields, weapons
intName, parent, settings
activated, sensorProcedure, sensorReps
_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
cachedManufact, circuitKey, currentScreen, isActivated, manufacturer, nextMsg, svcs
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 |
---|---|
ShipNavProgram() |
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.Double |
calculateMarginalTargetInjection(java.lang.Double newInject,
double targetAcceleration) |
|
protected java.util.LinkedList<SpaceObject> |
calculateNavigation(SpaceObject ship,
SpaceObject targetObj,
java.util.List<SpaceObject> sensorObjs) |
|
protected void |
cancelNavigation() |
|
protected boolean |
changeFacing(SpaceShip ship,
double[] newFacing) |
|
protected boolean |
checkDatabase(long[] coords) |
|
protected boolean |
checkNavComplete(ShipNavProgram.ShipNavTrack track,
SpaceShip ship,
SpaceObject targetObject) |
|
protected boolean |
checkPowerCurrent(int value) |
|
protected boolean |
confirmNavEnginesOK(SpaceShip ship,
java.util.Collection<ShipEngine> programEngines) |
|
protected void |
decache() |
|
protected void |
doNavigation(ShipNavProgram.ShipNavTrack track) |
|
void |
executeMsg(Environmental myHost,
CMMsg msg) |
The general message event handler for the object.
|
protected double |
findTargetAcceleration(ShipEngine E) |
|
protected java.lang.Double |
fixInjection(java.lang.Double lastInject,
java.lang.Double lastAcceleration,
double targetAcceleration) |
|
protected boolean |
flipForAllStop(SpaceShip ship) |
|
protected java.lang.Double |
forceAccelerationAllProgramEngines(java.util.Collection<ShipEngine> programEngines,
double targetAcceleration) |
|
protected SpaceObject |
getCollision(SpaceObject fromObj,
SpaceObject toObj,
long radius,
SpaceObject[] others) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected void |
onDeactivate(MOB mob,
java.lang.String message) |
|
protected void |
onPowerCurrent(int value) |
|
protected void |
performSimpleThrust(ShipEngine engineE,
java.lang.Double thrustInject,
boolean alwaysThrust) |
|
protected void |
performSingleThrust(ShipEngine engineE,
java.lang.Double thrustInject,
boolean alwaysThrust) |
|
protected ShipEngine |
primeMainThrusters(SpaceShip ship,
double maxAceleration,
ShipEngine overrideE) |
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
copyOf, initializeClass, newInstance
canSaveDatabaseID, databaseID, setDatabaseID
checkActivate, checkDeactivate, checkTyping, convertStringToCoords, findComponentByID, findComponentByName, findCoordinates, findEngineByName, findEngineByPort, findSensorByName, findShieldByName, findWeaponByName, getActivationMenu, getComponent, getDampeners, getEngines, getShipSensors, getShipShields, getShipWeapons, getSystemMiscComponents, getTechComponents, getTechType, isActivationString, isCommandString, isDeActivationString, isWeaponLauncher, onActivate, onTyping, sendMessage, trySendMsgToItem
getInternalName, getParentMenu, getSettings, getStat, getStatCodes, isGeneric, readableText, sameAs, setInternalName, setMiscText, setParentMenu, setReadableText, setSettings, 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, setReadable
containsSameCoordinates, getAppreciatedServices, getDataName, getLocalSensorReport, onActivationTimer, onPowerTimer, provideService, takeNewSensorReport
abilityImbuesMagic, 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, whereCantWear
addScreenMessage, display, display, display, displayPerSec, doServiceRequests, doServiceTransaction, forceNewMenuRead, forceNewMessageScan, forceUpMenu, genericName, getCurrentScreenDisplay, getFinalManufacturer, getManufacturerName, getMyComputer, getPeerComputers, getPeerComputingRooms, getProvidedServices, getRequiredServices, getResponseComputers, getScreenMessage, handleServices, okMessage, sendServiceMsg, sendSoftwareRespMsg, setCircuitKey, setCurrentScreenDisplay, setManufacturerName, setTechLevel, techLevel, trimColorsAndTrim
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
protected final java.util.List<long[]> course
protected volatile long[] courseTargetCoords
protected volatile long courseTargetRadius
protected volatile java.lang.Double savedAcceleration
protected volatile java.lang.Double savedSpeedDelta
protected volatile java.lang.Double savedAngle
protected volatile java.lang.Double lastInject
protected volatile java.lang.Double targetAcceleration
protected volatile ShipNavProgram.ShipNavTrack navTrack
protected final java.util.Map<ShipEngine,java.lang.Double[]> injects
protected Software.SoftwareProcedure launchProcedure
protected Software.SoftwareProcedure orbitProcedure
protected Software.SoftwareProcedure stopProcedure
protected Software.SoftwareProcedure landProcedure
protected Software.SoftwareProcedure courseProcedure
protected Software.SoftwareProcedure faceProcedure
protected Software.SoftwareProcedure cancelProcedure
protected Software.SoftwareProcedure approachProcedure
protected Software.SoftwareProcedure engineProcedure
protected Software.SoftwareProcedure moonProcedure
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class ShipSensorProgram
protected void decache()
decache
in class ShipSensorProgram
protected void cancelNavigation()
protected java.lang.Double fixInjection(java.lang.Double lastInject, java.lang.Double lastAcceleration, double targetAcceleration)
protected java.lang.Double calculateMarginalTargetInjection(java.lang.Double newInject, double targetAcceleration)
protected java.lang.Double forceAccelerationAllProgramEngines(java.util.Collection<ShipEngine> programEngines, double targetAcceleration)
protected void performSimpleThrust(ShipEngine engineE, java.lang.Double thrustInject, boolean alwaysThrust)
protected void performSingleThrust(ShipEngine engineE, java.lang.Double thrustInject, boolean alwaysThrust)
protected double findTargetAcceleration(ShipEngine E)
protected boolean flipForAllStop(SpaceShip ship)
protected boolean changeFacing(SpaceShip ship, double[] newFacing)
protected ShipEngine primeMainThrusters(SpaceShip ship, double maxAceleration, ShipEngine overrideE)
protected void onPowerCurrent(int value)
onPowerCurrent
in class ShipSensorProgram
public void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class ShipSensorProgram
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
protected void onDeactivate(MOB mob, java.lang.String message)
onDeactivate
in class ShipSensorProgram
protected boolean checkDatabase(long[] coords)
protected SpaceObject getCollision(SpaceObject fromObj, SpaceObject toObj, long radius, SpaceObject[] others)
protected java.util.LinkedList<SpaceObject> calculateNavigation(SpaceObject ship, SpaceObject targetObj, java.util.List<SpaceObject> sensorObjs)
protected boolean confirmNavEnginesOK(SpaceShip ship, java.util.Collection<ShipEngine> programEngines)
protected boolean checkNavComplete(ShipNavProgram.ShipNavTrack track, SpaceShip ship, SpaceObject targetObject)
protected void doNavigation(ShipNavProgram.ShipNavTrack track)
protected boolean checkPowerCurrent(int value)
checkPowerCurrent
in class GenShipProgram