com.planet_ink.coffee_mud.Areas
Class StdPlanet

java.lang.Object
  extended by com.planet_ink.coffee_mud.Areas.StdArea
      extended by com.planet_ink.coffee_mud.Areas.StdTimeZone
          extended by com.planet_ink.coffee_mud.Areas.StdPlanet
All Implemented Interfaces:
Area, Affectable, Behavable, CMObject, Contingent, Economics, Environmental, Modifiable, MsgListener, Physical, PhysicalAgent, SpaceObject, StatsAffecting, Tickable, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class StdPlanet
extends StdTimeZone
implements SpaceObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area
Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator
 
Field Summary
 long[] coordinates
           
 double[] direction
           
 SpaceObject orbiting
           
 long velocity
           
 
Fields inherited from class com.planet_ink.coffee_mud.Areas.StdArea
affects, amDestroyed, archPath, author, basePhyStats, behaviors, blurbFlags, budget, children, childrenToLoad, climateID, climateObj, currency, description, devalueRate, empty, expirationDate, flag, ignoreMask, imageName, initializedArea, invResetRate, itemPricingAdjustments, lastPlayerTime, metroRoomIDSet, miscText, myClock, name, parents, parentsToLoad, phyStats, prejudiceFactors, properRoomIDSet, properRooms, scripts, subOps, techLevel, tickStatus, xtraValues
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.SpaceObject
DISTANCE_AROUNDGALAXY, DISTANCE_LIGHTYEAR, DISTANCE_MILE, DISTANCE_ORBITING, DISTANCE_PLANETRADIUS, 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_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_EMAIL, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MOB, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SPELL_AFFECT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET, TICKMASK_SOLITARY
 
Fields inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area
ALL_CLIMATE_MASK, AREASTAT_AVGALIGN, AREASTAT_AVGLEVEL, AREASTAT_DESCS, AREASTAT_INDOORROOMS, AREASTAT_INTLEVEL, AREASTAT_MAXLEVEL, AREASTAT_MEDALIGN, AREASTAT_MEDLEVEL, AREASTAT_MINLEVEL, AREASTAT_NUMBER, AREASTAT_POPULATION, AREASTAT_TOTLEVEL, AREASTAT_VISITABLEROOMS, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_NORMAL, CLIMASK_WET, CLIMATE_DESCS, CLIMATE_WINDY, FLAG_INSTANCE_CHILD, FLAG_INSTANCE_PARENT, FLAG_THIN, NUM_CLIMATES, STATE_ACTIVE, STATE_FROZEN, STATE_PASSIVE, STATE_STOPPED, THEME_DESCS, THEME_FANTASY, THEME_HEROIC, THEME_PHRASE, THEME_PHRASE_EXT, THEME_SKILLONLYMASK, THEME_TECHNOLOGY, TIME_PASSIVE_LAPSE
 
Constructor Summary
StdPlanet()
           
 
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.
 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
 SpaceObject orbiting()
          If this object is in orbit about another, what is that other
 void setAccelleration(long x)
          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 setName(java.lang.String newName)
          Sets the raw unmodified name of this object as stored in the database.
 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 class com.planet_ink.coffee_mud.Areas.StdTimeZone
addChild, copyOf, getTimeObj, initializeAreaLink
 
Methods inherited from class com.planet_ink.coffee_mud.Areas.StdArea
addBehavior, addBlurbFlag, addChildToLoad, addEffect, addMetroRoom, addMetroRoomnumber, addNonUninvokableEffect, addParent, addParentToLoad, addProperRoom, addProperRoomnumber, addScript, addSubOp, affectCharState, affectCharStats, affectPhyStats, allBlurbFlags, amDestroyed, amISubOp, areaBlurbFlags, basePhyStats, behaviors, budget, canChild, canParent, climateType, cloneFix, compareTo, delBehavior, delBlurbFlag, delEffect, delMetroRoom, delMetroRoomnumber, delProperRoom, delProperRoomnumber, delScript, delSubOp, description, destroy, devalueRate, displayText, effects, executeMsg, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fillInAreaRoom, fillInAreaRooms, finalBudget, finalBudget, finalDevalueRate, finalDevalueRate, finalIgnoreMask, finalIgnoreMask, finalInvResetRate, finalInvResetRate, finalItemPricingAdjustments, finalItemPricingAdjustments, finalPrejudiceFactors, finalPrejudiceFactors, flags, getArchivePath, getAreaIStats, getAreaState, getAreaStats, getAuthorID, getBlurbFlag, getCachedRoomnumbers, getChild, getChildren, getChildrenIterator, getChildrenList, getChildrenReverseIterator, getClimateObj, getCodeNum, getCompleteMap, getCurrency, getFilledProperMap, getMetroMap, getNewRoomID, getParent, getParents, getParentsIterator, getParentsList, getParentsRecurse, getParentsReverseIterator, getProperMap, getProperRoomnumbers, getRandomMetroRoom, getRandomProperRoom, getRoom, getSaveStatIndex, getStat, getStatCodes, getSubOpList, getTechLevel, getTickStatus, ignoreMask, image, initializeClass, inMyMetroArea, invResetRate, isChild, isChild, isGeneric, isParent, isParent, isRoom, isSavable, isStat, itemPricingAdjustments, loadAreas, maxRange, metroSize, minRange, miscTextFormat, name, Name, newInstance, numAllBlurbFlags, numBehaviors, numberOfProperIDedRooms, numBlurbFlags, numEffects, numScripts, okMessage, phyStats, prejudiceFactors, properSize, rawImage, recoverPhyStats, removeChild, removeParent, sameAs, scripts, setArchivePath, setAreaState, setAuthorID, setBasePhyStats, setBudget, setClimateObj, setClimateType, setCurrency, setDescription, setDevalueRate, setDisplayText, setExpirationDate, setIgnoreMask, setImage, setInvResetRate, setItemPricingAdjustments, setMiscText, setPrejudiceFactors, setProperRoomnumbers, setSavable, setStat, setSubOpList, setTechLevel, setTimeObj, subOps, text, tick
 
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, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, 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, 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

coordinates

public long[] coordinates

direction

public double[] direction

velocity

public long velocity

orbiting

public SpaceObject orbiting
Constructor Detail

StdPlanet

public StdPlanet()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdTimeZone
Returns:
the name of this class

coordinates

public long[] coordinates()
Description copied from interface: SpaceObject
The current absolute coordinates of the object

Specified by:
coordinates in interface SpaceObject
Returns:
2 dimensional array of the coordinates

setCoords

public void setCoords(long[] coords)
Description copied from interface: SpaceObject
Sets the current absolute coordinates of the object

Specified by:
setCoords in interface SpaceObject
Parameters:
coords - 2 dimensional array of the coordinates in space

direction

public double[] direction()
Description copied from interface: SpaceObject
The direction of travel of this object in radians.

Specified by:
direction in interface SpaceObject
Returns:
2 dimensional array for the direction of movement

setDirection

public void setDirection(double[] dir)
Description copied from interface: SpaceObject
Sets the direction of travel of this object in radians.

Specified by:
setDirection in interface SpaceObject
Parameters:
dir - 2 dimensional array for the direction of movement

velocity

public long velocity()
Description copied from interface: SpaceObject
The velocity of the object through space

Specified by:
velocity in interface SpaceObject
Returns:
the velocity

setVelocity

public void setVelocity(long v)
Description copied from interface: SpaceObject
Sets the velocify of the object through space

Specified by:
setVelocity in interface SpaceObject
Parameters:
v - the velocity

accelleration

public long accelleration()
Description copied from interface: SpaceObject
Gets the current accelleration rate of the object, per tick

Specified by:
accelleration in interface SpaceObject
Returns:
the current accelleration rate

setAccelleration

public void setAccelleration(long x)
Description copied from interface: SpaceObject
Sets the current accelleration rate of the object, per tick

Specified by:
setAccelleration in interface SpaceObject
Parameters:
x - current accelleration rate

setName

public void setName(java.lang.String newName)
Description copied from interface: Environmental
Sets the raw unmodified name of this object as stored in the database. This is the name set by builders and used as a basis for the name() method.

Specified by:
setName in interface Environmental
Overrides:
setName in class StdTimeZone
Parameters:
newName - the raw base name of this object on the map.
See Also:
Environmental.Name()

knownTarget

public SpaceObject knownTarget()
Description copied from interface: SpaceObject
If this object is targeting another space object as a destination, this will return it

Specified by:
knownTarget in interface SpaceObject
Returns:
the target destination

setKnownTarget

public void setKnownTarget(SpaceObject O)
Description copied from interface: SpaceObject
If this object is targeting another space object as a destination, this will set it

Specified by:
setKnownTarget in interface SpaceObject
Parameters:
O - the target destination

knownSource

public SpaceObject knownSource()
Description copied from interface: SpaceObject
The source object from which this space object is travelling from

Specified by:
knownSource in interface SpaceObject
Returns:
the source of this object

setKnownSource

public void setKnownSource(SpaceObject O)
Description copied from interface: SpaceObject
Sets the source object from which this space object is travelling from

Specified by:
setKnownSource in interface SpaceObject
Parameters:
O - the source of this object

orbiting

public SpaceObject orbiting()
Description copied from interface: SpaceObject
If this object is in orbit about another, what is that other

Specified by:
orbiting in interface SpaceObject
Returns:
the object about which this one is orbiting

setOrbiting

public void setOrbiting(SpaceObject O)
Description copied from interface: SpaceObject
Sets this object in orbit about another

Specified by:
setOrbiting in interface SpaceObject
Parameters:
O - the object about which this one is orbiting