|
|||||||||
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.StdThinArea
com.planet_ink.coffee_mud.Areas.StdThinInstance
public class StdThinInstance
Nested Class Summary | |
---|---|
protected static class |
StdThinInstance.AllWaterFilters
|
protected static class |
StdThinInstance.EmptyFilters
|
protected static class |
StdThinInstance.OutOfAreaFilter
|
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 long |
flags
|
protected java.util.List<Area.AreaInstanceChild> |
instanceChildren
|
protected int |
instanceCounter
|
protected java.lang.ref.WeakReference<Area> |
parentArea
|
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 | |
---|---|
StdThinInstance()
|
Method Summary | |
---|---|
protected java.lang.String |
convertToMyArea(java.lang.String roomID)
|
protected Area |
createRedirectArea(java.util.List<MOB> mobs)
|
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. |
protected boolean |
doesManageChildAreas()
|
protected boolean |
doesManageMobLists()
|
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
long |
flags()
Return basic attributed flag about the area. |
protected void |
flushInstance(Area.AreaInstanceChild child)
|
int[] |
getAreaIStats()
Returns an integer array of statistics about this area based on a snapshot generated the first time it is called. |
protected Area |
getParentArea()
|
protected java.util.Set<Physical> |
getProtectedSet(Area childA,
java.util.List<java.lang.ref.WeakReference<MOB>> registeredMobList)
|
Room |
getRoom(java.lang.String roomID)
Returns a room of the given roomID, if it has already been added by calling addProperRoom. |
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. |
protected static boolean |
isInThisArea(Area childA,
MOB mob)
|
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected boolean |
qualifiesToBeParentArea(Area parentA)
|
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
Methods inherited from class com.planet_ink.coffee_mud.Areas.StdThinArea |
---|
addProperRoom, getCompleteMap, getMetroMap, getPercentRoomsCached, getProperMap, getProperRoom, isRoom, isRoom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long flags
protected final java.util.List<Area.AreaInstanceChild> instanceChildren
protected volatile int instanceCounter
protected long childCheckDown
protected java.lang.ref.WeakReference<Area> parentArea
Constructor Detail |
---|
public StdThinInstance()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdThinArea
public long flags()
Area
flags
in interface Area
flags
in class StdThinArea
Area.FLAG_THIN
protected java.lang.String getStrippedRoomID(java.lang.String roomID)
protected java.lang.String convertToMyArea(java.lang.String roomID)
protected boolean qualifiesToBeParentArea(Area parentA)
protected Area getParentArea()
public Room getRoom(java.lang.String roomID)
Area
getRoom
in interface Area
getRoom
in class StdThinArea
roomID
- the roomID of the room to return.
Room
protected static boolean isInThisArea(Area childA, MOB mob)
protected java.util.Set<Physical> getProtectedSet(Area childA, java.util.List<java.lang.ref.WeakReference<MOB>> registeredMobList)
protected void flushInstance(Area.AreaInstanceChild child)
public void destroy()
Contingent
destroy
in interface Contingent
destroy
in class StdArea
protected boolean doesManageChildAreas()
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
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 int[] getAreaIStats()
Area
getAreaIStats
in interface Area
getAreaIStats
in class StdThinArea
Area.Stats
protected boolean doesManageMobLists()
protected Area createRedirectArea(java.util.List<MOB> mobs)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |