|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SpaceObject
This interface is still in development. It will some day represent an object in space
| Field Summary | |
|---|---|
static long |
DISTANCE_AROUNDGALAXY
distance constant useful for coordinates, is 1 galaxy |
static long |
DISTANCE_LIGHTYEAR
distance constant useful for coordinates, is 1 lightyear |
static long |
DISTANCE_MILE
distance constant useful for coordinates, is 1 mile |
static long |
DISTANCE_ORBITING
distance constant useful for coordinates, is 1 orbit |
static long |
DISTANCE_PLANETRADIUS
distance constant useful for coordinates, is 1 planet |
static long |
VELOCITY_ESCAPE
velocity constant for the speed required to escape 1g |
static long |
VELOCITY_LIGHT
velocity constant for the speed of light |
static long |
VELOCITY_ORBITING
velocity constant for the speed of orbiting |
static long |
VELOCITY_SOUND
velocity constant for the speed of sound |
static long |
VELOCITY_SUBLIGHT
velocity constant for the speed of sublight |
static long |
VELOCITY_TRANSWARP1
velocity constant for the speed transwarp 1 |
static long |
VELOCITY_TRANSWARP10
velocity constant for the speed transwarp 10 |
static long |
VELOCITY_TRANSWARP2
velocity constant for the speed transwarp 2 |
static long |
VELOCITY_TRANSWARP3
velocity constant for the speed transwarp 3 |
static long |
VELOCITY_TRANSWARP4
velocity constant for the speed transwarp 4 |
static long |
VELOCITY_TRANSWARP5
velocity constant for the speed transwarp 5 |
static long |
VELOCITY_TRANSWARP6
velocity constant for the speed transwarp 6 |
static long |
VELOCITY_TRANSWARP7
velocity constant for the speed transwarp 7 |
static long |
VELOCITY_TRANSWARP8
velocity constant for the speed transwarp 8 |
static long |
VELOCITY_TRANSWARP9
velocity constant for the speed transwarp 9 |
static long |
VELOCITY_WARP1
velocity constant for the speed warp 1 |
static long |
VELOCITY_WARP10
velocity constant for the speed warp 10 |
static long |
VELOCITY_WARP2
velocity constant for the speed warp 2 |
static long |
VELOCITY_WARP3
velocity constant for the speed warp 3 |
static long |
VELOCITY_WARP4
velocity constant for the speed warp 4 |
static long |
VELOCITY_WARP5
velocity constant for the speed warp 5 |
static long |
VELOCITY_WARP6
velocity constant for the speed warp 6 |
static long |
VELOCITY_WARP7
velocity constant for the speed warp 7 |
static long |
VELOCITY_WARP8
velocity constant for the speed warp 8 |
static long |
VELOCITY_WARP9
velocity constant for the speed warp 9 |
| Method Summary | |
|---|---|
long |
accelleration()
Gets the current accelleration rate of the object, per tick |
long[] |
coordinates()
The current absolute coordinates of the object |
double[] |
direction()
The direction of travel of this object in radians. |
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 |
SpaceObject |
orbiting()
If this object is in orbit about another, what is that other |
void |
setAccelleration(long v)
Sets the current accelleration rate of the object, per tick |
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 |
setOrbiting(SpaceObject O)
Sets this object in orbit about another |
void |
setVelocity(long v)
Sets the velocify of the object through space |
long |
velocity()
The velocity of the object through space |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, 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, destroy, isSavable, setSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, 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 |
|---|
static final long DISTANCE_MILE
static final long DISTANCE_LIGHTYEAR
static final long DISTANCE_AROUNDGALAXY
static final long DISTANCE_PLANETRADIUS
static final long DISTANCE_ORBITING
static final long VELOCITY_LIGHT
static final long VELOCITY_SUBLIGHT
static final long VELOCITY_SOUND
static final long VELOCITY_ORBITING
static final long VELOCITY_ESCAPE
static final long VELOCITY_WARP1
static final long VELOCITY_WARP2
static final long VELOCITY_WARP3
static final long VELOCITY_WARP4
static final long VELOCITY_WARP5
static final long VELOCITY_WARP6
static final long VELOCITY_WARP7
static final long VELOCITY_WARP8
static final long VELOCITY_WARP9
static final long VELOCITY_WARP10
static final long VELOCITY_TRANSWARP1
static final long VELOCITY_TRANSWARP2
static final long VELOCITY_TRANSWARP3
static final long VELOCITY_TRANSWARP4
static final long VELOCITY_TRANSWARP5
static final long VELOCITY_TRANSWARP6
static final long VELOCITY_TRANSWARP7
static final long VELOCITY_TRANSWARP8
static final long VELOCITY_TRANSWARP9
static final long VELOCITY_TRANSWARP10
| Method Detail |
|---|
long[] coordinates()
void setCoords(long[] coords)
coords - 2 dimensional array of the coordinates in spacedouble[] direction()
void setDirection(double[] dir)
dir - 2 dimensional array for the direction of movementlong velocity()
void setVelocity(long v)
v - the velocitylong accelleration()
void setAccelleration(long v)
v - current accelleration rateSpaceObject knownTarget()
void setKnownTarget(SpaceObject O)
O - the target destinationSpaceObject knownSource()
void setKnownSource(SpaceObject O)
O - the source of this objectSpaceObject orbiting()
void setOrbiting(SpaceObject O)
O - the object about which this one is orbiting
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||