|
|||||||||
| 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.Basic.StdSpaceBody
public class StdSpaceBody
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.SpaceObject |
|---|
SpaceObject.Distance |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.BoundedObject |
|---|
BoundedObject.BoundedCube |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
|---|
Wearable.CODES |
| Field Summary | |
|---|---|
protected long[] |
coordinates
|
protected double[] |
direction
|
protected long |
radius
|
protected SpaceObject |
spaceSource
|
protected SpaceObject |
spaceTarget
|
protected double |
speed
|
| 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 | |
|---|---|
StdSpaceBody()
|
|
| Method Summary | |
|---|---|
long[] |
coordinates()
The current absolute coordinates of the object |
void |
destroy()
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. |
double[] |
direction()
The direction of travel of this object in radians. |
BoundedObject.BoundedCube |
getBounds()
|
long |
getMass()
Returns the mass of this object, derived from its radius and type, or perhaps from other things. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
SpaceObject |
knownSource()
The source object from which this space object is travelling from |
SpaceObject |
knownTarget()
If this object is targeting another space object as a destination, this will return it |
long |
radius()
The current radius of the object |
void |
setCoords(long[] coords)
Sets the current absolute coordinates of the object |
void |
setDirection(double[] dir)
Sets the direction of travel of this object in radians. |
void |
setKnownSource(SpaceObject O)
Sets the source object from which this space object is travelling from |
void |
setKnownTarget(SpaceObject O)
If this object is targeting another space object as a destination, this will set it |
void |
setRadius(long radius)
Set the current radius of the object |
void |
setSpeed(double v)
Sets the speed of the object through space |
double |
speed()
The speed of the object through space |
| 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.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg, okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, isSavable, setSavable |
| 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.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
protected long[] coordinates
protected long radius
protected double[] direction
protected double speed
protected SpaceObject spaceSource
protected SpaceObject spaceTarget
| Constructor Detail |
|---|
public StdSpaceBody()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdItempublic void destroy()
Contingent
destroy in interface Contingentdestroy in class StdItempublic BoundedObject.BoundedCube getBounds()
getBounds in interface BoundedObjectpublic long[] coordinates()
SpaceObject
coordinates in interface SpaceObjectpublic void setCoords(long[] coords)
SpaceObject
setCoords in interface SpaceObjectcoords - 3 dimensional array of the coordinates in spacepublic long radius()
SpaceObject
radius in interface SpaceObjectpublic void setRadius(long radius)
SpaceObject
setRadius in interface SpaceObjectradius - the current radius of the objectpublic double[] direction()
SpaceObject
direction in interface SpaceObjectpublic void setDirection(double[] dir)
SpaceObject
setDirection in interface SpaceObjectdir - 2 dimensional array for the direction of movementpublic double speed()
SpaceObject
speed in interface SpaceObjectpublic void setSpeed(double v)
SpaceObject
setSpeed in interface SpaceObjectv - the speedpublic SpaceObject knownTarget()
SpaceObject
knownTarget in interface SpaceObjectpublic void setKnownTarget(SpaceObject O)
SpaceObject
setKnownTarget in interface SpaceObjectO - the target destinationpublic SpaceObject knownSource()
SpaceObject
knownSource in interface SpaceObjectpublic void setKnownSource(SpaceObject O)
SpaceObject
setKnownSource in interface SpaceObjectO - the source of this objectpublic long getMass()
SpaceObject
getMass in interface SpaceObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||