Area
, GridZones
, Affectable
, Behavable
, CMObject
, Contingent
, Economics
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Places
, StatsAffecting
, Tickable
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
StdThinGridArea
public class StdGridArea extends StdArea implements Area, GridZones
Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator, Area.State, Area.Stats
GridZones.XYVector
StdArea.AreaInstanceChild, StdArea.IStatContext
Modifier and Type | Field | Description |
---|---|---|
protected int |
xSize |
|
protected int |
yLength |
|
protected int |
ySize |
|
static java.lang.String |
ZEROES |
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
_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, xtraValues
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 |
---|---|
StdGridArea() |
Modifier and Type | Method | Description |
---|---|---|
Room |
getGridChild(int x,
int y) |
Returns the Room object at the given coordinates.
|
Room |
getGridChild(GridZones.XYVector xy) |
Returns the Room object at the given coordinates.
|
Room |
getGridChild(java.lang.String childCode) |
Returns the fully-qualified Room ID of this room
|
java.lang.String |
getGridChildCode(Room loc) |
Returns the fully-qualified Room ID of this room
|
int |
getGridChildX(Room loc) |
Returns the X coordinate of the given Room object
|
int |
getGridChildY(Room loc) |
Returns the Y coordinate of the given Room object
|
java.lang.String |
getNewRoomID(Room startRoom,
int direction) |
Generates a new RoomID for a new Room in this area.
|
Room |
getRandomGridChild() |
Returns a random Room object that is a child of this one.
|
GridZones.XYVector |
getRoomXY(Room room) |
Returns the XY coordinates of the Room, if a child of
this gridzone, in XYVector format.
|
GridZones.XYVector |
getRoomXY(java.lang.String roomID) |
Returns the XY coordinates of the Room with the given roomID
in XYVector format.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
isMyGridChild(Room loc) |
Returns whether the given Room is a child of this
particular Grid instance.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
protected GridZones.XYVector |
posFromRoomID(Room loc) |
|
protected java.lang.String |
roomIDFromPos(int x,
int y) |
|
void |
setXGridSize(int x) |
Sets the total width of this grid.
|
void |
setYGridSize(int y) |
Sets the total height of this grid.
|
int |
xGridSize() |
Returns the total width of this grid.
|
int |
yGridSize() |
Returns the total height of this grid
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats
addBlurbFlag, addChild, addMetroRoom, addMetroRoomnumber, addParent, addProperRoom, addProperRoomnumber, addSubOp, amISubOp, areaBlurbFlags, canChild, canParent, delBlurbFlag, delMetroRoom, delMetroRoomnumber, delProperRoom, delProperRoomnumber, delSubOp, fillInAreaRoom, fillInAreaRooms, flags, getArchivePath, getAreaIStats, getAreaState, getAreaStats, getAuthorID, getBlurbFlag, getCachedRoomnumbers, getChild, getChildren, getClimateObj, getCompleteMap, getFilledCompleteMap, getFilledProperMap, getMetroMap, 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, subOps
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
copyOf, initializeClass
amDestroyed, destroy, isSavable, setSavable
getFinalBudget, getFinalCurrency, getFinalDevalueRate, getFinalIgnoreMask, getFinalInvResetRate, getFinalItemPricingAdjustments, getFinalPrejudiceFactors, getRawBbudget, getRawCurrency, getRawDevalueRate, getRawIgnoreMask, getRawInvResetRate, getRawItemPricingAdjustments, getRawPrejudiceFactors, setBudget, setCurrency, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, text
expirationDate, setExpirationDate
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
executeMsg, okMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
description, displayText, genericName, name
getAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateType
affectCharState, affectCharStats, affectPhyStats
addBehavior, 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, executeMsg, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchScript, fillInAreaRoom, fillInAreaRooms, finalAreaBudget, finalAreaDevalueRate, finalCurrency, finalIgnoreMask, finalInvResetRate, finalItemPricingAdjustments, finalPrejudiceFactors, flags, genericName, getArchivePath, getAreaIStats, 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, getParent, getParents, getParentsIterator, getParentsRecurse, getParentsReverseIterator, getPercentRoomsCached, getPiety, getPiety, getPlayerLevel, getProperMap, getProperRoomnumbers, getRandomMetroRoom, getRandomProperRoom, getRawBbudget, getRawCurrency, getRawDevalueRate, getRawIgnoreMask, getRawInvResetRate, getRawItemPricingAdjustments, getRawPrejudiceFactors, getRoom, getRoomBase, getSaveStatIndex, getStat, getStatCodes, 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, numAllBlurbFlags, numBehaviors, numberOfProperIDedRooms, numBlurbFlags, numEffects, numScripts, okMessage, phyStats, properSize, rawImage, recoverPhyStats, removeChild, removeParent, sameAs, scripts, setArchivePath, setAreaState, setAtmosphere, setAuthorID, setBasePhyStats, setBudget, setClimateObj, setClimateType, setCurrency, setDescription, setDevalueRate, setDisplayText, setExpirationDate, setIgnoreMask, setImage, setInvResetRate, setItemPricingAdjustments, setMiscText, setName, setPlayerLevel, setPrejudiceFactors, setProperRoomnumbers, setSavable, setStat, setSubOpList, setTheme, setTimeObj, subOps, text, tick
getTickStatus, name, tick
public static final java.lang.String ZEROES
protected int xSize
protected int ySize
protected int yLength
public java.lang.String ID()
CMObject
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
newInstance
in class StdArea
public java.lang.String getNewRoomID(Room startRoom, int direction)
Area
getNewRoomID
in interface Area
getNewRoomID
in class StdArea
startRoom
- the room connected to the upcoming new one (or null)direction
- the direction from the startRoom the new one will goRoom
protected java.lang.String roomIDFromPos(int x, int y)
public Room getGridChild(int x, int y)
GridZones
getGridChild
in interface GridZones
x
- the x coordinatey
- the y coordinateRoom
public GridZones.XYVector getRoomXY(java.lang.String roomID)
GridZones
getRoomXY
in interface GridZones
roomID
- the roomID of the room to get coordinates forGridZones.XYVector
public GridZones.XYVector getRoomXY(Room room)
GridZones
getRoomXY
in interface GridZones
room
- the room to get coordinates forGridZones.XYVector
protected GridZones.XYVector posFromRoomID(Room loc)
public int getGridChildX(Room loc)
GridZones
getGridChildX
in interface GridZones
loc
- the Room objectRoom
public int getGridChildY(Room loc)
GridZones
getGridChildY
in interface GridZones
loc
- the Room objectRoom
public java.lang.String getGridChildCode(Room loc)
GridZones
getGridChildCode
in interface GridZones
loc
- a Room objectRoom
,
GridZones.getGridChild(String)
public Room getRandomGridChild()
GridZones
getRandomGridChild
in interface GridZones
Room
public Room getGridChild(java.lang.String childCode)
GridZones
getGridChild
in interface GridZones
childCode
- a fully-qualified Room ID for this RoomRoom
,
GridZones.getGridChildCode(Room)
public boolean isMyGridChild(Room loc)
GridZones
isMyGridChild
in interface GridZones
loc
- a Room objectRoom
public int xGridSize()
GridZones
public int yGridSize()
GridZones
public void setXGridSize(int x)
GridZones
setXGridSize
in interface GridZones
x
- the widthpublic void setYGridSize(int y)
GridZones
setYGridSize
in interface GridZones
y
- the heightpublic Room getGridChild(GridZones.XYVector xy)
GridZones
getGridChild
in interface GridZones
xy
- the x and y coordinateRoom
,
GridZones.XYVector