Area, AutoGenArea, Affectable, Behavable, CMObject, Contingent, Economics, Environmental, Expireable, Modifiable, MsgListener, Physical, PhysicalAgent, Places, StatsAffecting, Tickable, java.lang.Cloneable, java.lang.Comparable<CMObject>public class StdAutoGenInstance extends StdArea implements AutoGenArea
Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator, Area.State, Area.StatsStdArea.AreaInstanceChild, StdArea.IStatContext| Modifier and Type | Field | Description | 
|---|---|---|
protected long | 
childCheckDown | 
|
protected java.lang.String | 
filePath | 
|
protected CList<StdArea.AreaInstanceChild> | 
instanceChildren | 
|
protected int | 
instanceCounter | 
|
protected java.lang.ref.WeakReference<Area> | 
parentArea | 
|
protected java.util.Map<java.lang.String,java.lang.String> | 
varMap | 
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, placeComparator_name, affects, amDestroyed, archPath, atmosphere, author, basePhyStats, behaviors, blurbFlags, budget, children, climask, climateObj, currency, derivedAtmo, derivedClimate, derivedTheme, description, devalueRate, empty, emptyPiety, emptyStats, expirationDate, flag, ignoreMask, imageName, invResetRate, itemPricingAdjs, lastComplainer, lastPlayerTime, me, metroRoomIDSet, miscText, myClock, parents, passiveLapseMs, phyStats, playerLevel, prejudiceFactors, properRoomIDSet, properRooms, roomComparator, scripts, STDAREACODES, subOps, theme, threadId, tickStatus, xtraValuesSTATUS_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 | 
|---|---|
StdAutoGenInstance() | 
| Modifier and Type | Method | Description | 
|---|---|---|
protected java.lang.String | 
convertToMyArea(java.lang.String roomID) | 
|
void | 
executeMsg(Environmental myHost,
          CMMsg msg) | 
 The general message event handler for the object. 
 | 
long | 
flags() | 
 Return basic attributed flag about the area. 
 | 
int[] | 
getAreaIStats() | 
 Returns an integer array of statistics about this area based on
 a snapshot generated the first time it is called. 
 | 
protected java.util.List<MOB> | 
getAreaPlayerMOBs(StdArea.AreaInstanceChild rec) | 
|
java.util.Map<java.lang.String,java.lang.String> | 
getAutoGenVariables() | 
 Get a miscellaneous, xml-specific set of other vars to set
 when generating a new area 
 | 
java.lang.String | 
getGeneratorXmlPath() | 
 Get the path to the xml file to use to generate this areas rooms 
 | 
protected int | 
getLocalCodeNum(java.lang.String code) | 
|
protected Area | 
getParentArea() | 
|
int | 
getPercentRoomsCached() | 
|
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. 
 | 
protected java.lang.String | 
getStrippedRoomID(java.lang.String roomID) | 
|
java.lang.String | 
ID() | 
 The CoffeeMud Java Class ID shared by all instances of
 this object. 
 | 
boolean | 
okMessage(Environmental myHost,
         CMMsg msg) | 
 The general message event previewer for the object. 
 | 
boolean | 
resetInstance(Room returnToRoom) | 
 Resets the instance, sending all players back to the given room. 
 | 
protected void | 
safePlayerMOBMove(MOB M,
                 Area A,
                 Room returnToRoom) | 
|
boolean | 
sameAs(Environmental E) | 
 Whether this object instance is functionally identical to the object passed in. 
 | 
void | 
setAutoGenVariables(java.lang.String vars) | 
 Set a miscellaneous, xml-specific set of other vars to set
 when generating a new area. 
 | 
void | 
setAutoGenVariables(java.util.Map<java.lang.String,java.lang.String> vars) | 
 Set a miscellaneous, xml-specific set of other vars to set
 when generating a new area 
 | 
void | 
setGeneratorXmlPath(java.lang.String path) | 
 Set the path to the xml file to use to generate this areas rooms 
 | 
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. 
 | 
boolean | 
tick(Tickable ticking,
    int tickID) | 
 this is the method which is called periodically by the threading engine. 
 | 
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStatsaddBlurbFlag, addChild, addMetroRoom, addMetroRoomnumber, addParent, addProperRoom, addProperRoomnumber, addSubOp, amISubOp, areaBlurbFlags, canChild, canParent, delBlurbFlag, delMetroRoom, delMetroRoomnumber, delProperRoom, delProperRoomnumber, delSubOp, fillInAreaRoom, fillInAreaRooms, getArchivePath, getAreaState, getAreaStats, getAuthorID, getBlurbFlag, getCachedRoomnumbers, getChild, getChildren, getClimateObj, getCompleteMap, getFilledCompleteMap, getFilledProperMap, getMetroMap, getNewRoomID, getParent, getParents, getParentsRecurse, getPiety, getPlayerLevel, getProperMap, getProperRoomnumbers, getRandomMetroRoom, getRandomProperRoom, getRoom, getSubOpList, getTheme, getThemeCode, getTimeObj, inMyMetroArea, isChild, isChild, isChildRecurse, isParent, isParent, isParentRecurse, isProperlyEmpty, isRoom, isRoomCached, metroSize, numAllBlurbFlags, numberOfProperIDedRooms, numBlurbFlags, properSize, removeChild, removeParent, setArchivePath, setAreaState, setAuthorID, setClimateObj, setPlayerLevel, setProperRoomnumbers, setSubOpList, setTheme, setTimeObj, subOpsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, initializeClass, newInstanceamDestroyed, destroy, isSavable, setSavablegetFinalBudget, getFinalCurrency, getFinalDevalueRate, getFinalIgnoreMask, getFinalInvResetRate, getFinalItemPricingAdjustments, getFinalPrejudiceFactors, getRawBbudget, getRawCurrency, getRawDevalueRate, getRawIgnoreMask, getRawInvResetRate, getRawItemPricingAdjustments, getRawPrejudiceFactors, setBudget, setCurrency, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactorsdescription, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, setDescription, setDisplayText, setImage, setMiscText, setName, textexpirationDate, setExpirationDategetSaveStatIndex, isStatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescription, displayText, genericName, namegetAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateTypeaffectCharState, affectCharStats, affectPhyStatsaddBehavior, addBlurbFlag, addChild, addEffect, addMetroRoom, addMetroRoomnumber, addNonUninvokableEffect, addParent, addProperRoom, addProperRoomnumber, addScript, addSubOp, affectCharState, affectCharStats, affectPhyStats, amDestroyed, amISubOp, areaBlurbFlags, basePhyStats, behaviors, buildAreaIMobStats, buildAreaIStats, buildAreaPiety, buildAreaStats, canChild, canParent, cloneFix, compareTo, copyOf, delAllBehaviors, delAllEffects, delAllScripts, delBehavior, delBlurbFlag, delEffect, delMetroRoom, delMetroRoomnumber, delProperRoom, delProperRoomnumber, delScript, delSubOp, description, description, destroy, displayText, displayText, eachBehavior, eachEffect, eachScript, effects, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fillInAreaRoom, fillInAreaRooms, finalAreaBudget, finalAreaDevalueRate, finalCurrency, finalIgnoreMask, finalInvResetRate, finalItemPricingAdjustments, finalPrejudiceFactors, genericName, getArchivePath, getAreaState, getAreaStats, getAtmosphere, getAtmosphereCode, getAuthorID, getBlurbFlag, getCachedRoomnumbers, getChild, getChildren, getChildrenIterator, getChildrenReverseIterator, getClimateObj, getClimateType, getClimateTypeCode, getCodeNum, getCompleteMap, getFilledCompleteMap, getFilledProperMap, getFinalBudget, getFinalCurrency, getFinalDevalueRate, getFinalIgnoreMask, getFinalInvResetRate, getFinalItemPricingAdjustments, getFinalPrejudiceFactors, getMetroMap, getNewRoomID, getParent, getParents, getParentsIterator, getParentsRecurse, getParentsReverseIterator, getPiety, getPiety, getPlayerLevel, getProperMap, getProperRoomnumbers, getRandomMetroRoom, getRandomProperRoom, getRawBbudget, getRawCurrency, getRawDevalueRate, getRawIgnoreMask, getRawInvResetRate, getRawItemPricingAdjustments, getRawPrejudiceFactors, getRoom, getRoomBase, getSaveStatIndex, getSubOpList, getTheme, getThemeCode, getTickStatus, getTimeObj, image, initializeClass, inMyMetroArea, isAreaLocation, isChild, isChild, isChildRecurse, isGeneric, isParent, isParent, isParentRecurse, isProperlyEmpty, isRoom, isRoomCached, isRoomID, isSavable, isStat, L, loadAreas, maxRange, metroSize, minRange, miscTextFormat, name, name, Name, newInstance, numAllBlurbFlags, numBehaviors, numberOfProperIDedRooms, numBlurbFlags, numEffects, numScripts, phyStats, properSize, rawImage, recoverPhyStats, removeChild, removeParent, scripts, setArchivePath, setAreaState, setAtmosphere, setAuthorID, setBasePhyStats, setBudget, setClimateObj, setClimateType, setCurrency, setDescription, setDevalueRate, setDisplayText, setExpirationDate, setIgnoreMask, setImage, setInvResetRate, setItemPricingAdjustments, setMiscText, setName, setPlayerLevel, setPrejudiceFactors, setProperRoomnumbers, setSavable, setSubOpList, setTheme, setTimeObj, subOps, textgetTickStatus, nameprotected CList<StdArea.AreaInstanceChild> instanceChildren
protected volatile int instanceCounter
protected long childCheckDown
protected java.lang.ref.WeakReference<Area> parentArea
protected java.lang.String filePath
protected java.util.Map<java.lang.String,java.lang.String> varMap
public java.lang.String ID()
CMObjectpublic long flags()
Areaflags in interface Areaflags in class StdAreaArea.FLAG_THINprotected java.lang.String getStrippedRoomID(java.lang.String roomID)
protected java.lang.String convertToMyArea(java.lang.String roomID)
protected Area getParentArea()
public int getPercentRoomsCached()
getPercentRoomsCached in class StdAreapublic int[] getAreaIStats()
AreagetAreaIStats in interface AreagetAreaIStats in class StdAreaArea.Statspublic boolean tick(Tickable ticking, int tickID)
Tickabletick in interface Tickabletick in class StdAreaticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in TickableTickable, 
ServiceEngine, 
TickableGroupprotected java.util.List<MOB> getAreaPlayerMOBs(StdArea.AreaInstanceChild rec)
public boolean resetInstance(Room returnToRoom)
AutoGenArearesetInstance in interface AutoGenAreareturnToRoom - the room to return all players topublic void executeMsg(Environmental myHost, CMMsg msg)
MsgListenerexecuteMsg in interface MsgListenerexecuteMsg in class StdAreamyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdAreamyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executedCMMsg, 
CMMsg.source()public java.lang.String getStat(java.lang.String code)
ModifiablegetStat in interface ModifiablegetStat in class StdAreacode - the name of the field to read.Modifiable.getStatCodes()public void setStat(java.lang.String code,
                    java.lang.String val)
ModifiablesetStat in interface ModifiablesetStat in class StdAreacode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()protected int getLocalCodeNum(java.lang.String code)
public java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiablegetStatCodes in class StdAreaModifiable.getStat(String), 
Modifiable.setStat(String, String)public boolean sameAs(Environmental E)
EnvironmentalsameAs in interface EnvironmentalsameAs in class StdAreaE - the object to compare this one toModifiable.getStatCodes(), 
Modifiable.getStat(String)public java.lang.String getGeneratorXmlPath()
AutoGenAreagetGeneratorXmlPath in interface AutoGenAreapublic java.util.Map<java.lang.String,java.lang.String> getAutoGenVariables()
AutoGenAreagetAutoGenVariables in interface AutoGenAreapublic void setGeneratorXmlPath(java.lang.String path)
AutoGenAreasetGeneratorXmlPath in interface AutoGenAreapath - the resource pathpublic void setAutoGenVariables(java.util.Map<java.lang.String,java.lang.String> vars)
AutoGenAreasetAutoGenVariables in interface AutoGenAreavars - the variable mappingspublic void setAutoGenVariables(java.lang.String vars)
AutoGenAreasetAutoGenVariables in interface AutoGenAreavars - the variable mappings