Area, Affectable, Behavable, CMObject, Contingent, Economics, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Places, StatsAffecting, Tickable, java.lang.Cloneable, java.lang.Comparable<CMObject>StdAutoGenInstance, StdGridArea, StdThinArea, StdTimeZonepublic class StdArea extends java.lang.Object implements Area
| Modifier and Type | Class | Description |
|---|---|---|
static class |
StdArea.AreaInstanceChild |
Class to hold a reference to a child area instance,
and the inhabitants who belong there.
|
protected static class |
StdArea.IStatContext |
Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator, Area.State, Area.Stats| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
_name |
|
protected SVector<Ability> |
affects |
|
protected boolean |
amDestroyed |
|
protected java.lang.String |
archPath |
|
protected int |
atmosphere |
|
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 |
budget |
|
protected SLinkedList<Area> |
children |
|
protected int |
climask |
|
protected Climate |
climateObj |
|
protected java.lang.String |
currency |
|
protected int |
derivedAtmo |
|
protected int |
derivedClimate |
|
protected int |
derivedTheme |
|
protected java.lang.String |
description |
|
protected double[] |
devalueRate |
|
protected static java.lang.String[] |
empty |
|
protected static java.util.Map<java.lang.String,int[]> |
emptyPiety |
|
protected static int[] |
emptyStats |
|
protected long |
expirationDate |
|
protected Area.State |
flag |
|
protected java.lang.String |
ignoreMask |
|
protected java.lang.String |
imageName |
|
protected int |
invResetRate |
|
protected java.lang.String[] |
itemPricingAdjs |
|
protected static Area |
lastComplainer |
|
protected long |
lastPlayerTime |
|
protected Area |
me |
|
protected RoomnumberSet |
metroRoomIDSet |
|
protected java.lang.String |
miscText |
|
protected TimeClock |
myClock |
|
protected SLinkedList<Area> |
parents |
|
protected long |
passiveLapseMs |
|
protected PhyStats |
phyStats |
|
protected int |
playerLevel |
|
protected java.lang.String |
prejudiceFactors |
|
protected RoomnumberSet |
properRoomIDSet |
|
protected STreeMap<java.lang.String,Room> |
properRooms |
|
protected static java.util.Comparator<Room> |
roomComparator |
|
protected SVector<ScriptingEngine> |
scripts |
|
protected static java.lang.String[] |
STDAREACODES |
|
protected SVector<java.lang.String> |
subOps |
|
protected int |
theme |
|
protected char |
threadId |
|
protected int |
tickStatus |
|
protected java.lang.String[] |
xtraValues |
DEFAULT_TIME_PASSIVE_LAPSE, 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_TECHNOLOGYidConverterALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_VOID, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES, placeComparatorSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET| Constructor | Description |
|---|---|
StdArea() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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.
|
protected void |
buildAreaIMobStats(StdArea.IStatContext ctx,
MOB mob) |
|
protected int[] |
buildAreaIStats() |
|
protected java.util.Map<java.lang.String,int[]> |
buildAreaPiety() |
|
protected java.lang.StringBuffer |
buildAreaStats(int[] statData) |
|
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(StdArea areaA) |
|
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 |
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 |
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.
|
protected Pair<java.lang.Long,TimeClock.TimePeriod> |
finalAreaBudget(Area A) |
|
protected double[] |
finalAreaDevalueRate(Area A) |
|
protected java.lang.String |
finalCurrency(Area A) |
|
protected java.lang.String |
finalIgnoreMask(Area A) |
|
protected int |
finalInvResetRate(Area A) |
|
protected java.lang.String[] |
finalItemPricingAdjustments(Area A) |
|
protected java.lang.String |
finalPrejudiceFactors(Area A) |
|
long |
flags() |
Return basic attributed flag about the area.
|
java.lang.String |
genericName() |
Returns a generic name for this object, devoid of its particular
identifying details.
|
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.
|
protected java.util.Iterator<Area> |
getChildrenIterator() |
|
protected java.util.Iterator<Area> |
getChildrenReverseIterator() |
|
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.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.
|
Pair<java.lang.Long,TimeClock.TimePeriod> |
getFinalBudget() |
Returns a description of the buying budget of the shopkeeper.
|
java.lang.String |
getFinalCurrency() |
Gets the derived currency for this object, which will be referenced by
shopkeepers, bankers, and other mobs.
|
double[] |
getFinalDevalueRate() |
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 |
getFinalIgnoreMask() |
Returns the mask used to determine if a customer is ignored by the ShopKeeper.
|
int |
getFinalInvResetRate() |
Returns the number of ticks between totally resetting this ShopKeepers
inventory back to what it was.
|
java.lang.String[] |
getFinalItemPricingAdjustments() |
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 |
getFinalPrejudiceFactors() |
A string describing how pricing for this ShopKeeper will differ based on customer attributes
such as race.
|
java.util.Enumeration<Room> |
getMetroMap() |
Returns an enumerator for all previously loaded rooms that
properly belongs to this area AND to any child areas.
|
java.lang.String |
getNewRoomID(Room startRoom,
int direction) |
Generates a new RoomID for a new Room in this area.
|
Area |
getParent(java.lang.String named) |
Returns the named Parent Area object for this Area
A Parent Area passes down certain behaviors and property effects to its children
|
java.util.Enumeration<Area> |
getParents() |
An enumerator list of Area objects representing the Parent Areas of this
Area.
|
protected java.util.Iterator<Area> |
getParentsIterator() |
|
java.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 |
getPercentRoomsCached() |
|
protected java.util.Map<java.lang.String,int[]> |
getPiety() |
|
int |
getPiety(java.lang.String deityName) |
Returns the number of registered followers of the given
deity are in the given area name.
|
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.
|
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.
|
java.lang.String |
getRawBbudget() |
Returns a description of the buying budget of the shopkeeper.
|
java.lang.String |
getRawCurrency() |
Gets the default currency for this object, which will be referenced by
shopkeepers, bankers, and other mobs.
|
java.lang.String |
getRawDevalueRate() |
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 |
getRawIgnoreMask() |
Returns the mask used to determine if a customer is ignored by the ShopKeeper.
|
int |
getRawInvResetRate() |
Returns the number of ticks between totally resetting this ShopKeepers
inventory back to what it was.
|
java.lang.String[] |
getRawItemPricingAdjustments() |
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 |
getRawPrejudiceFactors() |
A string describing how pricing for this ShopKeeper will differ based on customer attributes
such as race.
|
Room |
getRoom(java.lang.String roomID) |
Returns a room of the given roomID, if it has already been added by calling
addProperRoom.
|
protected Room |
getRoomBase(java.lang.String roomID) |
|
int |
getSaveStatIndex() |
Returns the index into the stat codes array where extra savable fields begins.
|
java.lang.String |
getStat(java.lang.String code) |
An alternative means of retreiving the values of those fields on this object which are modifiable at
run-time by builders.
|
java.lang.String[] |
getStatCodes() |
Returns an array of the string names of those fields which are modifiable on this object at run-time by
builders.
|
java.lang.String |
getSubOpList() |
Returns a semicolon delimited list of player Names that represent the SubOp
list for this area.
|
int |
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 |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
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.
|
protected boolean |
isAreaLocation(Environmental E) |
|
boolean |
isChild(Area area) |
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 |
isChildRecurse(java.lang.String named) |
Returns whether the Area named is a Child of this Area,
or child of a child of this area, recursively.
|
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 |
isParentRecurse(java.lang.String named) |
Returns whether the Area named is a Parent of this Area,
or parent of a parent of this area, recursively.
|
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 |
isRoomCached(java.lang.String roomID) |
Returns whether the given room id object belongs to this Area, and has been
loaded into the memory cache.
|
protected boolean |
isRoomID(java.lang.String roomID) |
|
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 |
L(java.lang.String str,
java.lang.String... xs) |
Localize an internal string -- shortcut.
|
SLinkedList<Area> |
loadAreas(java.util.Collection<java.lang.String> loadableSet) |
|
int |
maxRange() |
the modified 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 modified 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(MOB viewerMob) |
Returns the name, but as seen by the given viewer.
|
java.lang.String |
Name() |
The raw unmodified name of this object as stored in the database.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
int |
numAllBlurbFlags() |
A blurb flag is a run-time modifiable set of strings that can be added
to an area in order to display them in the HELP entry for an area.
|
int |
numBehaviors() |
The number of behaviors this object has.
|
int |
numberOfProperIDedRooms() |
Returns a count of all cached rooms that belong to this area, excluding skys
and auto-generated rooms.
|
int |
numBlurbFlags() |
A blurb flag is a run-time modifiable set of strings that can be added
to an area in order to display them in the HELP entry for an area.
|
int |
numEffects() |
Returns the number of ability objects listed as effects on this object.
|
int |
numScripts() |
Return the number of scripts running on this object
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
PhyStats |
phyStats() |
Object containing a set of current, modified, usable, mostly numeric fields.
|
int |
properSize() |
Returns a count of all cached rooms that belong to this area, which have been
loaded.
|
java.lang.String |
rawImage() |
Returns the raw name of the image file to display for this object when MXP is used.
|
void |
recoverPhyStats() |
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to
all surrounding objects with affectPhyStats(Environmental,PhyStats) method.
|
void |
removeChild(Area area) |
Designates the given Area object as no longer being Child of this one.
|
void |
removeParent(Area area) |
Designates the given Area object as no longer being Parent of this one.
|
boolean |
sameAs(Environmental E) |
Whether this object instance is functionally identical to the object passed in.
|
java.util.Enumeration<ScriptingEngine> |
scripts() |
Returns an enumerator of all the scripts on this object.
|
void |
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 object, 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 |
setExpirationDate(long time) |
If this object expires, it should have a timestamp saying when it expires, in real time.
|
void |
setIgnoreMask(java.lang.String factors) |
Sets the mask used to determine if a customer is ignored by the ShopKeeper.
|
void |
setImage(java.lang.String newImage) |
Sets the raw name of the image file to display for this object when MXP is used.
|
void |
setInvResetRate(int ticks) |
Sets the number of ticks between totally resetting this ShopKeepers
inventory back to what it was.
|
void |
setItemPricingAdjustments(java.lang.String[] factors) |
Sets the string set describing how pricing for this ShopKeeper will differ based on item masks
The format for each string is a floating point number followers by a space and a zapper mask
|
void |
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 |
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 |
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 |
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.
|
protected java.lang.String _name
protected java.lang.String description
protected java.lang.String miscText
protected java.lang.String archPath
protected java.lang.String imageName
protected int playerLevel
protected int theme
protected int atmosphere
protected int derivedTheme
protected int derivedAtmo
protected int climask
protected int derivedClimate
protected int tickStatus
protected long expirationDate
protected long passiveLapseMs
protected long lastPlayerTime
protected Area.State flag
protected java.lang.String[] xtraValues
protected java.lang.String author
protected java.lang.String currency
protected double[] devalueRate
protected java.lang.String budget
protected java.lang.String ignoreMask
protected java.lang.String prejudiceFactors
protected int invResetRate
protected boolean amDestroyed
protected final char threadId
protected PhyStats phyStats
protected PhyStats basePhyStats
protected STreeMap<java.lang.String,java.lang.String> blurbFlags
protected RoomnumberSet properRoomIDSet
protected RoomnumberSet metroRoomIDSet
protected SLinkedList<Area> children
protected SLinkedList<Area> parents
protected SVector<java.lang.String> subOps
protected SVector<ScriptingEngine> scripts
protected Area me
protected TimeClock myClock
protected Climate climateObj
protected java.lang.String[] itemPricingAdjs
protected static final int[] emptyStats
protected static final java.lang.String[] empty
protected static volatile Area lastComplainer
protected static final java.util.Map<java.lang.String,int[]> emptyPiety
protected static final java.util.Comparator<Room> roomComparator
protected static final java.lang.String[] STDAREACODES
public java.lang.String ID()
CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic long flags()
Areaflags in interface AreaArea.FLAG_THINpublic void setAuthorID(java.lang.String authorID)
AreasetAuthorID in interface AreaauthorID - the author of the areapublic java.lang.String getAuthorID()
AreagetAuthorID in interface Areapublic void setCurrency(java.lang.String newCurrency)
EconomicssetCurrency in interface EconomicsnewCurrency - a currency name/definitionprotected java.lang.String finalCurrency(Area A)
public java.lang.String getFinalCurrency()
EconomicsgetFinalCurrency in interface Economicspublic java.lang.String getRawCurrency()
EconomicsgetRawCurrency in interface Economicspublic int getAtmosphereCode()
PlacesgetAtmosphereCode in interface PlacesRawMaterial.MATERIAL_GASpublic void setAtmosphere(int resourceCode)
PlacessetAtmosphere in interface PlacesresourceCode - the RawMaterial resource to useRawMaterial.MATERIAL_GASpublic int getAtmosphere()
PlacesgetAtmosphere in interface PlacesRawMaterial.MATERIAL_GASpublic java.lang.String getBlurbFlag(java.lang.String flag)
AreagetBlurbFlag in interface Areaflag - the name of the flag to returnpublic int numBlurbFlags()
AreanumBlurbFlags in interface Areapublic int numAllBlurbFlags()
AreanumAllBlurbFlags in interface Areapublic java.util.Enumeration<java.lang.String> areaBlurbFlags()
AreaareaBlurbFlags in interface AreaArea.getBlurbFlag(String)public void addBlurbFlag(java.lang.String flagPlusDesc)
AreaaddBlurbFlag in interface AreaflagPlusDesc - the flag name, space, followed by definitionpublic void delBlurbFlag(java.lang.String flagOnly)
AreadelBlurbFlag in interface AreaflagOnly - the name of the flag to remove.public long expirationDate()
ExpireableexpirationDate in interface ExpireableExpireable.setExpirationDate(long)public void setExpirationDate(long time)
ExpireablesetExpirationDate in interface Expireabletime - the time stamp when this thing expiresExpireable.expirationDate()public void setClimateObj(Climate obj)
AreasetClimateObj in interface Areaobj - a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimatepublic Climate getClimateObj()
AreagetClimateObj in interface AreaClimatepublic void setTimeObj(TimeClock obj)
AreasetTimeObj in interface Areaobj - a com.planet_ink.coffee_mud.Common.interfaces.TimeClock objectTimeClockpublic TimeClock getTimeObj()
AreagetTimeObj in interface AreaTimeClockpublic void destroy()
Contingentdestroy in interface Contingentpublic boolean amDestroyed()
ContingentamDestroyed in interface Contingentpublic boolean isSavable()
ContingentisSavable in interface Contingentpublic void setSavable(boolean truefalse)
ContingentsetSavable in interface Contingenttruefalse - whether this behavior can be saved as part of its host.Contingent.isSavable()public java.lang.String name()
Tickablename in interface CMObjectname in interface TickableEnvironmental.Name()public RoomnumberSet getProperRoomnumbers()
AreagetProperRoomnumbers in interface AreaRoomnumberSetpublic RoomnumberSet getCachedRoomnumbers()
AreagetCachedRoomnumbers in interface Areapublic void setName(java.lang.String newName)
EnvironmentalsetName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public java.lang.String Name()
EnvironmentalName in interface EnvironmentalTickable.name()public PhyStats phyStats()
AffectablephyStats in interface AffectableAffectable.basePhyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic PhyStats basePhyStats()
AffectablebasePhyStats in interface AffectableAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic void recoverPhyStats()
AffectablerecoverPhyStats in interface AffectableAffectable.basePhyStats(),
Affectable.phyStats(),
Affectable.addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatspublic void setBasePhyStats(PhyStats newStats)
AffectablesetBasePhyStats in interface AffectablenewStats - a set of state fieldsAffectable.phyStats(),
Affectable.recoverPhyStats(),
PhyStatspublic int getThemeCode()
AreagetThemeCode in interface AreaArea.THEME_FANTASYpublic int getTheme()
AreagetTheme in interface AreaArea.THEME_FANTASYpublic void setTheme(int level)
AreasetTheme in interface Arealevel - the bitmap representing the tech levelArea.THEME_FANTASYpublic java.lang.String getArchivePath()
AreagetArchivePath in interface Areapublic void setArchivePath(java.lang.String pathFile)
AreasetArchivePath in interface AreapathFile - the name of the .cmare filename to usepublic java.lang.String image()
Environmentalimage in interface Environmentalpublic java.lang.String rawImage()
EnvironmentalrawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
EnvironmentalsetImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic void setAreaState(Area.State newState)
AreasetAreaState in interface AreanewState - the new state to put this entire area intoArea.Statepublic Area.State getAreaState()
AreagetAreaState in interface AreaArea.Statepublic boolean amISubOp(java.lang.String username)
AreaamISubOp in interface Areausername - a players NameArea.addSubOp(String)public java.lang.String getSubOpList()
AreagetSubOpList in interface AreaArea.addSubOp(String)public void setSubOpList(java.lang.String list)
AreasetSubOpList in interface Arealist - a semicolon delimited list of player Names.Area.addSubOp(String)public void addSubOp(java.lang.String username)
AreaaddSubOp in interface Areausername - a players NameArea.delSubOp(String)public void delSubOp(java.lang.String username)
AreadelSubOp in interface Areausername - a players NameArea.addSubOp(String)public java.lang.String getNewRoomID(Room startRoom, int direction)
AreagetNewRoomID in interface AreastartRoom - the room connected to the upcoming new one (or null)direction - the direction from the startRoom the new one will goRoompublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic boolean isGeneric()
EnvironmentalisGeneric in interface EnvironmentalEnvironmental.text()protected void cloneFix(StdArea areaA)
public CMObject copyOf()
CMObjectpublic java.lang.String displayText()
EnvironmentaldisplayText in interface Environmentalpublic void setDisplayText(java.lang.String newDisplayText)
EnvironmentalsetDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic java.lang.String displayText(MOB viewerMob)
PhysicaldisplayText in interface PhysicalviewerMob - the mob viewing the physical thingEnvironmental.displayText()public java.lang.String name(MOB viewerMob)
Physicalname in interface PhysicalviewerMob - the mob viewing the physical thingTickable.name()public java.lang.String getFinalPrejudiceFactors()
EconomicsgetFinalPrejudiceFactors in interface Economicsprotected java.lang.String finalPrejudiceFactors(Area A)
public java.lang.String getRawPrejudiceFactors()
EconomicsgetRawPrejudiceFactors in interface Economicspublic void setPrejudiceFactors(java.lang.String factors)
EconomicssetPrejudiceFactors in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String[] getFinalItemPricingAdjustments()
EconomicsgetFinalItemPricingAdjustments in interface Economicsprotected java.lang.String[] finalItemPricingAdjustments(Area A)
public java.lang.String[] getRawItemPricingAdjustments()
EconomicsgetRawItemPricingAdjustments in interface Economicspublic void setItemPricingAdjustments(java.lang.String[] factors)
EconomicssetItemPricingAdjustments in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String getFinalIgnoreMask()
EconomicsgetFinalIgnoreMask in interface EconomicsMaskingLibraryprotected java.lang.String finalIgnoreMask(Area A)
public java.lang.String getRawIgnoreMask()
EconomicsgetRawIgnoreMask in interface EconomicsMaskingLibrarypublic void setIgnoreMask(java.lang.String factors)
EconomicssetIgnoreMask in interface Economicsfactors - the mask to useMaskingLibrarypublic Pair<java.lang.Long,TimeClock.TimePeriod> getFinalBudget()
EconomicsgetFinalBudget in interface Economicsprotected Pair<java.lang.Long,TimeClock.TimePeriod> finalAreaBudget(Area A)
public java.lang.String getRawBbudget()
EconomicsgetRawBbudget in interface Economicspublic void setBudget(java.lang.String factors)
Economicspublic double[] getFinalDevalueRate()
EconomicsgetFinalDevalueRate in interface Economicsprotected double[] finalAreaDevalueRate(Area A)
public java.lang.String getRawDevalueRate()
EconomicsgetRawDevalueRate in interface Economicspublic void setDevalueRate(java.lang.String factors)
EconomicssetDevalueRate in interface Economicsfactors - the price dropping percentage rule for this shopkeeperpublic int getRawInvResetRate()
EconomicsgetRawInvResetRate in interface Economicspublic void setInvResetRate(int ticks)
EconomicssetInvResetRate in interface Economicsticks - the number of ticks between total resets of inventorypublic int getFinalInvResetRate()
EconomicsgetFinalInvResetRate in interface Economicsprotected int finalInvResetRate(Area A)
public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public java.lang.String miscTextFormat()
EnvironmentalmiscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public java.lang.String text()
Environmentaltext in interface Environmentalpublic void setMiscText(java.lang.String newMiscText)
EnvironmentalsetMiscText in interface EnvironmentalnewMiscText - either an open internal text string, or XMLpublic java.lang.String description()
Environmentaldescription in interface Environmentalpublic void setDescription(java.lang.String newDescription)
EnvironmentalsetDescription in interface EnvironmentalnewDescription - the basic detail description of this objectpublic java.lang.String description(MOB viewerMob)
Physicaldescription in interface PhysicalviewerMob - the mob viewing the physical thingEnvironmental.description()public int getClimateTypeCode()
PlacesgetClimateTypeCode in interface PlacesPlaces.CLIMASK_COLDpublic void setClimateType(int newClimateType)
PlacessetClimateType in interface PlacesnewClimateType - a CLIMASK bitmapPlaces.CLIMASK_COLDpublic int getClimateType()
PlacesgetClimateType in interface PlacesPlaces.CLIMASK_COLDprotected boolean isAreaLocation(Environmental E)
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg,
CMMsg.source()public void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic int getTickStatus()
TickablegetTickStatus in interface TickableTickable.tick(Tickable, int)public boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable,
ServiceEngine,
TickableGrouppublic void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffectingaffectPhyStats 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)
StatsAffectingaffectCharStats 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)
StatsAffectingaffectCharState 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 java.lang.String genericName()
PhysicalgenericName in interface Physicalpublic void addNonUninvokableEffect(Ability to)
AffectableaddNonUninvokableEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void addEffect(Ability to)
AffectableaddEffect in interface Affectableto - The ability object to add as an effect.Ability,
Affectable.recoverPhyStats()public void delEffect(Ability to)
AffectabledelEffect in interface Affectableto - The ability object to remove as an effect on this objectAbility,
Affectable.recoverPhyStats()public void eachEffect(EachApplicable<Ability> applier)
AffectableeachEffect in interface Affectableapplier - code to execute against each objectpublic void delAllEffects(boolean unInvoke)
AffectabledelAllEffects in interface AffectableunInvoke - send true to uninvoke before deletingpublic int numEffects()
AffectablenumEffects in interface AffectableAbilitypublic java.util.Enumeration<Ability> effects()
Affectableeffects in interface AffectableAbilitypublic Ability fetchEffect(int index)
AffectablefetchEffect in interface Affectableindex - which object to returnAbility,
Affectable.numEffects()public Ability fetchEffect(java.lang.String ID)
AffectablefetchEffect in interface AffectableID - the Ability ID to look for in effectsAbility,
CMObject.ID()public boolean inMyMetroArea(Area A)
AreainMyMetroArea in interface AreaA - an Area objectpublic void fillInAreaRooms()
AreafillInAreaRooms in interface Areapublic void fillInAreaRoom(Room R)
AreafillInAreaRoom in interface AreaR - the Room object to "fill-in"Roompublic void addBehavior(Behavior to)
addBehavior in interface Behavableto - The behavior object to add.Behavior,
Affectable.recoverPhyStats()public void delBehavior(Behavior to)
BehavabledelBehavior in interface Behavableto - The behavior object to remove.Behavior,
Affectable.recoverPhyStats()public void delAllBehaviors()
BehavabledelAllBehaviors in interface Behavablepublic int numBehaviors()
BehavablenumBehaviors in interface BehavableBehaviorpublic java.util.Enumeration<Behavior> behaviors()
Behavablepublic void addScript(ScriptingEngine S)
addScript in interface BehavableS - the scripting engine, fully populated, to addScriptingEnginepublic void delScript(ScriptingEngine S)
BehavabledelScript in interface BehavableS - the specific scripting engine to removeScriptingEnginepublic int numScripts()
BehavablenumScripts in interface Behavablepublic java.util.Enumeration<ScriptingEngine> scripts()
Behavablescripts in interface BehavableScriptingEnginepublic ScriptingEngine fetchScript(int x)
BehavablefetchScript in interface Behavablex - which script to returnScriptingEnginepublic void delAllScripts()
BehavabledelAllScripts in interface Behavablepublic void eachScript(EachApplicable<ScriptingEngine> applier)
BehavableeachScript in interface Behavableapplier - code to execute against each objectpublic int maxRange()
EnvironmentalmaxRange in interface Environmentalpublic int minRange()
EnvironmentalminRange in interface Environmentalprotected void buildAreaIMobStats(StdArea.IStatContext ctx, MOB mob)
protected java.util.Map<java.lang.String,int[]> buildAreaPiety()
protected int[] buildAreaIStats()
public int getPlayerLevel()
AreagetPlayerLevel in interface AreaArea.setPlayerLevel(int)public void setPlayerLevel(int level)
AreasetPlayerLevel in interface Arealevel - the player level, or 0Area.getPlayerLevel()public int[] getAreaIStats()
AreagetAreaIStats in interface AreaArea.Statspublic int getPercentRoomsCached()
protected java.lang.StringBuffer buildAreaStats(int[] statData)
public java.lang.StringBuffer getAreaStats()
AreagetAreaStats in interface AreaArea.getAreaIStats()public Behavior fetchBehavior(int index)
BehavablefetchBehavior in interface Behavableindex - which object to returnBehavior,
Behavable.numBehaviors()public Behavior fetchBehavior(java.lang.String ID)
BehavablefetchBehavior in interface BehavableID - the Behavior ID to look forBehavior,
CMObject.ID()public void eachBehavior(EachApplicable<Behavior> applier)
BehavableeachBehavior in interface Behavableapplier - code to execute against each objectpublic int properSize()
AreaproperSize in interface Areapublic void setProperRoomnumbers(RoomnumberSet set)
AreasetProperRoomnumbers in interface Areaset - a com.planet_ink.coffee_mud.Common.interfaces.RoomnumberSet objectRoomnumberSetpublic void addProperRoom(Room R)
AreaaddProperRoom in interface AreaR - the Room to add.Area.addMetroRoom(Room),
Roompublic void addMetroRoom(Room R)
AreaaddMetroRoom in interface AreaR - a Room object from one of this areas child areas.Roompublic void delMetroRoom(Room R)
AreadelMetroRoom in interface AreaR - a Room object formerly from one of this areas child areas.Roompublic void addProperRoomnumber(java.lang.String roomID)
AreaaddProperRoomnumber in interface ArearoomID - the roomID of a room which should belong to this Area.public void delProperRoomnumber(java.lang.String roomID)
AreadelProperRoomnumber in interface ArearoomID - the roomID of a room which should no longer belong to this Area.public void addMetroRoomnumber(java.lang.String roomID)
AreaaddMetroRoomnumber in interface ArearoomID - a roomid for a roompublic void delMetroRoomnumber(java.lang.String roomID)
AreadelMetroRoomnumber in interface ArearoomID - a roomid for a former roomprotected boolean isRoomID(java.lang.String roomID)
public boolean isRoom(Room R)
Areapublic void delProperRoom(Room R)
AreadelProperRoom in interface AreaR - the Room to delete.Area.delMetroRoom(Room),
Roomprotected Room getRoomBase(java.lang.String roomID)
public Room getRoom(java.lang.String roomID)
Areapublic boolean isRoomCached(java.lang.String roomID)
AreaisRoomCached in interface ArearoomID - the Room id to check forRoompublic int metroSize()
Areapublic int numberOfProperIDedRooms()
AreanumberOfProperIDedRooms in interface Areapublic boolean isProperlyEmpty()
AreaisProperlyEmpty in interface Areapublic Room getRandomProperRoom()
AreagetRandomProperRoom in interface AreaRoompublic Room getRandomMetroRoom()
AreagetRandomMetroRoom in interface AreaRoompublic java.util.Enumeration<Room> getProperMap()
AreagetProperMap in interface AreaArea.getCompleteMap(),
Roompublic java.util.Enumeration<Room> getFilledProperMap()
AreagetFilledProperMap in interface AreaArea.getProperMap(),
Roompublic java.util.Enumeration<Room> getCompleteMap()
AreagetCompleteMap in interface AreaArea.getProperMap(),
Roompublic java.util.Enumeration<Room> getFilledCompleteMap()
AreagetFilledCompleteMap in interface AreaArea.getFilledProperMap(),
Roompublic java.util.Enumeration<Room> getMetroMap()
AreagetMetroMap in interface AreaRoompublic java.util.Enumeration<java.lang.String> subOps()
Areaprotected java.util.Map<java.lang.String,int[]> getPiety()
public int getPiety(java.lang.String deityName)
Areapublic SLinkedList<Area> loadAreas(java.util.Collection<java.lang.String> loadableSet)
protected final java.util.Iterator<Area> getParentsIterator()
protected final java.util.Iterator<Area> getParentsReverseIterator()
protected final java.util.Iterator<Area> getChildrenIterator()
protected final java.util.Iterator<Area> getChildrenReverseIterator()
public java.util.Enumeration<Area> getChildren()
AreagetChildren in interface Areapublic Area getChild(java.lang.String named)
Areapublic boolean isChild(Area area)
Areapublic boolean isChild(java.lang.String named)
Areapublic boolean isChildRecurse(java.lang.String named)
AreaisChildRecurse in interface Areanamed - the name of an Areapublic void addChild(Area area)
Areapublic void removeChild(Area area)
ArearemoveChild in interface Areaarea - an Area objectpublic boolean canChild(Area area)
Areapublic java.util.Enumeration<Area> getParents()
AreagetParents in interface Areapublic java.util.List<Area> getParentsRecurse()
AreagetParentsRecurse in interface Areapublic Area getParent(java.lang.String named)
Areapublic boolean isParent(Area area)
Areapublic boolean isParentRecurse(java.lang.String named)
AreaisParentRecurse in interface Areanamed - the name of an Areapublic boolean isParent(java.lang.String named)
Areapublic void addParent(Area area)
Areapublic void removeParent(Area area)
ArearemoveParent in interface Areaarea - an Area objectpublic boolean canParent(Area area)
Areapublic java.lang.String L(java.lang.String str,
java.lang.String... xs)
EnvironmentalL in interface Environmentalstr - the string to translatexs - the array of variables to replaceCall 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()
ModifiablegetSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)public java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public boolean isStat(java.lang.String code)
ModifiableisStat 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)
ModifiablegetStat in interface Modifiablecode - the name of the field to read.Modifiable.getStatCodes()public void setStat(java.lang.String code,
java.lang.String val)
ModifiablesetStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public boolean sameAs(Environmental E)
EnvironmentalsameAs in interface EnvironmentalE - the object to compare this one toModifiable.getStatCodes(),
Modifiable.getStat(String)