|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Areas.StdBoardableShip
public class StdBoardableShip
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area |
|---|
Area.AreaInstanceChild, Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator, Area.State, Area.Stats |
| Field Summary | |
|---|---|
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 java.lang.String |
currency
|
protected java.lang.String |
description
|
protected java.lang.String |
displayText
|
static java.lang.String[] |
empty
|
protected Area.State |
flag
|
protected java.lang.String |
imageName
|
protected Area |
me
|
protected java.lang.String |
miscText
|
protected SVector<Room> |
myRooms
|
protected java.lang.String |
name
|
protected SLinkedList<Area> |
parents
|
protected PhyStats |
phyStats
|
protected RoomnumberSet |
properRoomIDSet
|
protected Room |
savedDock
|
protected SVector<ScriptingEngine> |
scripts
|
protected java.util.List<Pair<Room,java.lang.Integer>> |
shipExitCache
|
protected BoardableShip |
shipItem
|
protected int |
tickStatus
|
protected java.lang.String[] |
xtraValues
|
| Fields inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area |
|---|
FLAG_INSTANCE_CHILD, FLAG_INSTANCE_PARENT, FLAG_THIN, THEME_ALLTHEMES, THEME_BIT_NAMES, THEME_FANTASY, THEME_HEROIC, THEME_INHERIT, THEME_NAMES, THEME_PHRASE, THEME_PHRASE_EXT, THEME_SKILLONLYMASK, THEME_TECHNOLOGY, TIME_PASSIVE_LAPSE |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Places |
|---|
ALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES |
| Constructor Summary | |
|---|---|
StdBoardableShip()
|
|
| Method Summary | |
|---|---|
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 |
addEffect(Ability to)
Add a new effect to this object, whether permanent or temporary. |
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 |
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 |
protected void |
cloneFix(StdBoardableShip ship)
|
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
void |
delAllBehaviors()
Removes all behaviors from this object. |
void |
delAllEffects(boolean unInvoke)
Optionally uninvokes and then certainly removes all effects from this object. |
void |
delAllScripts()
Removes all executing scripts from this object. |
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. |
java.lang.String |
description(MOB viewerMob)
Returns the description, but as seen by the given viewer. |
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. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
java.lang.String |
displayText(MOB viewerMob)
Returns the displayText, but as seen by the given viewer. |
void |
dockHere(Room roomR)
Designates that this ship is landed and docked in the given planetary room. |
void |
eachBehavior(EachApplicable<Behavior> applier)
Applies the given code to each behavior on this object |
void |
eachEffect(EachApplicable<Ability> applier)
Applies the given code to each effect on this object |
void |
eachScript(EachApplicable<ScriptingEngine> applier)
Applies the given code to each scripting engine on this object |
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)
Retrieve 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. |
Pair<java.lang.Long,TimeClock.TimePeriod> |
finalBudget()
Returns a description of the buying budget of the shopkeeper. |
double[] |
finalDevalueRate()
Returns a double array 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. |
Area.State |
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. |
int |
getAtmosphere()
Returns the resource that represents the atmosphere of this area. |
int |
getAtmosphereCode()
Returns the resource (or -1) that represents the atmosphere of this area. |
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. |
Climate |
getClimateObj()
Returns a reference to the Climate object that represents the current and future weather for this area. |
int |
getClimateType()
Returns a bitmap of the climate for this place. |
int |
getClimateTypeCode()
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 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. |
java.util.Enumeration<Room> |
getFilledCompleteMap()
This method is the same as getFilledProperMap, except that it will load any Rooms that belong to the area but have not yet been loaded. |
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.lang.String |
getHomePortID()
Returns the room ID of the ships home port. |
Room |
getIsDocked()
Returns the Room where this ship is docked, or NULL if in space. |
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. |
java.lang.String |
getOwnerName()
Get the owner of the property, usually a clan name or a player name. |
CMObject |
getOwnerObject()
Get the actual clan or mob owner of the property, or null if it can not. |
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.util.List<Area> |
getParentsRecurse()
Returns a list 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()
|
int |
getPlayerLevel()
Returns a fake player-level, to be used instead of median or average actual mob level, for cases where you want an area to reflect its higher level mobs over low level trash. |
int |
getPrice()
The value of the property in base currency values |
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. |
Area |
getShipArea()
Space ships are unique in having an Item stand-in for dirt-side access, as well as an Area object. |
Item |
getShipItem()
Ships are unique in having an Item stand-in for port-side access, as well as an Area object. |
protected Area |
getShipItemArea()
|
protected Room |
getShipItemRoom()
|
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 |
getTheme()
Returns the technology level supported by this area. |
int |
getThemeCode()
Returns the technology level supported by this area. |
int |
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 |
getTitleID()
Returns a unique id for this particular title and the rooms is represents, even if the contents change. |
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 |
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 |
isProperlyEmpty()
Returns whether this area has any proper rooms at all, even if uncached. |
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 |
java.lang.String |
L(java.lang.String str,
java.lang.String... xs)
Localize an internal string -- shortcut. |
SLinkedList<Area> |
loadAreas(java.util.Collection<java.lang.String> loadableSet)
|
protected void |
lookOverBow(Room R,
CMMsg msg)
|
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 nice displayable name of this instance of this object |
java.lang.String |
Name()
The raw unmodified name of this object as stored in the database. |
java.lang.String |
name(MOB viewerMob)
Returns the name, but as seen by the given viewer. |
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. |
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. |
void |
renameShip(java.lang.String newName)
Renames the ship to something else |
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 |
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(Area.State 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 |
setAtmosphere(int resourceCode)
Sets the resource (or -1) that represents the atmosphere of this area. |
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 |
setCurrency(java.lang.String newCurrency)
Returns the default currency for this area, which will be referenced by shopkeepers, bankers, and other mobs. |
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 |
setDisplayText(java.lang.String newDisplayText)
Sets the raw string used to show what this object looks like in the room. |
void |
setDockableItem(Item dockableItem)
When a boardable ship area is created, it is bound to an item that resides in a room when docked, or possibly, always. |
void |
setExpirationDate(long time)
If this object expires, it should have a timestamp saying when it expires, in real time. |
void |
setHomePortID(java.lang.String portID)
Sets the room ID of the ships home port |
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 |
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 |
setOwnerName(java.lang.String owner)
Set the owner of the property, usually a clan name or a player name. |
void |
setPlayerLevel(int level)
Sets a fake player-level, to be used instead of median or average actual mob level, for cases where you want an area to reflect its higher level mobs over low level trash. |
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 |
setPrice(int price)
set the value of the property in base currency values |
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 object can be saved as a permanent aspect of its host. |
void |
setShipArea(java.lang.String xml)
Space ships are unique in having an Item stand-in for dirt-side access, as well as an Area object. |
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 |
setTheme(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. |
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. |
Room |
unDock(boolean moveToOutside)
Designates that this ship is no longer docked, and whether it should also be moved into its na |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] xtraValues
protected java.lang.String imageName
protected RoomnumberSet properRoomIDSet
protected java.lang.String currency
protected boolean amDestroyed
protected java.lang.String name
protected Room savedDock
protected java.lang.String displayText
protected java.lang.String description
protected java.lang.String miscText
protected SVector<Room> myRooms
protected Area.State flag
protected int tickStatus
protected java.lang.String author
protected PhyStats phyStats
protected PhyStats basePhyStats
protected Area me
protected BoardableShip shipItem
protected SVector<Ability> affects
protected SVector<Behavior> behaviors
protected SVector<ScriptingEngine> scripts
protected SLinkedList<Area> parents
protected STreeMap<java.lang.String,java.lang.String> blurbFlags
protected java.util.List<Pair<Room,java.lang.Integer>> shipExitCache
public static final java.lang.String[] empty
| Constructor Detail |
|---|
public StdBoardableShip()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic Room getIsDocked()
BoardableShip
getIsDocked in interface BoardableShippublic void setClimateObj(Climate obj)
Area
setClimateObj in interface Areaobj - a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimateprotected Area getShipItemArea()
protected Room getShipItemRoom()
public 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 setDockableItem(Item dockableItem)
BoardableShip
setDockableItem in interface BoardableShipdockableItem - the item that acts as dockable itempublic 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 int getAtmosphereCode()
Places
getAtmosphereCode in interface PlacesRawMaterial.MATERIAL_GASpublic void setAtmosphere(int resourceCode)
Places
setAtmosphere in interface PlacesresourceCode - the RawMaterial resource to useRawMaterial.MATERIAL_GASpublic Item getShipItem()
BoardableShip
getShipItem in interface BoardableShippublic int getAtmosphere()
Places
getAtmosphere in interface PlacesRawMaterial.MATERIAL_GASpublic long flags()
Area
flags in interface AreaArea.FLAG_THINpublic 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 int getClimateTypeCode()
Places
getClimateTypeCode in interface PlacesPlaces.CLIMASK_COLDpublic int getClimateType()
Places
getClimateType in interface PlacesPlaces.CLIMASK_COLDpublic void setClimateType(int newClimateType)
Places
setClimateType in interface PlacesnewClimateType - a CLIMASK bitmapPlaces.CLIMASK_COLDpublic java.lang.String name()
Tickable
name in interface CMObjectname 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 EnvironmentalTickable.name()public void renameShip(java.lang.String newName)
BoardableShip
renameShip in interface BoardableShipnewName - the new ship namepublic 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 Area getShipArea()
BoardableShip
getShipArea in interface BoardableShippublic void setShipArea(java.lang.String xml)
BoardableShip
setShipArea in interface BoardableShipxml - area xml for the shippublic void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic int getThemeCode()
Area
getThemeCode in interface AreaArea.THEME_FANTASYpublic int getTheme()
Area
getTheme in interface AreaArea.THEME_FANTASYpublic void setTheme(int level)
Area
setTheme 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 getHomePortID()
BoardableShip
getHomePortID in interface BoardableShippublic void setHomePortID(java.lang.String portID)
BoardableShip
setHomePortID in interface BoardableShipportID - the ships home portpublic 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(Area.State newState)
Area
setAreaState in interface AreanewState - the new state to put this entire area intoArea.Statepublic Area.State getAreaState()
Area
getAreaState in interface AreaArea.Statepublic 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(StdBoardableShip 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 java.lang.String displayText(MOB viewerMob)
Physical
displayText in interface PhysicalviewerMob - the mob viewing the physical thing
Environmental.displayText()public java.lang.String name(MOB viewerMob)
Physical
name in interface PhysicalviewerMob - the mob viewing the physical thing
Tickable.name()public 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 objectpublic java.lang.String description(MOB viewerMob)
Physical
description in interface PhysicalviewerMob - the mob viewing the physical thing
Environmental.description()
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.
protected void lookOverBow(Room R,
CMMsg msg)
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.Enumeration<Room> getFilledCompleteMap()
Area
getFilledCompleteMap in interface AreaArea.getFilledProperMap(),
Roompublic java.util.List<Room> getMetroCollection()
public int 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,
TickableGroup
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 void eachEffect(EachApplicable<Ability> applier)
Affectable
eachEffect in interface Affectableapplier - code to execute against each objectpublic void delAllEffects(boolean unInvoke)
Affectable
delAllEffects in interface AffectableunInvoke - send true to uninvoke before deletingpublic 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 AffectableID - the Ability ID to look for in effects
Ability,
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 roomR)
BoardableShip
dockHere in interface BoardableShiproomR - the coordinate toom in which the ship is docked.public Room unDock(boolean moveToOutside)
BoardableShip
unDock in interface BoardableShipmoveToOutside - true to put in space/ocean, or false to leave in limbo
public 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 void delAllBehaviors()
Behavable
delAllBehaviors in interface Behavablepublic 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.Statspublic java.lang.StringBuffer getAreaStats()
Area
getAreaStats in interface AreaArea.getAreaIStats()public int getPlayerLevel()
Area
getPlayerLevel in interface AreaArea.setPlayerLevel(int)public void setPlayerLevel(int level)
Area
setPlayerLevel in interface Arealevel - the player level, or 0Area.getPlayerLevel()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 BehavableID - the Behavior ID to look for
Behavior,
CMObject.ID()public void eachBehavior(EachApplicable<Behavior> applier)
Behavable
eachBehavior in interface Behavableapplier - code to execute against each objectpublic 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 void delAllScripts()
Behavable
delAllScripts in interface Behavablepublic 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 eachScript(EachApplicable<ScriptingEngine> applier)
Behavable
eachScript in interface Behavableapplier - code to execute against each objectpublic 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 boolean isProperlyEmpty()
Area
isProperlyEmpty in interface Areapublic 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 java.util.Enumeration<Area> getChildren()
Area
getChildren 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)
protected 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 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 Pair<java.lang.Long,TimeClock.TimePeriod> finalBudget()
Economics
finalBudget in interface Economicspublic double[] finalDevalueRate()
Economics
finalDevalueRate in interface Economics
public java.lang.String L(java.lang.String str,
java.lang.String... xs)
Environmental
L in interface Environmentalstr - the string to translatexs - the array of variables to replace
Call with the string to translate, which may contain variables of the form @x1, @x2, etc. The array in xs
is then used to replace the variables AFTER the string is translated.public 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)public int getPrice()
PrivateProperty
getPrice in interface PrivatePropertypublic void setPrice(int price)
PrivateProperty
setPrice in interface PrivatePropertyprice - the price of the propertypublic java.lang.String getOwnerName()
PrivateProperty
getOwnerName in interface PrivatePropertypublic void setOwnerName(java.lang.String owner)
PrivateProperty
setOwnerName in interface PrivatePropertyowner - the name of the owner of the propertypublic CMObject getOwnerObject()
PrivateProperty
getOwnerObject in interface PrivatePropertypublic java.lang.String getTitleID()
PrivateProperty
getTitleID in interface PrivateProperty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||