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
, StdTimeZone
public 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_TECHNOLOGY
idConverter
ALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_VOID, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES, placeComparator
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_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()
CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public long flags()
Area
flags
in interface Area
Area.FLAG_THIN
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 void setCurrency(java.lang.String newCurrency)
Economics
setCurrency
in interface Economics
newCurrency
- a currency name/definitionprotected java.lang.String finalCurrency(Area A)
public java.lang.String getFinalCurrency()
Economics
getFinalCurrency
in interface Economics
public java.lang.String getRawCurrency()
Economics
getRawCurrency
in interface Economics
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 int getAtmosphere()
Places
getAtmosphere
in interface Places
RawMaterial.MATERIAL_GAS
public java.lang.String getBlurbFlag(java.lang.String flag)
Area
getBlurbFlag
in interface Area
flag
- the name of the flag to returnpublic 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.public long expirationDate()
Expireable
expirationDate
in interface Expireable
Expireable.setExpirationDate(long)
public void setExpirationDate(long time)
Expireable
setExpirationDate
in interface Expireable
time
- the time stamp when this thing expiresExpireable.expirationDate()
public void setClimateObj(Climate obj)
Area
setClimateObj
in interface Area
obj
- a com.planet_ink.coffee_mud.Common.interfaces.Climate objectClimate
public Climate getClimateObj()
Area
getClimateObj
in interface Area
Climate
public void setTimeObj(TimeClock obj)
Area
setTimeObj
in interface Area
obj
- a com.planet_ink.coffee_mud.Common.interfaces.TimeClock objectTimeClock
public TimeClock getTimeObj()
Area
getTimeObj
in interface Area
TimeClock
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 java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
Environmental.Name()
public RoomnumberSet getProperRoomnumbers()
Area
getProperRoomnumbers
in interface Area
RoomnumberSet
public RoomnumberSet getCachedRoomnumbers()
Area
getCachedRoomnumbers
in interface Area
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 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 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 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 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 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 NameArea.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 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 goRoom
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
Environmental.text()
protected void cloneFix(StdArea areaA)
public CMObject copyOf()
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 thingEnvironmental.displayText()
public java.lang.String name(MOB viewerMob)
Physical
name
in interface Physical
viewerMob
- the mob viewing the physical thingTickable.name()
public java.lang.String getFinalPrejudiceFactors()
Economics
getFinalPrejudiceFactors
in interface Economics
protected java.lang.String finalPrejudiceFactors(Area A)
public java.lang.String getRawPrejudiceFactors()
Economics
getRawPrejudiceFactors
in interface Economics
public void setPrejudiceFactors(java.lang.String factors)
Economics
setPrejudiceFactors
in interface Economics
factors
- the string describing price prejudicingpublic java.lang.String[] getFinalItemPricingAdjustments()
Economics
getFinalItemPricingAdjustments
in interface Economics
protected java.lang.String[] finalItemPricingAdjustments(Area A)
public java.lang.String[] getRawItemPricingAdjustments()
Economics
getRawItemPricingAdjustments
in interface Economics
public void setItemPricingAdjustments(java.lang.String[] factors)
Economics
setItemPricingAdjustments
in interface Economics
factors
- the string describing price prejudicingpublic java.lang.String getFinalIgnoreMask()
Economics
getFinalIgnoreMask
in interface Economics
MaskingLibrary
protected java.lang.String finalIgnoreMask(Area A)
public java.lang.String getRawIgnoreMask()
Economics
getRawIgnoreMask
in interface Economics
MaskingLibrary
public void setIgnoreMask(java.lang.String factors)
Economics
setIgnoreMask
in interface Economics
factors
- the mask to useMaskingLibrary
public Pair<java.lang.Long,TimeClock.TimePeriod> getFinalBudget()
Economics
getFinalBudget
in interface Economics
protected Pair<java.lang.Long,TimeClock.TimePeriod> finalAreaBudget(Area A)
public java.lang.String getRawBbudget()
Economics
getRawBbudget
in interface Economics
public void setBudget(java.lang.String factors)
Economics
public double[] getFinalDevalueRate()
Economics
getFinalDevalueRate
in interface Economics
protected double[] finalAreaDevalueRate(Area A)
public java.lang.String getRawDevalueRate()
Economics
getRawDevalueRate
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 getRawInvResetRate()
Economics
getRawInvResetRate
in interface Economics
public void setInvResetRate(int ticks)
Economics
setInvResetRate
in interface Economics
ticks
- the number of ticks between total resets of inventorypublic int getFinalInvResetRate()
Economics
getFinalInvResetRate
in interface Economics
protected int finalInvResetRate(Area A)
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 thingEnvironmental.description()
public int getClimateTypeCode()
Places
getClimateTypeCode
in interface Places
Places.CLIMASK_COLD
public void setClimateType(int newClimateType)
Places
setClimateType
in interface Places
newClimateType
- a CLIMASK bitmapPlaces.CLIMASK_COLD
public int getClimateType()
Places
getClimateType
in interface Places
Places.CLIMASK_COLD
protected boolean isAreaLocation(Environmental E)
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 executedCMMsg
,
CMMsg.source()
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 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 TickableTickable
,
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 java.lang.String genericName()
Physical
genericName
in interface Physical
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 returnAbility
,
Affectable.numEffects()
public Ability fetchEffect(java.lang.String ID)
Affectable
fetchEffect
in interface Affectable
ID
- the Ability ID to look for in effectsAbility
,
CMObject.ID()
public boolean inMyMetroArea(Area A)
Area
inMyMetroArea
in interface Area
A
- an Area objectpublic void fillInAreaRooms()
Area
fillInAreaRooms
in interface Area
public void fillInAreaRoom(Room R)
Area
fillInAreaRoom
in interface Area
R
- the Room object to "fill-in"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
public 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 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 returnScriptingEngine
public void delAllScripts()
Behavable
delAllScripts
in interface Behavable
public void eachScript(EachApplicable<ScriptingEngine> applier)
Behavable
eachScript
in interface Behavable
applier
- code to execute against each objectpublic int maxRange()
Environmental
maxRange
in interface Environmental
public int minRange()
Environmental
minRange
in interface Environmental
protected void buildAreaIMobStats(StdArea.IStatContext ctx, MOB mob)
protected java.util.Map<java.lang.String,int[]> buildAreaPiety()
protected int[] buildAreaIStats()
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 int[] getAreaIStats()
Area
getAreaIStats
in interface Area
Area.Stats
public int getPercentRoomsCached()
protected java.lang.StringBuffer buildAreaStats(int[] statData)
public java.lang.StringBuffer getAreaStats()
Area
getAreaStats
in interface Area
Area.getAreaIStats()
public Behavior fetchBehavior(int index)
Behavable
fetchBehavior
in interface Behavable
index
- which object to returnBehavior
,
Behavable.numBehaviors()
public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior
in interface Behavable
ID
- the Behavior ID to look forBehavior
,
CMObject.ID()
public void eachBehavior(EachApplicable<Behavior> applier)
Behavable
eachBehavior
in interface Behavable
applier
- code to execute against each objectpublic int properSize()
Area
properSize
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 void addProperRoom(Room R)
Area
addProperRoom
in interface Area
R
- the Room to add.Area.addMetroRoom(Room)
,
Room
public 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 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 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 roomprotected boolean isRoomID(java.lang.String roomID)
public boolean isRoom(Room R)
Area
public void delProperRoom(Room R)
Area
delProperRoom
in interface Area
R
- the Room to delete.Area.delMetroRoom(Room)
,
Room
protected Room getRoomBase(java.lang.String roomID)
public Room getRoom(java.lang.String roomID)
Area
public boolean isRoomCached(java.lang.String roomID)
Area
isRoomCached
in interface Area
roomID
- the Room id to check forRoom
public int metroSize()
Area
public int numberOfProperIDedRooms()
Area
numberOfProperIDedRooms
in interface Area
public boolean isProperlyEmpty()
Area
isProperlyEmpty
in interface Area
public Room getRandomProperRoom()
Area
getRandomProperRoom
in interface Area
Room
public Room getRandomMetroRoom()
Area
getRandomMetroRoom
in interface Area
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<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.Enumeration<Room> getMetroMap()
Area
getMetroMap
in interface Area
Room
public java.util.Enumeration<java.lang.String> subOps()
Area
protected java.util.Map<java.lang.String,int[]> getPiety()
public int getPiety(java.lang.String deityName)
Area
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()
protected final java.util.Iterator<Area> getChildrenIterator()
protected final java.util.Iterator<Area> getChildrenReverseIterator()
public java.util.Enumeration<Area> getChildren()
Area
getChildren
in interface Area
public Area getChild(java.lang.String named)
Area
public boolean isChild(Area area)
Area
public boolean isChild(java.lang.String named)
Area
public boolean isChildRecurse(java.lang.String named)
Area
isChildRecurse
in interface Area
named
- the name of an Areapublic void addChild(Area area)
Area
public void removeChild(Area area)
Area
removeChild
in interface Area
area
- an Area objectpublic boolean canChild(Area area)
Area
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
public boolean isParent(Area area)
Area
public boolean isParentRecurse(java.lang.String named)
Area
isParentRecurse
in interface Area
named
- the name of an Areapublic boolean isParent(java.lang.String named)
Area
public void addParent(Area area)
Area
public void removeParent(Area area)
Area
removeParent
in interface Area
area
- an Area objectpublic boolean canParent(Area area)
Area
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 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()
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 toModifiable.getStatCodes()
,
Modifiable.getStat(String)