com.planet_ink.coffee_mud.Areas
Class StdThinGridArea

java.lang.Object
  extended by com.planet_ink.coffee_mud.Areas.StdArea
      extended by com.planet_ink.coffee_mud.Areas.StdGridArea
          extended by com.planet_ink.coffee_mud.Areas.StdThinGridArea
All Implemented Interfaces:
Area, GridZones, Behavable, CMModifiable, CMObject, Economics, Environmental, MsgListener, StatsAffecting, Tickable, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class StdThinGridArea
extends StdGridArea


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area
Area.CompleteRoomEnumerator
 
Field Summary
 RoomnumberSet myRoomSet
           
 
Fields inherited from class com.planet_ink.coffee_mud.Areas.StdGridArea
xSize, yLength, ySize, ZEROES
 
Fields inherited from class com.planet_ink.coffee_mud.Areas.StdArea
affects, amDestroyed, archPath, author, baseEnvStats, behaviors, blurbFlags, budget, children, childrenToLoad, climateID, climateObj, currency, description, devalueRate, empty, envStats, expirationDate, flag, ignoreMask, imageName, invResetRate, itemPricingAdjustments, lastPlayerTime, metroRoomIDSet, miscText, myClock, name, parents, parentsToLoad, prejudiceFactors, properRoomIDSet, properRooms, scripts, subOps, techLevel, tickStatus, xtraValues
 
Fields inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area
ALL_CLIMATE_MASK, AREASTAT_AVGALIGN, AREASTAT_AVGLEVEL, AREASTAT_INTLEVEL, AREASTAT_MAXLEVEL, AREASTAT_MEDALIGN, AREASTAT_MEDLEVEL, AREASTAT_MINLEVEL, AREASTAT_NUMBER, AREASTAT_POPULATION, AREASTAT_TOTLEVEL, AREASTAT_VISITABLEROOMS, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_NORMAL, CLIMASK_WET, CLIMATE_DESCS, CLIMATE_WINDY, FLAG_ACTIVE, FLAG_FROZEN, FLAG_PASSIVE, FLAG_STOPPED, FLAG_THIN, NUM_CLIMATES, THEME_DESCS, THEME_DESCS_EXT, THEME_FANTASY, THEME_HEROIC, THEME_SKILLONLYMASK, THEME_TECHNOLOGY, TIME_PASSIVE_LAPSE
 
Constructor Summary
StdThinGridArea()
           
 
Method Summary
 void addProperRoom(Room R)
          This method adds a new Room to this area.
 long flags()
          Return basic attributed flag about the area.
 java.util.Enumeration 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.Vector getMetroCollection()
          Returns a collection of all of this areas rooms which have been loaded, and all rooms of all child areas which have been loaded, excluding those not yet cached.
 java.util.Enumeration getProperMap()
          Returns an enumerator for all previously loaded rooms that properly belongs to this area.
 Room getRoom(java.lang.String roomID)
          Returns a room of the given roomID, if it has already been added by calling addProperRoom.
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 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 isRoom(java.lang.String roomID)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Areas.StdGridArea
getGridChild, getGridChild, getGridChildCode, getGridChildX, getGridChildY, getNewRoomID, getRandomGridChild, getRoomXY, isMyGridChild, newInstance, posFromRoomID, roomIDFromPos, setXGridSize, setYGridSize, xGridSize, yGridSize
 
Methods inherited from class com.planet_ink.coffee_mud.Areas.StdArea
addBehavior, addBlurbFlag, addChild, addChildToLoad, addEffect, addMetroRoom, addMetroRoomnumber, addNonUninvokableEffect, addParent, addParentToLoad, addProperRoomnumber, addScript, addSubOp, affectCharState, affectCharStats, affectEnvStats, allBlurbFlags, amDestroyed, amISubOp, baseEnvStats, budget, canChild, canParent, climateType, cloneFix, compareTo, copyOf, delBehavior, delBlurbFlag, delEffect, delMetroRoom, delMetroRoomnumber, delProperRoom, delProperRoomnumber, delScript, delSubOp, description, destroy, devalueRate, displayText, envStats, executeMsg, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fillInAreaRoom, fillInAreaRooms, finalBudget, finalBudget, finalDevalueRate, finalDevalueRate, finalIgnoreMask, finalIgnoreMask, finalInvResetRate, finalInvResetRate, finalItemPricingAdjustments, finalItemPricingAdjustments, finalize, finalPrejudiceFactors, finalPrejudiceFactors, getArchivePath, getAreaFlags, getAreaIStats, getAreaStats, getAuthorID, getBlurbFlag, getBlurbFlag, getCachedRoomnumbers, getChild, getChild, getChildren, getChildrenList, getClimateObj, getCodeNum, getCurrency, getFilledProperMap, getMetroMap, getNumChildren, getNumParents, getParent, getParent, getParents, getParentsList, getParentsRecurse, getProperIndex, getProperRoomnumbers, getRandomMetroRoom, getRandomProperRoom, getSaveStatIndex, getStat, getStatCodes, getSubOpList, getSubOpVectorList, getTechLevel, getTickStatus, getTimeObj, ignoreMask, image, initChildren, initializeClass, initParents, inMyMetroArea, invResetRate, isChild, isChild, isGeneric, isParent, isParent, isStat, itemPricingAdjustments, maxRange, metroSize, minRange, miscTextFormat, name, Name, numAllBlurbFlags, numBehaviors, numberOfProperIDedRooms, numBlurbFlags, numEffects, numScripts, okMessage, prejudiceFactors, properSize, rawImage, recoverEnvStats, removeChild, removeChild, removeParent, removeParent, sameAs, savable, setArchivePath, setAreaFlags, setAuthorID, setBaseEnvStats, setBudget, setClimateObj, setClimateType, setCurrency, setDescription, setDevalueRate, setDisplayText, setExpirationDate, setIgnoreMask, setImage, setInvResetRate, setItemPricingAdjustments, setMiscText, setName, setPrejudiceFactors, setProperRoomnumbers, setStat, setSubOpList, setTechLevel, setTimeObj, text, tick
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area
addBlurbFlag, addChild, addChildToLoad, addMetroRoom, addMetroRoomnumber, addParent, addParentToLoad, addProperRoomnumber, addSubOp, amISubOp, canChild, canParent, climateType, delBlurbFlag, delMetroRoom, delMetroRoomnumber, delProperRoom, delProperRoomnumber, delSubOp, fillInAreaRoom, fillInAreaRooms, getArchivePath, getAreaFlags, getAreaIStats, getAreaStats, getAuthorID, getBlurbFlag, getBlurbFlag, getCachedRoomnumbers, getChild, getChild, getChildren, getChildrenList, getClimateObj, getCurrency, getFilledProperMap, getMetroMap, getNumChildren, getNumParents, getParent, getParent, getParents, getParentsList, getParentsRecurse, getProperRoomnumbers, getRandomMetroRoom, getRandomProperRoom, getSubOpList, getSubOpVectorList, getTechLevel, getTimeObj, inMyMetroArea, isChild, isChild, isParent, isParent, metroSize, numAllBlurbFlags, numberOfProperIDedRooms, numBlurbFlags, properSize, removeChild, removeChild, removeParent, removeParent, setArchivePath, setAreaFlags, setAuthorID, setClimateObj, setClimateType, setCurrency, setProperRoomnumbers, setSubOpList, setTechLevel, setTimeObj
 
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
 

Field Detail

myRoomSet

public RoomnumberSet myRoomSet
Constructor Detail

StdThinGridArea

public StdThinGridArea()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdGridArea
Returns:
the name of this class

flags

public long flags()
Description copied from interface: Area
Return basic attributed flag about the area.

Specified by:
flags in interface Area
Overrides:
flags in class StdArea
Returns:
either 0, or a bitmap of FLAG_ constants
See Also:
Area.FLAG_THIN

addProperRoom

public void addProperRoom(Room R)
Description copied from interface: Area
This method adds a new Room to this area. It is called by the Room.setArea( method, and should rarely if ever be called directly. It calls addMetroRoom on all parent areas to make them aware of it as well.

Specified by:
addProperRoom in interface Area
Overrides:
addProperRoom in class StdArea
Parameters:
R - the Room to add.
See Also:
Area.addMetroRoom(Room), Room

getRoom

public Room getRoom(java.lang.String roomID)
Description copied from interface: Area
Returns a room of the given roomID, if it has already been added by calling addProperRoom.

Specified by:
getRoom in interface Area
Overrides:
getRoom in class StdArea
Parameters:
roomID - the roomID of the room to return.
Returns:
a reference to the room that the id refers to, IF the room belongs here.
See Also:
Room

isRoom

public boolean isRoom(java.lang.String roomID)

isRoom

public boolean isRoom(Room R)
Description copied from interface: Area
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).

Specified by:
isRoom in interface Area
Overrides:
isRoom in class StdArea
Parameters:
R - the Room object to check for
Returns:
whether it belongs to this Area or no.
See Also:
Room

getProperMap

public java.util.Enumeration getProperMap()
Description copied from interface: Area
Returns an enumerator for all previously loaded rooms that properly belongs to this area.

Specified by:
getProperMap in interface Area
Overrides:
getProperMap in class StdArea
Returns:
an enumerator of Room objects
See Also:
Area.getCompleteMap(), Room

getMetroCollection

public java.util.Vector getMetroCollection()
Description copied from interface: Area
Returns a collection of all of this areas rooms which have been loaded, and all rooms of all child areas which have been loaded, excluding those not yet cached.

Specified by:
getMetroCollection in interface Area
Overrides:
getMetroCollection in class StdArea
Returns:
a vector of Room objects
See Also:
Room

getCompleteMap

public java.util.Enumeration getCompleteMap()
Description copied from interface: Area
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. The Enumerator returned is thus a more complete set than returned by getProperMap

Specified by:
getCompleteMap in interface Area
Overrides:
getCompleteMap in class StdArea
Returns:
an enumerator of Room objects
See Also:
Area.getProperMap(), Room