|
|||||||||
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 CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public Room getIsDocked()
BoardableShip
getIsDocked
in interface BoardableShip
public void setClimateObj(Climate obj)
Area
setClimateObj
in interface Area
obj
- a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimate
protected Area getShipItemArea()
protected Room getShipItemRoom()
public Climate getClimateObj()
Area
getClimateObj
in interface Area
Climate
public void setAuthorID(java.lang.String authorID)
Area
setAuthorID
in interface Area
authorID
- the author of the areapublic java.lang.String getAuthorID()
Area
getAuthorID
in interface Area
public TimeClock getTimeObj()
Area
getTimeObj
in interface Area
TimeClock
public void setDockableItem(Item dockableItem)
BoardableShip
setDockableItem
in interface BoardableShip
dockableItem
- the item that acts as dockable itempublic void setTimeObj(TimeClock obj)
Area
setTimeObj
in interface Area
obj
- a com.planet_ink.coffee_mud.Common.interfaces.TimeClock objectTimeClock
public void setCurrency(java.lang.String newCurrency)
Area
setCurrency
in interface Area
newCurrency
- a currency name/definitionpublic java.lang.String getCurrency()
Area
getCurrency
in interface Area
public long expirationDate()
Environmental
expirationDate
in interface Environmental
Environmental.setExpirationDate(long)
public void setExpirationDate(long time)
Environmental
setExpirationDate
in interface Environmental
time
- the time stamp when this thing expiresEnvironmental.expirationDate()
public int getAtmosphereCode()
Places
getAtmosphereCode
in interface Places
RawMaterial.MATERIAL_GAS
public void setAtmosphere(int resourceCode)
Places
setAtmosphere
in interface Places
resourceCode
- the RawMaterial resource to useRawMaterial.MATERIAL_GAS
public Item getShipItem()
BoardableShip
getShipItem
in interface BoardableShip
public int getAtmosphere()
Places
getAtmosphere
in interface Places
RawMaterial.MATERIAL_GAS
public long flags()
Area
flags
in interface Area
Area.FLAG_THIN
public void destroy()
Contingent
destroy
in interface Contingent
public boolean amDestroyed()
Contingent
amDestroyed
in interface Contingent
public boolean isSavable()
Contingent
isSavable
in interface Contingent
public void setSavable(boolean truefalse)
Contingent
setSavable
in interface Contingent
truefalse
- whether this behavior can be saved as part of its host.Contingent.isSavable()
public int getClimateTypeCode()
Places
getClimateTypeCode
in interface Places
Places.CLIMASK_COLD
public int getClimateType()
Places
getClimateType
in interface Places
Places.CLIMASK_COLD
public void setClimateType(int newClimateType)
Places
setClimateType
in interface Places
newClimateType
- a CLIMASK bitmapPlaces.CLIMASK_COLD
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public void setName(java.lang.String newName)
Environmental
setName
in interface Environmental
newName
- the raw base name of this object on the map.Environmental.Name()
public java.lang.String Name()
Environmental
Name
in interface Environmental
Tickable.name()
public void renameShip(java.lang.String newName)
BoardableShip
renameShip
in interface BoardableShip
newName
- the new ship namepublic PhyStats phyStats()
Affectable
phyStats
in interface Affectable
Affectable.basePhyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public PhyStats basePhyStats()
Affectable
basePhyStats
in interface Affectable
Affectable.phyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
public Area getShipArea()
BoardableShip
getShipArea
in interface BoardableShip
public void setShipArea(java.lang.String xml)
BoardableShip
setShipArea
in interface BoardableShip
xml
- area xml for the shippublic void setBasePhyStats(PhyStats newStats)
Affectable
setBasePhyStats
in interface Affectable
newStats
- a set of state fieldsAffectable.phyStats()
,
Affectable.recoverPhyStats()
,
PhyStats
public int getThemeCode()
Area
getThemeCode
in interface Area
Area.THEME_FANTASY
public int getTheme()
Area
getTheme
in interface Area
Area.THEME_FANTASY
public void setTheme(int level)
Area
setTheme
in interface Area
level
- the bitmap representing the tech levelArea.THEME_FANTASY
public java.lang.String image()
Environmental
image
in interface Environmental
public java.lang.String rawImage()
Environmental
rawImage
in interface Environmental
public void setImage(java.lang.String newImage)
Environmental
setImage
in interface Environmental
newImage
- the raw name of the mxp image filepublic java.lang.String getHomePortID()
BoardableShip
getHomePortID
in interface BoardableShip
public void setHomePortID(java.lang.String portID)
BoardableShip
setHomePortID
in interface BoardableShip
portID
- the ships home portpublic java.lang.String getArchivePath()
Area
getArchivePath
in interface Area
public void setArchivePath(java.lang.String pathFile)
Area
setArchivePath
in interface Area
pathFile
- the name of the .cmare filename to usepublic void setAreaState(Area.State newState)
Area
setAreaState
in interface Area
newState
- the new state to put this entire area intoArea.State
public Area.State getAreaState()
Area
getAreaState
in interface Area
Area.State
public boolean amISubOp(java.lang.String username)
Area
amISubOp
in interface Area
username
- a players Name
Area.addSubOp(String)
public java.lang.String getSubOpList()
Area
getSubOpList
in interface Area
Area.addSubOp(String)
public void setSubOpList(java.lang.String list)
Area
setSubOpList
in interface Area
list
- a semicolon delimited list of player Names.Area.addSubOp(String)
public void addSubOp(java.lang.String username)
Area
addSubOp
in interface Area
username
- a players NameArea.delSubOp(String)
public void delSubOp(java.lang.String username)
Area
delSubOp
in interface Area
username
- a players NameArea.addSubOp(String)
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
Environmental.text()
protected void cloneFix(StdBoardableShip ship)
public CMObject copyOf()
CMObject
copyOf
in interface CMObject
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
public void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText
in interface Environmental
newDisplayText
- the string describing how this object looks in the roompublic java.lang.String displayText(MOB viewerMob)
Physical
displayText
in interface Physical
viewerMob
- the mob viewing the physical thing
Environmental.displayText()
public java.lang.String name(MOB viewerMob)
Physical
name
in interface Physical
viewerMob
- 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 Environmental
CMParms
,
Environmental.text()
,
Environmental.setMiscText(String)
public java.lang.String text()
Environmental
text
in interface Environmental
public void setMiscText(java.lang.String newMiscText)
Environmental
setMiscText
in interface Environmental
newMiscText
- either an open internal text string, or XMLpublic java.lang.String description()
Environmental
description
in interface Environmental
public void setDescription(java.lang.String newDescription)
Environmental
setDescription
in interface Environmental
newDescription
- the basic detail description of this objectpublic java.lang.String description(MOB viewerMob)
Physical
description
in interface Physical
viewerMob
- the mob viewing the physical thing
Environmental.description()
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
myHost
- 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 Area
flag
- the name of the flag to return
public int numBlurbFlags()
Area
numBlurbFlags
in interface Area
public int numAllBlurbFlags()
Area
numAllBlurbFlags
in interface Area
public java.util.Enumeration<java.lang.String> areaBlurbFlags()
Area
areaBlurbFlags
in interface Area
Area.getBlurbFlag(String)
public void addBlurbFlag(java.lang.String flagPlusDesc)
Area
addBlurbFlag
in interface Area
flagPlusDesc
- the flag name, space, followed by definitionpublic void delBlurbFlag(java.lang.String flagOnly)
Area
delBlurbFlag
in interface Area
flagOnly
- 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 MsgListener
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public java.util.Enumeration<Room> getCompleteMap()
Area
getCompleteMap
in interface Area
Area.getProperMap()
,
Room
public java.util.Enumeration<Room> getFilledCompleteMap()
Area
getFilledCompleteMap
in interface Area
Area.getFilledProperMap()
,
Room
public java.util.List<Room> getMetroCollection()
public int getTickStatus()
Tickable
getTickStatus
in interface Tickable
Tickable.tick(Tickable, int)
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
ticking
- 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 StatsAffecting
affected
- 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 StatsAffecting
affectedMob
- 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 StatsAffecting
affectedMob
- 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 Affectable
to
- The ability object to add as an effect.Ability
,
Affectable.recoverPhyStats()
public void addEffect(Ability to)
Affectable
addEffect
in interface Affectable
to
- The ability object to add as an effect.Ability
,
Affectable.recoverPhyStats()
public void delEffect(Ability to)
Affectable
delEffect
in interface Affectable
to
- The ability object to remove as an effect on this objectAbility
,
Affectable.recoverPhyStats()
public void eachEffect(EachApplicable<Ability> applier)
Affectable
eachEffect
in interface Affectable
applier
- code to execute against each objectpublic void delAllEffects(boolean unInvoke)
Affectable
delAllEffects
in interface Affectable
unInvoke
- send true to uninvoke before deletingpublic int numEffects()
Affectable
numEffects
in interface Affectable
Ability
public java.util.Enumeration<Ability> effects()
Affectable
effects
in interface Affectable
Ability
public Ability fetchEffect(int index)
Affectable
fetchEffect
in interface Affectable
index
- which object to return
Ability
,
Affectable.numEffects()
public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect
in interface Affectable
ID
- the Ability ID to look for in effects
Ability
,
CMObject.ID()
public void fillInAreaRooms()
Area
fillInAreaRooms
in interface Area
public boolean inMyMetroArea(Area A)
Area
inMyMetroArea
in interface Area
A
- an Area object
public void fillInAreaRoom(Room R)
Area
fillInAreaRoom
in interface Area
R
- the Room object to "fill-in"Room
public void dockHere(Room roomR)
BoardableShip
dockHere
in interface BoardableShip
roomR
- the coordinate toom in which the ship is docked.public Room unDock(boolean moveToOutside)
BoardableShip
unDock
in interface BoardableShip
moveToOutside
- true to put in space/ocean, or false to leave in limbo
public RoomnumberSet getCachedRoomnumbers()
Area
getCachedRoomnumbers
in interface Area
public RoomnumberSet getProperRoomnumbers()
Area
getProperRoomnumbers
in interface Area
RoomnumberSet
public java.lang.String getNewRoomID(Room startRoom, int direction)
Area
getNewRoomID
in interface Area
startRoom
- the room connected to the upcoming new one (or null)direction
- the direction from the startRoom the new one will go
Room
public void addBehavior(Behavior to)
addBehavior
in interface Behavable
to
- The behavior object to add.Behavior
,
Affectable.recoverPhyStats()
public void delBehavior(Behavior to)
Behavable
delBehavior
in interface Behavable
to
- The behavior object to remove.Behavior
,
Affectable.recoverPhyStats()
public void delAllBehaviors()
Behavable
delAllBehaviors
in interface Behavable
public int numBehaviors()
Behavable
numBehaviors
in interface Behavable
Behavior
public java.util.Enumeration<Behavior> behaviors()
Behavable
behaviors
in interface Behavable
Behavior
public int maxRange()
Environmental
maxRange
in interface Environmental
public int minRange()
Environmental
minRange
in interface Environmental
public int[] getAreaIStats()
Area
getAreaIStats
in interface Area
Area.Stats
public java.lang.StringBuffer getAreaStats()
Area
getAreaStats
in interface Area
Area.getAreaIStats()
public int getPlayerLevel()
Area
getPlayerLevel
in interface Area
Area.setPlayerLevel(int)
public void setPlayerLevel(int level)
Area
setPlayerLevel
in interface Area
level
- the player level, or 0Area.getPlayerLevel()
public Behavior fetchBehavior(int index)
Behavable
fetchBehavior
in interface Behavable
index
- which object to return
Behavior
,
Behavable.numBehaviors()
public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior
in interface Behavable
ID
- the Behavior ID to look for
Behavior
,
CMObject.ID()
public void eachBehavior(EachApplicable<Behavior> applier)
Behavable
eachBehavior
in interface Behavable
applier
- code to execute against each objectpublic void addScript(ScriptingEngine S)
addScript
in interface Behavable
S
- the scripting engine, fully populated, to addScriptingEngine
public void delScript(ScriptingEngine S)
Behavable
delScript
in interface Behavable
S
- the specific scripting engine to removeScriptingEngine
public void delAllScripts()
Behavable
delAllScripts
in interface Behavable
public int numScripts()
Behavable
numScripts
in interface Behavable
public java.util.Enumeration<ScriptingEngine> scripts()
Behavable
scripts
in interface Behavable
ScriptingEngine
public ScriptingEngine fetchScript(int x)
Behavable
fetchScript
in interface Behavable
x
- which script to return
ScriptingEngine
public void eachScript(EachApplicable<ScriptingEngine> applier)
Behavable
eachScript
in interface Behavable
applier
- code to execute against each objectpublic void addProperRoom(Room R)
Area
addProperRoom
in interface Area
R
- the Room to add.Area.addMetroRoom(Room)
,
Room
public void delProperRoom(Room R)
Area
delProperRoom
in interface Area
R
- the Room to delete.Area.delMetroRoom(Room)
,
Room
public void addProperRoomnumber(java.lang.String roomID)
Area
addProperRoomnumber
in interface Area
roomID
- the roomID of a room which should belong to this Area.public void delProperRoomnumber(java.lang.String roomID)
Area
delProperRoomnumber
in interface Area
roomID
- the roomID of a room which should no longer belong to this Area.public boolean isRoom(Room R)
Area
isRoom
in interface Area
R
- the Room object to check for
Room
public Room getRoom(java.lang.String roomID)
Area
getRoom
in interface Area
roomID
- the roomID of the room to return.
Room
public int metroSize()
Area
metroSize
in interface Area
public int properSize()
Area
properSize
in interface Area
public int numberOfProperIDedRooms()
Area
numberOfProperIDedRooms
in interface Area
public Room getRandomMetroRoom()
Area
getRandomMetroRoom
in interface Area
Room
public Room getRandomProperRoom()
Area
getRandomProperRoom
in interface Area
Room
public boolean isProperlyEmpty()
Area
isProperlyEmpty
in interface Area
public void setProperRoomnumbers(RoomnumberSet set)
Area
setProperRoomnumbers
in interface Area
set
- a com.planet_ink.coffee_mud.Common.interfaces.RoomnumberSet objectRoomnumberSet
public RoomnumberSet getMetroRoomnumbers()
public java.util.Enumeration<Room> getMetroMap()
Area
getMetroMap
in interface Area
Room
public void addMetroRoomnumber(java.lang.String roomID)
Area
addMetroRoomnumber
in interface Area
roomID
- a roomid for a roompublic void delMetroRoomnumber(java.lang.String roomID)
Area
delMetroRoomnumber
in interface Area
roomID
- a roomid for a former roompublic void addMetroRoom(Room R)
Area
addMetroRoom
in interface Area
R
- a Room object from one of this areas child areas.Room
public void delMetroRoom(Room R)
Area
delMetroRoom
in interface Area
R
- a Room object formerly from one of this areas child areas.Room
public java.util.Enumeration<Room> getProperMap()
Area
getProperMap
in interface Area
Area.getCompleteMap()
,
Room
public java.util.Enumeration<Room> getFilledProperMap()
Area
getFilledProperMap
in interface Area
Area.getProperMap()
,
Room
public java.util.Enumeration<java.lang.String> subOps()
Area
subOps
in interface Area
public java.util.Enumeration<Area> getChildren()
Area
getChildren
in interface Area
public Area getChild(java.lang.String named)
Area
getChild
in interface Area
named
- the name of an Area
public boolean isChild(Area named)
Area
isChild
in interface Area
named
- an Area object
public boolean isChild(java.lang.String named)
Area
isChild
in interface Area
named
- the name of an Area
public void addChild(Area area)
Area
addChild
in interface Area
area
- an Area objectpublic void removeChild(Area area)
Area
removeChild
in interface Area
area
- an Area objectpublic boolean canChild(Area area)
Area
canChild
in interface Area
area
- 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 Area
public java.util.List<Area> getParentsRecurse()
Area
getParentsRecurse
in interface Area
public Area getParent(java.lang.String named)
Area
getParent
in interface Area
named
- the name of an Area
public boolean isParent(Area area)
Area
isParent
in interface Area
area
- an Area object
public boolean isParent(java.lang.String named)
Area
isParent
in interface Area
named
- the name of an Area
public void addParent(Area area)
Area
addParent
in interface Area
area
- an Area objectpublic void removeParent(Area area)
Area
removeParent
in interface Area
area
- an Area objectpublic boolean canParent(Area area)
Area
canParent
in interface Area
area
- an Area to check
public java.lang.String prejudiceFactors()
Economics
prejudiceFactors
in interface Economics
public void setPrejudiceFactors(java.lang.String factors)
Economics
setPrejudiceFactors
in interface Economics
factors
- the string describing price prejudicingpublic java.lang.String[] itemPricingAdjustments()
Economics
itemPricingAdjustments
in interface Economics
public void setItemPricingAdjustments(java.lang.String[] factors)
Economics
setItemPricingAdjustments
in interface Economics
factors
- the string describing price prejudicingpublic java.lang.String ignoreMask()
Economics
ignoreMask
in interface Economics
MaskingLibrary
public void setIgnoreMask(java.lang.String factors)
Economics
setIgnoreMask
in interface Economics
factors
- the mask to useMaskingLibrary
public java.lang.String budget()
Economics
budget
in interface Economics
public void setBudget(java.lang.String factors)
Economics
setBudget
in interface Economics
factors
- the string for the shopkeepers buying budgetpublic java.lang.String devalueRate()
Economics
devalueRate
in interface Economics
public void setDevalueRate(java.lang.String factors)
Economics
setDevalueRate
in interface Economics
factors
- the price dropping percentage rule for this shopkeeperpublic int invResetRate()
Economics
invResetRate
in interface Economics
public void setInvResetRate(int ticks)
Economics
setInvResetRate
in interface Economics
ticks
- the number of ticks between total resets of inventorypublic int finalInvResetRate()
Economics
finalInvResetRate
in interface Economics
public java.lang.String finalPrejudiceFactors()
Economics
finalPrejudiceFactors
in interface Economics
public java.lang.String finalIgnoreMask()
Economics
finalIgnoreMask
in interface Economics
MaskingLibrary
public java.lang.String[] finalItemPricingAdjustments()
Economics
finalItemPricingAdjustments
in interface Economics
public Pair<java.lang.Long,TimeClock.TimePeriod> finalBudget()
Economics
finalBudget
in interface Economics
public double[] finalDevalueRate()
Economics
finalDevalueRate
in interface Economics
public java.lang.String L(java.lang.String str, java.lang.String... xs)
Environmental
L
in interface Environmental
str
- 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 Modifiable
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean isStat(java.lang.String code)
Modifiable
isStat
in interface Modifiable
code
- 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 Modifiable
code
- the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
E
- the object to compare this one to
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
public int getPrice()
PrivateProperty
getPrice
in interface PrivateProperty
public void setPrice(int price)
PrivateProperty
setPrice
in interface PrivateProperty
price
- the price of the propertypublic java.lang.String getOwnerName()
PrivateProperty
getOwnerName
in interface PrivateProperty
public void setOwnerName(java.lang.String owner)
PrivateProperty
setOwnerName
in interface PrivateProperty
owner
- the name of the owner of the propertypublic CMObject getOwnerObject()
PrivateProperty
getOwnerObject
in interface PrivateProperty
public 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 |