|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Areas.StdArea
com.planet_ink.coffee_mud.Areas.StdAutoGenInstance
public class StdAutoGenInstance
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area |
---|
Area.AreaInstanceChild, Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator, Area.State, Area.Stats |
Field Summary | |
---|---|
protected long |
childCheckDown
|
protected java.lang.String |
filePath
|
protected CList<Area.AreaInstanceChild> |
instanceChildren
|
protected int |
instanceCounter
|
protected java.lang.ref.WeakReference<Area> |
parentArea
|
protected java.util.Map<java.lang.String,java.lang.String> |
varMap
|
Fields inherited from class com.planet_ink.coffee_mud.Areas.StdArea |
---|
affects, amDestroyed, archPath, atmosphere, author, basePhyStats, behaviors, blurbFlags, budget, children, climask, climateObj, currency, derivedAtmo, derivedClimate, derivedTheme, description, devalueRate, empty, emptyStats, expirationDate, flag, ignoreMask, imageName, invResetRate, itemPricingAdjustments, lastPlayerTime, me, metroRoomIDSet, miscText, myClock, name, parents, phyStats, playerLevel, prejudiceFactors, properRoomIDSet, properRooms, scripts, STDAREACODES, subOps, theme, tickStatus, xtraValues |
Fields inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area |
---|
FLAG_INSTANCE_CHILD, FLAG_INSTANCE_PARENT, FLAG_THIN, THEME_ALLTHEMES, THEME_BIT_NAMES, THEME_FANTASY, THEME_HEROIC, THEME_INHERIT, THEME_NAMES, THEME_PHRASE, THEME_PHRASE_EXT, THEME_SKILLONLYMASK, THEME_TECHNOLOGY, TIME_PASSIVE_LAPSE |
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Places |
---|
ALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES |
Constructor Summary | |
---|---|
StdAutoGenInstance()
|
Method Summary | |
---|---|
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(Area.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 |
protected int |
getCodeNum(java.lang.String code)
|
java.lang.String |
getGeneratorXmlPath()
Get the path to the xml file to use to generate this areas rooms |
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. |
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.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 |
setAutoGenVariables(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Economics |
---|
budget, devalueRate, finalBudget, finalDevalueRate, finalIgnoreMask, finalInvResetRate, finalItemPricingAdjustments, finalPrejudiceFactors, ignoreMask, invResetRate, itemPricingAdjustments, prejudiceFactors, setBudget, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Places |
---|
getAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Physical |
---|
description, displayText, name |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, isStat |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
---|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
---|
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts |
Field Detail |
---|
protected CList<Area.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
Constructor Detail |
---|
public StdAutoGenInstance()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdArea
public long flags()
Area
flags
in interface Area
flags
in class StdArea
Area.FLAG_THIN
protected 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 StdArea
public int[] getAreaIStats()
Area
getAreaIStats
in interface Area
getAreaIStats
in class StdArea
Area.Stats
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdArea
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable
,
ServiceEngine
,
TickableGroup
protected java.util.List<MOB> getAreaPlayerMOBs(Area.AreaInstanceChild rec)
protected void safePlayerMOBMove(MOB M, Area A, Room returnToRoom)
public void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdArea
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdArea
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executed
CMMsg
,
CMMsg.source()
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
getStat
in class StdArea
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
setStat
in class StdArea
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
protected int getCodeNum(java.lang.String code)
getCodeNum
in class StdArea
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
getStatCodes
in class StdArea
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
sameAs
in class StdArea
E
- the object to compare this one to
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
public java.lang.String getGeneratorXmlPath()
AutoGenArea
getGeneratorXmlPath
in interface AutoGenArea
public java.util.Map<java.lang.String,java.lang.String> getAutoGenVariables()
AutoGenArea
getAutoGenVariables
in interface AutoGenArea
public void setGeneratorXmlPath(java.lang.String path)
AutoGenArea
setGeneratorXmlPath
in interface AutoGenArea
path
- the resource pathpublic void setAutoGenVariables(java.util.Map<java.lang.String,java.lang.String> vars)
AutoGenArea
setAutoGenVariables
in interface AutoGenArea
vars
- the variable mappingspublic void setAutoGenVariables(java.lang.String vars)
AutoGenArea
setAutoGenVariables
in interface AutoGenArea
vars
- the variable mappings
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |