|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Areas.StdSpaceShip
public class StdSpaceShip
| 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 |
accelleration
|
protected SVector<Ability> |
affects
|
protected boolean |
amDestroyed
|
protected java.lang.String |
author
|
protected PhyStats |
basePhyStats
|
protected SVector<Behavior> |
behaviors
|
protected STreeMap<java.lang.String,java.lang.String> |
blurbFlags
|
protected static Climate |
climateObj
|
long[] |
coordinates
|
protected java.lang.String |
currency
|
protected java.lang.String |
description
|
double[] |
direction
|
static java.lang.String[] |
empty
|
protected int |
flag
|
protected java.lang.String |
imageName
|
protected boolean |
initializedArea
|
protected TimeClock |
localClock
|
protected java.lang.String |
miscText
|
protected SVector<Room> |
myRooms
|
protected java.lang.String |
name
|
protected SpaceObject |
orbiting
|
protected SLinkedList<Area> |
parents
|
protected java.util.List<java.lang.String> |
parentsToLoad
|
protected PhyStats |
phyStats
|
protected RoomnumberSet |
properRoomIDSet
|
protected Room |
savedDock
|
protected SVector<ScriptingEngine> |
scripts
|
protected SpaceObject |
spaceSource
|
protected SpaceObject |
spaceTarget
|
protected long |
tickStatus
|
long |
velocity
|
protected java.lang.String[] |
xtraValues
|
| 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 |
| 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 |
| Constructor Summary | |
|---|---|
StdSpaceShip()
|
|
| Method Summary | |
|---|---|
long |
accelleration()
Gets the current accelleration rate of the object, per tick |
void |
addBehavior(Behavior to)
Manipulation of Behavior objects, which includes movement, speech, spellcasting, etc, etc. |
void |
addBlurbFlag(java.lang.String flagPlusDesc)
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
void |
addChild(Area area)
Designates the given Area object as a Child of this one. |
void |
addChildToLoad(java.lang.String str)
Designates that the area named by the given String will be a Child Area of this area. |
void |
addEffect(Ability to)
Add a new effect to this object, whether permanent or temporary. |
int[] |
addMaskAndReturn(int[] one,
int[] two)
|
void |
addMetroRoom(Room R)
Designates that a given Room object belongs to one of this areas children. |
void |
addMetroRoomnumber(java.lang.String roomID)
Designates that a given roomid represents a room which belongs to one of this areas children. |
void |
addNonUninvokableEffect(Ability to)
Same as addEffect(Ability), but will set the Ability object as never being able to be uninvoked. |
void |
addParent(Area area)
Designates the given Area object as a Parent of this one. |
void |
addParentToLoad(java.lang.String str)
Designates that the area named by the given String will be a Parent Area of this area. |
void |
addProperRoom(Room R)
This method adds a new Room to this area. |
void |
addProperRoomnumber(java.lang.String roomID)
Designates that the given roomID belongs to this Area. |
void |
addScript(ScriptingEngine S)
Manipulation of the scripts list |
void |
addSubOp(java.lang.String username)
Adds a SubOp to this area. |
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affectedMob,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectPhyStats(Physical affected,
PhyStats affectableStats)
This method is called by the recoverPhyStats() method on other Environmental objects. |
protected java.util.Enumeration<java.lang.String> |
allBlurbFlags()
|
boolean |
amDestroyed()
Whether the destroy() method has been previousy called on this object. |
boolean |
amISubOp(java.lang.String username)
Returns whether the given player name is a SubOp to this area. |
java.util.Enumeration<java.lang.String> |
areaBlurbFlags()
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
PhyStats |
basePhyStats()
Object containing a set of base, unmodified, mostly numeric fields. |
java.util.Enumeration<Behavior> |
behaviors()
Returns an enumerator of all the behaviors on this object. |
java.lang.String |
budget()
Returns a description of the buying budget of the shopkeeper. |
boolean |
canChild(Area area)
Returns whether the Area named MAY BE designated as a child of this Area A Child Area inherets certain behaviors and property effects from its Parents |
boolean |
canParent(Area area)
Returns whether the Area named MAY BE designated as a parent of this Area A Parent Area passes down certain behaviors and property effects to its children |
int |
climateType()
Returns a bitmap of climate flags for this area which will be used to influence the weather for the area in addition to season and other factors. |
protected void |
cloneFix(StdSpaceShip ship)
|
int |
compareTo(CMObject o)
|
long[] |
coordinates()
The current absolute coordinates of the object |
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
void |
delBehavior(Behavior to)
Delete a behavior from this object. |
void |
delBlurbFlag(java.lang.String flagOnly)
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
void |
delEffect(Ability to)
Delete an effect from this object, whether permanent or temporary. |
void |
delMetroRoom(Room R)
Designates that a given Room object no longer belongs to one of this areas children. |
void |
delMetroRoomnumber(java.lang.String roomID)
Designates that a given roomid represents a room which no longer belongs to one of this areas children. |
void |
delProperRoom(Room R)
This method removes an existing Room from this area. |
void |
delProperRoomnumber(java.lang.String roomID)
Designates that the given roomID no longer belongs to this Area. |
void |
delScript(ScriptingEngine S)
Remove a running script from this object. |
void |
delSubOp(java.lang.String username)
Removes a SubOp to this area. |
java.lang.String |
description()
The basic description of this object, as shown when the item is directly LOOKed at. |
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. |
java.lang.String |
devalueRate()
Returns a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
double[] |
direction()
The direction of travel of this object in radians. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
void |
dockHere(Room R)
|
java.util.Enumeration<Ability> |
effects()
Returns an enumerator of abilities listed as effects on this object. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
long |
expirationDate()
If this object expires, it should have a timestamp saying when it expires, in real time. |
Behavior |
fetchBehavior(int index)
Returns a behavior object on this object. |
Behavior |
fetchBehavior(java.lang.String ID)
Returns a behavior object listed on this object. |
Ability |
fetchEffect(int index)
Returns an ability object listed as an effect on this object. |
Ability |
fetchEffect(java.lang.String ID)
Returns an ability object listed as an effect on this object. |
ScriptingEngine |
fetchScript(int x)
Retreive one of the enumerated scripts running on this object |
void |
fillInAreaRoom(Room R)
This method causes a given room to have its run-time generated Skys to be re-generated. |
void |
fillInAreaRooms()
This method causes all proper rooms within this area to have their run-time generated Skys to be re-generated. |
java.lang.String |
finalBudget()
Returns a description of the buying budget of the shopkeeper. |
java.lang.String |
finalDevalueRate()
Returns a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
java.lang.String |
finalIgnoreMask()
Returns the mask used to determine if a customer is ignored by the ShopKeeper. |
int |
finalInvResetRate()
Returns the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
java.lang.String[] |
finalItemPricingAdjustments()
A string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
java.lang.String |
finalPrejudiceFactors()
A string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
long |
flags()
Return basic attributed flag about the area. |
java.lang.String |
getArchivePath()
Returns the coffeemud .cmare filename that will be used when the EXPORT command is used in such a way as to auto-generate filenames. |
int[] |
getAreaIStats()
Returns an integer array of statistics about this area based on a snapshot generated the first time it is called. |
int |
getAreaState()
Area Flags, unlike flags, is a PURELY run-time set that changes depending upon how the engine is operating on this area or its content. |
java.lang.StringBuffer |
getAreaStats()
Returns a descriptive list of statistics about this area based on a snapshot from getAreaIStats(), which is cached after being generated. |
java.lang.String |
getAuthorID()
Returns the name of the author of this area, an arbitrary string |
java.lang.String |
getBlurbFlag(java.lang.String flag)
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
RoomnumberSet |
getCachedRoomnumbers()
Returns a RoomnumberSet for all rooms that properly belong to this area, excluding those not yet loaded. |
Area |
getChild(java.lang.String named)
Returns the named Child Area object for this Area A Child Area inherets certain behaviors and property effects from its Parents |
java.util.Enumeration<Area> |
getChildren()
An enumerator list of Area objects representing the Children Areas of this Area. |
java.lang.String |
getChildrenList()
Returns a semicolon delimited list of Area names representing the Children Areas of this Area. |
Climate |
getClimateObj()
Returns a reference to the Climate object that represents the current and future weather for this area. |
protected int |
getCodeNum(java.lang.String code)
|
java.util.Enumeration<Room> |
getCompleteMap()
This method is the same as getProperMap, except that it will load any Rooms that belong to the area but have not yet been loaded. |
java.lang.String |
getCurrency()
Sets the default currency for this area, which will be referenced by shopkeepers, bankers, and other mobs. |
protected Room |
getDock()
|
java.util.Enumeration<Room> |
getFilledProperMap()
Returns an enumerator for all previously loaded rooms that properly belongs to this area, along with their skys or underwater add-ons. |
java.util.List<Room> |
getMetroCollection()
|
java.util.Enumeration<Room> |
getMetroMap()
Returns an enumerator for all previously loaded rooms that properly belongs to this area AND to any child areas. |
RoomnumberSet |
getMetroRoomnumbers()
|
java.lang.String |
getNewRoomID(Room startRoom,
int direction)
Generates a new RoomID for a new Room in this area. |
Area |
getParent(java.lang.String named)
Returns the named Parent Area object for this Area A Parent Area passes down certain behaviors and property effects to its children |
java.util.Enumeration<Area> |
getParents()
An enumerator list of Area objects representing the Parent Areas of this Area. |
protected java.util.Iterator<Area> |
getParentsIterator()
|
java.lang.String |
getParentsList()
Returns a semicolon delimited list of Area names representing the Parent Areas of this Area. |
java.util.List<Area> |
getParentsRecurse()
Returns a Vector of all Parent Area objects to this one, recursively A Parent Area passes down certain behaviors and property effects to its children |
protected java.util.Iterator<Area> |
getParentsReverseIterator()
|
java.util.Enumeration<Room> |
getProperMap()
Returns an enumerator for all previously loaded rooms that properly belongs to this area. |
RoomnumberSet |
getProperRoomnumbers()
Returns a RoomnumberSet for all rooms that properly belong to this area, including those not yet loaded. |
Room |
getRandomMetroRoom()
Returns a random room from this area, or one of its children, loading it if necessary. |
Room |
getRandomProperRoom()
Returns a random room from this area, loading it if necessary. |
Room |
getRoom(java.lang.String roomID)
Returns a room of the given roomID, if it has already been added by calling addProperRoom. |
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
java.lang.String |
getStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
getStatCodes()
Returns an array of the string names of those fields which are modifiable on this object at run-time by builders. |
java.lang.String |
getSubOpList()
Returns a semicolon delimited list of player Names that represent the SubOp list for this area. |
int |
getTechLevel()
Returns the technology level supported by this area. |
long |
getTickStatus()
A coded status for this object during the period where its tick method is being called. |
TimeClock |
getTimeObj()
Returns a reference to the TimeClock object that represents the calendar and date/time for this area. |
java.lang.String |
getWeatherDescription()
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
ignoreMask()
Returns the mask used to determine if a customer is ignored by the ShopKeeper. |
java.lang.String |
image()
Returns the fully qualified and determined name of the image file displayed for this object when MXP is used. |
void |
initializeAreaLink()
Initialize Area Links is called after an area is loaded from disk to resolve any hard, children or parent links, or perform other related area initialization. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
boolean |
inMyMetroArea(Area A)
Returns whether the given Area object is either THIS area, a child of this area, or a decendent. |
int |
invResetRate()
Returns the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
boolean |
isChild(Area named)
Returns whether the Area is a child of this Area A Child Area inherets certain behaviors and property effects from its Parents |
boolean |
isChild(java.lang.String named)
Returns whether the Area named is a child of this Area A Child Area inherets certain behaviors and property effects from its Parents |
boolean |
isGeneric()
Whether the fields of this item are set in code, or set by builders. |
boolean |
isParent(Area area)
Returns whether the Area is a Parent of this Area A Parent Area passes down certain behaviors and property effects to its children |
boolean |
isParent(java.lang.String named)
Returns whether the Area named is a Parent of this Area A Parent Area passes down certain behaviors and property effects to its children |
boolean |
isRoom(Room R)
Returns whether the given Room object belongs to this Area, even if the Room object properly has not been loaded yet (due to the area being thin). |
boolean |
isSavable()
Whether, if this object is in a room, whether it is appropriate to save this object to the database as a permanent feature of its container. |
boolean |
isStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
itemPricingAdjustments()
A string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
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 |
SLinkedList<Area> |
loadAreas(java.util.Collection<java.lang.String> loadableSet)
|
int |
maxRange()
the maximum range of this object, if applicable. |
int |
metroSize()
Returns a count of all cached rooms that belong to this area, or to a child area, which have been loaded. |
int |
minRange()
the minimum range of this object, if applicable. |
java.lang.String |
miscTextFormat()
Unimplemented as of yet, but will hold a string telling the system what the proper format of any miscText data. |
java.lang.String |
name()
The displayable name of this object. |
java.lang.String |
Name()
The raw unmodified name of this object as stored in the database. |
CMObject |
newInstance()
Returns a new instance of this class. |
int |
numAllBlurbFlags()
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
int |
numBehaviors()
The number of behaviors this object has. |
int |
numberOfProperIDedRooms()
Returns a count of all cached rooms that belong to this area, excluding skys and auto-generated rooms. |
int |
numBlurbFlags()
A blurb flag is a run-time modifiable set of strings that can be added to an area in order to display them in the HELP entry for an area. |
int |
numEffects()
Returns the number of ability objects listed as effects on this object. |
int |
numScripts()
Return the number of scripts running on this object |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
SpaceObject |
orbiting()
If this object is in orbit about another, what is that other |
PhyStats |
phyStats()
Object containing a set of current, modified, usable, mostly numeric fields. |
java.lang.String |
prejudiceFactors()
A string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
int |
properSize()
Returns a count of all cached rooms that belong to this area, which have been loaded. |
java.lang.String |
rawImage()
Returns the raw name of the image file to display for this object when MXP is used. |
void |
recoverPhyStats()
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to all surrounding objects with affectPhyStats(Environmental,PhyStats) method. |
void |
removeChild(Area area)
Designates the given Area object as no longer being Child of this one. |
void |
removeParent(Area area)
Designates the given Area object as no longer being Parent of this one. |
boolean |
sameAs(Environmental E)
Whether this object instance is functionally identical to the object passed in. |
java.util.Enumeration<ScriptingEngine> |
scripts()
Returns an enumerator of all the scripts on this object. |
void |
setAccelleration(long v)
Sets the current accelleration rate of the object, per tick |
void |
setArchivePath(java.lang.String pathFile)
Sets the coffeemud .cmare filename that will be used when the EXPORT command is used in such a way as to auto-generate filenames. |
void |
setAreaState(int newState)
Area Flags, unlike flags, is a PURELY run-time set that changes depending upon how the engine is operating on this area or its content. |
void |
setAuthorID(java.lang.String authorID)
Sets the name of the author of this area, an arbitrary string |
void |
setBasePhyStats(PhyStats newStats)
Re-sets the object containing a set of base, unmodified, mostly numeric fields. |
void |
setBudget(java.lang.String factors)
Sets a description of the buying budget of the shopkeeper. |
void |
setClimateObj(Climate obj)
Sets a reference to the Climate object that represents the current and future weather for this area. |
void |
setClimateType(int newClimateType)
Returns a bitmap of climate flags for this area which will be used to influence the weather for the area in addition to season and other factors. |
void |
setCoords(long[] coords)
Sets the current absolute coordinates of the object |
void |
setCurrency(java.lang.String newCurrency)
Returns the default currency for this area, which will be referenced by shopkeepers, bankers, and other mobs. |
void |
setCurrentWeatherType(int weatherCode)
|
void |
setDescription(java.lang.String newDescription)
Sets the basic description of this object, as shown when the item is directly LOOKed at. |
void |
setDevalueRate(java.lang.String factors)
Sets a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
void |
setDirection(double[] dir)
Sets the direction of travel of this object in radians. |
void |
setDisplayText(java.lang.String newDisplayText)
Sets the raw string used to show what this object looks like in the room. |
void |
setExpirationDate(long time)
If this object expires, it should have a timestamp saying when it expires, in real time. |
void |
setIgnoreMask(java.lang.String factors)
Sets the mask used to determine if a customer is ignored by the ShopKeeper. |
void |
setImage(java.lang.String newImage)
Sets the raw name of the image file to display for this object when MXP is used. |
void |
setInvResetRate(int ticks)
Sets the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
void |
setItemPricingAdjustments(java.lang.String[] factors)
Sets the string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
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 |
setMiscText(java.lang.String newMiscText)
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
void |
setName(java.lang.String newName)
Sets the raw unmodified name of this object as stored in the database. |
void |
setNextWeatherType(int weatherCode)
|
void |
setOrbiting(SpaceObject O)
Sets this object in orbit about another |
void |
setPrejudiceFactors(java.lang.String factors)
Sets the string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
void |
setProperRoomnumbers(RoomnumberSet set)
Sets the RoomnumberSet for all rooms that properly belong to this area, including those not yet loaded. |
void |
setSavable(boolean truefalse)
Sets whether this behavior can be saved as a permanent aspect of its host. |
void |
setStat(java.lang.String code,
java.lang.String val)
An alternative means of setting the values of those fields on this object which are modifiable at run-time by builders. |
void |
setSubOpList(java.lang.String list)
Sets the semicolon delimited list of player Names that represent the SubOp list for this area. |
void |
setTechLevel(int level)
Sets the technology level supported by this area. |
void |
setTimeObj(TimeClock obj)
Sets a reference to the TimeClock object that represents the calendar and date/time for this area. |
void |
setVelocity(long v)
Sets the velocify of the object through space |
java.util.Enumeration<java.lang.String> |
subOps()
Returns a enumeration of player Names that represent the SubOp list for this area. |
java.lang.String |
text()
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
void |
unDock(boolean toSpace)
|
long |
velocity()
The velocity of the object through space |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Climate climateObj
public long[] coordinates
public double[] direction
public long velocity
public long accelleration
protected java.lang.String[] xtraValues
protected java.lang.String imageName
protected RoomnumberSet properRoomIDSet
protected TimeClock localClock
protected java.lang.String currency
protected SpaceObject spaceTarget
protected SpaceObject spaceSource
protected SpaceObject orbiting
protected boolean amDestroyed
protected java.lang.String name
protected Room savedDock
protected java.lang.String description
protected java.lang.String miscText
protected SVector<Room> myRooms
protected int flag
protected long tickStatus
protected java.lang.String author
protected PhyStats phyStats
protected PhyStats basePhyStats
protected boolean initializedArea
protected SVector<Ability> affects
protected SVector<Behavior> behaviors
protected SVector<ScriptingEngine> scripts
protected SLinkedList<Area> parents
protected java.util.List<java.lang.String> parentsToLoad
protected STreeMap<java.lang.String,java.lang.String> blurbFlags
public static final java.lang.String[] empty
| Constructor Detail |
|---|
public StdSpaceShip()
| Method Detail |
|---|
public void initializeClass()
CMObject
initializeClass in interface CMObjectpublic long[] coordinates()
SpaceObject
coordinates in interface SpaceObjectpublic double[] direction()
SpaceObject
direction in interface SpaceObjectprotected Room getDock()
public void setClimateObj(Climate obj)
Area
setClimateObj in interface Areaobj - a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimatepublic Climate getClimateObj()
Area
getClimateObj in interface AreaClimatepublic void setAuthorID(java.lang.String authorID)
Area
setAuthorID in interface AreaauthorID - the author of the areapublic java.lang.String getAuthorID()
Area
getAuthorID in interface Areapublic TimeClock getTimeObj()
Area
getTimeObj in interface AreaTimeClockpublic void setTimeObj(TimeClock obj)
Area
setTimeObj in interface Areaobj - a com.planet_ink.coffee_mud.Common.interfaces.TimeClock objectTimeClockpublic void setCurrency(java.lang.String newCurrency)
Area
setCurrency in interface AreanewCurrency - a currency name/definitionpublic java.lang.String getCurrency()
Area
getCurrency in interface Areapublic long expirationDate()
Environmental
expirationDate in interface EnvironmentalEnvironmental.setExpirationDate(long)public void setExpirationDate(long time)
Environmental
setExpirationDate in interface Environmentaltime - the time stamp when this thing expiresEnvironmental.expirationDate()public long flags()
Area
flags in interface AreaArea.FLAG_THINpublic 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 SpaceObject orbiting()
SpaceObject
orbiting in interface SpaceObjectpublic void setOrbiting(SpaceObject O)
SpaceObject
setOrbiting in interface SpaceObjectO - the object about which this one is orbitingpublic void setCoords(long[] coords)
SpaceObject
setCoords in interface SpaceObjectcoords - 2 dimensional array of the coordinates in spacepublic void setDirection(double[] dir)
SpaceObject
setDirection in interface SpaceObjectdir - 2 dimensional array for the direction of movementpublic long velocity()
SpaceObject
velocity in interface SpaceObjectpublic void setVelocity(long v)
SpaceObject
setVelocity in interface SpaceObjectv - the velocitypublic long accelleration()
SpaceObject
accelleration in interface SpaceObjectpublic void setAccelleration(long v)
SpaceObject
setAccelleration in interface SpaceObjectv - current accelleration ratepublic void destroy()
Contingent
destroy in interface Contingentpublic boolean amDestroyed()
Contingent
amDestroyed in interface Contingentpublic boolean isSavable()
Contingent
isSavable in interface Contingentpublic void setSavable(boolean truefalse)
Contingent
setSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()public java.lang.String ID()
CMObject
ID in interface CMObjectpublic int climateType()
Area
climateType in interface AreaArea.CLIMASK_COLDpublic void setClimateType(int newClimateType)
Area
setClimateType in interface AreanewClimateType - a CLIMASK bitmapArea.CLIMASK_COLDpublic java.lang.String name()
Environmental
name in interface Environmentalname in interface TickableEnvironmental.Name()public void setName(java.lang.String newName)
Environmental
setName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public java.lang.String Name()
Environmental
Name in interface EnvironmentalEnvironmental.name()public PhyStats phyStats()
Affectable
phyStats in interface AffectableAffectable.basePhyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic PhyStats basePhyStats()
Affectable
basePhyStats in interface AffectableAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic void recoverPhyStats()
Affectable
recoverPhyStats in interface AffectableAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatspublic void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic void setNextWeatherType(int weatherCode)
public void setCurrentWeatherType(int weatherCode)
public int getTechLevel()
Area
getTechLevel in interface AreaArea.THEME_FANTASYpublic void setTechLevel(int level)
Area
setTechLevel in interface Arealevel - the bitmap representing the tech levelArea.THEME_FANTASYpublic java.lang.String image()
Environmental
image in interface Environmentalpublic java.lang.String rawImage()
Environmental
rawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
Environmental
setImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic java.lang.String getArchivePath()
Area
getArchivePath in interface Areapublic void setArchivePath(java.lang.String pathFile)
Area
setArchivePath in interface AreapathFile - the name of the .cmare filename to usepublic void setAreaState(int newState)
Area
setAreaState in interface AreaArea.STATE_ACTIVEpublic int getAreaState()
Area
getAreaState in interface AreaArea.STATE_ACTIVEpublic boolean amISubOp(java.lang.String username)
Area
amISubOp in interface Areausername - a players Name
Area.addSubOp(String)public java.lang.String getSubOpList()
Area
getSubOpList in interface AreaArea.addSubOp(String)public void setSubOpList(java.lang.String list)
Area
setSubOpList in interface Arealist - a semicolon delimited list of player Names.Area.addSubOp(String)public void addSubOp(java.lang.String username)
Area
addSubOp in interface Areausername - a players NameArea.delSubOp(String)public void delSubOp(java.lang.String username)
Area
delSubOp in interface Areausername - a players NameArea.addSubOp(String)public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic boolean isGeneric()
Environmental
isGeneric in interface EnvironmentalEnvironmental.text()protected void cloneFix(StdSpaceShip ship)
public CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic java.lang.String displayText()
Environmental
displayText in interface Environmentalpublic void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public java.lang.String miscTextFormat()
Environmental
miscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public java.lang.String text()
Environmental
text in interface Environmentalpublic void setMiscText(java.lang.String newMiscText)
Environmental
setMiscText in interface EnvironmentalnewMiscText - either an open internal text string, or XMLpublic java.lang.String description()
Environmental
description in interface Environmentalpublic void setDescription(java.lang.String newDescription)
Environmental
setDescription in interface EnvironmentalnewDescription - the basic detail description of this object
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()protected java.util.Enumeration<java.lang.String> allBlurbFlags()
public java.lang.String getBlurbFlag(java.lang.String flag)
Area
getBlurbFlag in interface Areaflag - the name of the flag to return
public int numBlurbFlags()
Area
numBlurbFlags in interface Areapublic int numAllBlurbFlags()
Area
numAllBlurbFlags in interface Areapublic java.util.Enumeration<java.lang.String> areaBlurbFlags()
Area
areaBlurbFlags in interface AreaArea.getBlurbFlag(String)public void addBlurbFlag(java.lang.String flagPlusDesc)
Area
addBlurbFlag in interface AreaflagPlusDesc - the flag name, space, followed by definitionpublic void delBlurbFlag(java.lang.String flagOnly)
Area
delBlurbFlag in interface AreaflagOnly - the name of the flag to remove.
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic java.util.Enumeration<Room> getCompleteMap()
Area
getCompleteMap in interface AreaArea.getProperMap(),
Roompublic java.util.List<Room> getMetroCollection()
public int[] addMaskAndReturn(int[] one,
int[] two)
public long getTickStatus()
Tickable
getTickStatus in interface TickableTickable.tick(Tickable, int)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGrouppublic java.lang.String getWeatherDescription()
public void affectPhyStats(Physical affected,
PhyStats affectableStats)
StatsAffecting
affectPhyStats in interface StatsAffectingaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats,
Environmental,
Affectable.basePhyStats(),
Affectable.phyStats(),
Affectable.recoverPhyStats()
public void affectCharStats(MOB affectedMob,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectedMob - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()
public void affectCharState(MOB affectedMob,
CharState affectableMaxState)
StatsAffecting
affectCharState in interface StatsAffectingaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()public void addNonUninvokableEffect(Ability to)
Affectable
addNonUninvokableEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void addEffect(Ability to)
Affectable
addEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void delEffect(Ability to)
Affectable
delEffect in interface Affectableto - The ability object to remove as an effect on this objectAbility,
Affectable.recoverPhyStats()public int numEffects()
Affectable
numEffects in interface AffectableAbilitypublic java.util.Enumeration<Ability> effects()
Affectable
effects in interface AffectableAbilitypublic Ability fetchEffect(int index)
Affectable
fetchEffect in interface Affectableindex - which object to return
Ability,
Affectable.numEffects()public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect in interface AffectableAbility,
CMObject.ID()public void fillInAreaRooms()
Area
fillInAreaRooms in interface Areapublic boolean inMyMetroArea(Area A)
Area
inMyMetroArea in interface AreaA - an Area object
public void fillInAreaRoom(Room R)
Area
fillInAreaRoom in interface AreaR - the Room object to "fill-in"Roompublic void dockHere(Room R)
dockHere in interface SpaceShippublic void unDock(boolean toSpace)
unDock in interface SpaceShippublic RoomnumberSet getCachedRoomnumbers()
Area
getCachedRoomnumbers in interface Areapublic RoomnumberSet getProperRoomnumbers()
Area
getProperRoomnumbers in interface AreaRoomnumberSet
public java.lang.String getNewRoomID(Room startRoom,
int direction)
Area
getNewRoomID in interface AreastartRoom - the room connected to the upcoming new one (or null)direction - the direction from the startRoom the new one will go
Roompublic void addBehavior(Behavior to)
addBehavior in interface Behavableto - The behavior object to add.Behavior,
Affectable.recoverPhyStats()public void delBehavior(Behavior to)
Behavable
delBehavior in interface Behavableto - The behavior object to remove.Behavior,
Affectable.recoverPhyStats()public int numBehaviors()
Behavable
numBehaviors in interface BehavableBehaviorpublic java.util.Enumeration<Behavior> behaviors()
Behavable
behaviors in interface BehavableBehaviorpublic int maxRange()
Environmental
maxRange in interface Environmentalpublic int minRange()
Environmental
minRange in interface Environmentalpublic int[] getAreaIStats()
Area
getAreaIStats in interface AreaArea.AREASTAT_AVGALIGNpublic java.lang.StringBuffer getAreaStats()
Area
getAreaStats in interface AreaArea.getAreaIStats()public Behavior fetchBehavior(int index)
Behavable
fetchBehavior in interface Behavableindex - which object to return
Behavior,
Behavable.numBehaviors()public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior in interface BehavableBehavior,
CMObject.ID()public void addScript(ScriptingEngine S)
addScript in interface BehavableS - the scripting engine, fully populated, to addScriptingEnginepublic void delScript(ScriptingEngine S)
Behavable
delScript in interface BehavableS - the specific scripting engine to removeScriptingEnginepublic int numScripts()
Behavable
numScripts in interface Behavablepublic java.util.Enumeration<ScriptingEngine> scripts()
Behavable
scripts in interface BehavableScriptingEnginepublic ScriptingEngine fetchScript(int x)
Behavable
fetchScript in interface Behavablex - which script to return
ScriptingEnginepublic void addProperRoom(Room R)
Area
addProperRoom in interface AreaR - the Room to add.Area.addMetroRoom(Room),
Roompublic void delProperRoom(Room R)
Area
delProperRoom in interface AreaR - the Room to delete.Area.delMetroRoom(Room),
Roompublic void addProperRoomnumber(java.lang.String roomID)
Area
addProperRoomnumber in interface ArearoomID - the roomID of a room which should belong to this Area.public void delProperRoomnumber(java.lang.String roomID)
Area
delProperRoomnumber in interface ArearoomID - the roomID of a room which should no longer belong to this Area.public boolean isRoom(Room R)
Area
isRoom in interface AreaR - the Room object to check for
Roompublic Room getRoom(java.lang.String roomID)
Area
getRoom in interface ArearoomID - the roomID of the room to return.
Roompublic int metroSize()
Area
metroSize in interface Areapublic int properSize()
Area
properSize in interface Areapublic int numberOfProperIDedRooms()
Area
numberOfProperIDedRooms in interface Areapublic Room getRandomMetroRoom()
Area
getRandomMetroRoom in interface AreaRoompublic Room getRandomProperRoom()
Area
getRandomProperRoom in interface AreaRoompublic void setProperRoomnumbers(RoomnumberSet set)
Area
setProperRoomnumbers in interface Areaset - a com.planet_ink.coffee_mud.Common.interfaces.RoomnumberSet objectRoomnumberSetpublic RoomnumberSet getMetroRoomnumbers()
public java.util.Enumeration<Room> getMetroMap()
Area
getMetroMap in interface AreaRoompublic void addMetroRoomnumber(java.lang.String roomID)
Area
addMetroRoomnumber in interface ArearoomID - a roomid for a roompublic void delMetroRoomnumber(java.lang.String roomID)
Area
delMetroRoomnumber in interface ArearoomID - a roomid for a former roompublic void addMetroRoom(Room R)
Area
addMetroRoom in interface AreaR - a Room object from one of this areas child areas.Roompublic void delMetroRoom(Room R)
Area
delMetroRoom in interface AreaR - a Room object formerly from one of this areas child areas.Roompublic java.util.Enumeration<Room> getProperMap()
Area
getProperMap in interface AreaArea.getCompleteMap(),
Roompublic java.util.Enumeration<Room> getFilledProperMap()
Area
getFilledProperMap in interface AreaArea.getProperMap(),
Roompublic java.util.Enumeration<java.lang.String> subOps()
Area
subOps in interface Areapublic void addChildToLoad(java.lang.String str)
Area
addChildToLoad in interface Areastr - the name of an Areapublic void addParentToLoad(java.lang.String str)
Area
addParentToLoad in interface Areastr - the name of an Areapublic java.util.Enumeration<Area> getChildren()
Area
getChildren in interface Areapublic java.lang.String getChildrenList()
Area
getChildrenList in interface Areapublic Area getChild(java.lang.String named)
Area
getChild in interface Areanamed - the name of an Area
public boolean isChild(Area named)
Area
isChild in interface Areanamed - an Area object
public boolean isChild(java.lang.String named)
Area
isChild in interface Areanamed - the name of an Area
public void addChild(Area area)
Area
addChild in interface Areaarea - an Area objectpublic void removeChild(Area area)
Area
removeChild in interface Areaarea - an Area objectpublic boolean canChild(Area area)
Area
canChild in interface Areaarea - an Area to check
public SLinkedList<Area> loadAreas(java.util.Collection<java.lang.String> loadableSet)
public void initializeAreaLink()
Area
initializeAreaLink in interface Areaprotected final java.util.Iterator<Area> getParentsIterator()
protected final java.util.Iterator<Area> getParentsReverseIterator()
public java.util.Enumeration<Area> getParents()
Area
getParents in interface Areapublic java.util.List<Area> getParentsRecurse()
Area
getParentsRecurse in interface Areapublic java.lang.String getParentsList()
Area
getParentsList in interface Areapublic Area getParent(java.lang.String named)
Area
getParent in interface Areanamed - the name of an Area
public boolean isParent(Area area)
Area
isParent in interface Areaarea - an Area object
public boolean isParent(java.lang.String named)
Area
isParent in interface Areanamed - the name of an Area
public void addParent(Area area)
Area
addParent in interface Areaarea - an Area objectpublic void removeParent(Area area)
Area
removeParent in interface Areaarea - an Area objectpublic boolean canParent(Area area)
Area
canParent in interface Areaarea - an Area to check
public java.lang.String prejudiceFactors()
Economics
prejudiceFactors in interface Economicspublic void setPrejudiceFactors(java.lang.String factors)
Economics
setPrejudiceFactors in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String[] itemPricingAdjustments()
Economics
itemPricingAdjustments in interface Economicspublic void setItemPricingAdjustments(java.lang.String[] factors)
Economics
setItemPricingAdjustments in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String ignoreMask()
Economics
ignoreMask in interface EconomicsMaskingLibrarypublic void setIgnoreMask(java.lang.String factors)
Economics
setIgnoreMask in interface Economicsfactors - the mask to useMaskingLibrarypublic java.lang.String budget()
Economics
budget in interface Economicspublic void setBudget(java.lang.String factors)
Economics
setBudget in interface Economicsfactors - the string for the shopkeepers buying budgetpublic java.lang.String devalueRate()
Economics
devalueRate in interface Economicspublic void setDevalueRate(java.lang.String factors)
Economics
setDevalueRate in interface Economicsfactors - the price dropping percentage rule for this shopkeeperpublic int invResetRate()
Economics
invResetRate in interface Economicspublic void setInvResetRate(int ticks)
Economics
setInvResetRate in interface Economicsticks - the number of ticks between total resets of inventorypublic int finalInvResetRate()
Economics
finalInvResetRate in interface Economicspublic java.lang.String finalPrejudiceFactors()
Economics
finalPrejudiceFactors in interface Economicspublic java.lang.String finalIgnoreMask()
Economics
finalIgnoreMask in interface EconomicsMaskingLibrarypublic java.lang.String[] finalItemPricingAdjustments()
Economics
finalItemPricingAdjustments in interface Economicspublic java.lang.String finalBudget()
Economics
finalBudget in interface Economicspublic java.lang.String finalDevalueRate()
Economics
finalDevalueRate in interface Economicspublic int getSaveStatIndex()
Modifiable
getSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
Modifiable
getStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
Modifiable
isStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()protected int getCodeNum(java.lang.String code)
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code,
java.lang.String val)
Modifiable
setStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public boolean sameAs(Environmental E)
Environmental
sameAs in interface EnvironmentalE - the object to compare this one to
Modifiable.getStatCodes(),
Modifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||