com.planet_ink.coffee_mud.Items.interfaces
Interface SpaceShip

All Superinterfaces:
BoardableShip, BoundedObject, java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Contingent, Environmental, Modifiable, MsgListener, SpaceObject, StatsAffecting, Tickable
All Known Implementing Classes:
GenSpaceShip, StdSpaceShip

public interface SpaceShip
extends SpaceObject, BoardableShip

A Space Ship, which is a space object that's dockable and can change direction.


Nested Class Summary
static class SpaceShip.ShipFlag
           
 
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
 
Field Summary
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.SpaceObject
ACCELERATION_DAMAGED, ACCELERATION_G, ACCELERATION_INSTANTDEATH, ACCELERATION_PASSOUT, ACCELERATION_TYPICALROCKET, ACCELERATION_TYPICALSPACEROCKET, ACCELERATION_UNCONSCIOUSNESS, ASTEROID_MASS, ATMOSPHERIC_DRAG_BRICK, ATMOSPHERIC_DRAG_STREAMLINE, DISTANCES, MOONLET_MASS, MULTIPLIER_GRAVITY_EFFECT_RADIUS, MULTIPLIER_ORBITING_RADIUS_MAX, MULTIPLIER_ORBITING_RADIUS_MIN, MULTIPLIER_PLANET_MASS, MULTIPLIER_STAR_MASS, VELOCITY_ESCAPE, VELOCITY_LIGHT, VELOCITY_ORBITING, VELOCITY_SOUND, VELOCITY_SUBLIGHT, VELOCITY_TRANSWARP1, VELOCITY_TRANSWARP10, VELOCITY_TRANSWARP2, VELOCITY_TRANSWARP3, VELOCITY_TRANSWARP4, VELOCITY_TRANSWARP5, VELOCITY_TRANSWARP6, VELOCITY_TRANSWARP7, VELOCITY_TRANSWARP8, VELOCITY_TRANSWARP9, VELOCITY_WARP1, VELOCITY_WARP10, VELOCITY_WARP2, VELOCITY_WARP3, VELOCITY_WARP4, VELOCITY_WARP5, VELOCITY_WARP6, VELOCITY_WARP7, VELOCITY_WARP8, VELOCITY_WARP9
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BEAMWEAPON, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
 
Method Summary
 double[] facing()
          The direction of facing of this object in radians.
 double getOMLCoeff()
          The Outer Mold Line coefficient -- how streamlined are you?
 boolean getShipFlag(SpaceShip.ShipFlag flag)
          Gets one of the ship flags
 SpaceObject getShipSpaceObject()
          Space ships are unique in having an Item stand-in for planet-side access, as well as an Area object.
 double roll()
          The full 360 orientation of the top of the object in radians.
 void setFacing(double[] dir)
          Sets the direction of facing of this object in radians.
 void setOMLCoeff(double coeff)
          Set the Outer Mold Line coefficient -- how streamlined are you?
 void setRoll(double dir)
          Sets the full 360 orientation of the top of the object in radians.
 void setShipFlag(SpaceShip.ShipFlag flag, boolean flagValue)
          Sets one of the ship flags
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.SpaceObject
coordinates, direction, getMass, knownSource, knownTarget, radius, setCoords, setDirection, setKnownSource, setKnownTarget, setRadius, setSpeed, speed
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.BoundedObject
getBounds
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.BoardableShip
dockHere, getHomePortID, getIsDocked, getShipArea, getShipItem, renameShip, setDockableItem, setHomePortID, setShipArea, unDock
 
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, 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
 

Method Detail

setShipFlag

void setShipFlag(SpaceShip.ShipFlag flag,
                 boolean flagValue)
Sets one of the ship flags

Parameters:
flag - the flag to set or clear
flagValue - the flag value
See Also:
SpaceShip.ShipFlag, getShipFlag(ShipFlag)

getShipFlag

boolean getShipFlag(SpaceShip.ShipFlag flag)
Gets one of the ship flags

Parameters:
flag - the flag to set or clear
Returns:
flagValue the flag value
See Also:
SpaceShip.ShipFlag, setShipFlag(ShipFlag, boolean)

getShipSpaceObject

SpaceObject getShipSpaceObject()
Space ships are unique in having an Item stand-in for planet-side access, as well as an Area object. This method returns the object that resides in the official space grid.

Returns:
the official space version of this ship

getOMLCoeff

double getOMLCoeff()
The Outer Mold Line coefficient -- how streamlined are you?

Returns:
the coefficient, from 0.05-0.3

setOMLCoeff

void setOMLCoeff(double coeff)
Set the Outer Mold Line coefficient -- how streamlined are you?

Parameters:
coeff - the Outer Mold Line coefficient

facing

double[] facing()
The direction of facing of this object in radians.

Returns:
2 dimensional array for the direction of facing

setFacing

void setFacing(double[] dir)
Sets the direction of facing of this object in radians.

Parameters:
dir - 2 dimensional array for the direction of facing

roll

double roll()
The full 360 orientation of the top of the object in radians.

Returns:
radian for the direction of orientation

setRoll

void setRoll(double dir)
Sets the full 360 orientation of the top of the object in radians.

Parameters:
dir - radian for the direction of orientation