GridZones, Affectable, Behavable, CMObject, Contingent, Environmental, Expireable, ItemCollection, ItemPossessor, Modifiable, MsgListener, Physical, PhysicalAgent, Places, StatsAffecting, Tickable, GridLocale, Room, java.lang.Cloneable, java.lang.Comparable<CMObject>CaveGrid, DesertGrid, EndlessOcean, EndlessSky, GreatLake, HillsGrid, JungleGrid, MountainsGrid, MountainSurfaceGrid, OceanGrid, PlainsGrid, RoadGrid, ShoreGrid, StdMaze, StoneGrid, SwampGrid, UnderWaterGrid, Whirlpool, WoodRoomGrid, WoodsGridpublic class StdGrid extends StdRoom implements GridLocale
GridLocale.CrossExitGridZones.XYVectorItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.MoveRoom.VariationCode| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String[] |
descriptions |
|
protected java.lang.String[] |
displayTexts |
|
protected java.util.List<GridLocale.CrossExit> |
gridexits |
|
protected Room[][] |
subMap |
|
protected int |
xsize |
|
protected int |
ysize |
idConverterALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_VOID, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES, placeComparatorDOMAIN_INDOOR_MAP, DOMAIN_INDOORS_AIR, DOMAIN_INDOORS_CAVE, DOMAIN_INDOORS_CAVE_SEAPORT, DOMAIN_INDOORS_DESCS, DOMAIN_INDOORS_MAGIC, DOMAIN_INDOORS_METAL, DOMAIN_INDOORS_SEAPORT, DOMAIN_INDOORS_STONE, DOMAIN_INDOORS_UNDERWATER, DOMAIN_INDOORS_WATERSURFACE, DOMAIN_INDOORS_WOOD, DOMAIN_OUTDOOR_DESCS, DOMAIN_OUTDOOR_MAP, DOMAIN_OUTDOORS_AIR, DOMAIN_OUTDOORS_CITY, DOMAIN_OUTDOORS_DESERT, DOMAIN_OUTDOORS_HILLS, DOMAIN_OUTDOORS_JUNGLE, DOMAIN_OUTDOORS_MOUNTAINS, DOMAIN_OUTDOORS_PLAINS, DOMAIN_OUTDOORS_ROCKS, DOMAIN_OUTDOORS_SEAPORT, DOMAIN_OUTDOORS_SPACEPORT, DOMAIN_OUTDOORS_SWAMP, DOMAIN_OUTDOORS_UNDERWATER, DOMAIN_OUTDOORS_WATERSURFACE, DOMAIN_OUTDOORS_WOODS, FILTER_ROOMONLY, INDOORS_roomID, affectPhyStats, affects, amDestroyed, atmosphere, basePhyStats, behaviors, cachedImageName, climask, combatTurnMobIndex, contents, description, displayText, doors, exits, expirationDate, gridParent, inhabitants, lastResourceTime, me, mobility, myArea, myResource, name, phyStats, rawImageName, roomRecoverMarker, scripts, skyedYet, STDCODES, 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 |
|---|---|
StdGrid() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addOuterExit(GridLocale.CrossExit x) |
Normally the grid-child rooms can only exit to each other, or to
the same places as the gridlocale host.
|
protected Room |
alternativeLink(Room room,
Room defaultRoom,
int dir) |
|
protected void |
buildFinalLinks() |
|
void |
buildGrid() |
Called whenever structural changes are made to either the grid
room, or one of the adjacent connecting rooms, this method will
"rebuild" the grids internal structure as necessary.
|
void |
clearGrid(Room backHere) |
Empties the grid-children rooms of all contents, mob and item,
and then destroys the internal grid-children rooms themselves.
|
protected void |
cloneFix(Room E) |
|
void |
delOuterExit(GridLocale.CrossExit x) |
Normally the grid-child rooms can only exit to each other, or to
the same places as the gridlocale host.
|
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.
|
void |
fillInTheExtraneousExternals(Room[][] subMap,
Exit ox) |
|
protected Room |
findCenterRoom(int dirCode) |
|
java.util.List<Room> |
getAllRooms() |
Returns a read-only list of grid-child rooms.
|
java.util.List<Room> |
getAllRoomsFilled() |
Returns a read-only list of grid-child rooms, and any skys or seas
attached to them.
|
Room |
getAltRoomFrom(Room loc,
int direction) |
|
protected Room[][] |
getBuiltGrid() |
|
java.util.Iterator<Room> |
getExistingRooms() |
Returns a read-only iterator over the existing grid-child rooms.
|
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
|
java.lang.String |
getGridChildLocaleID() |
Gets the Room ID() for the type of Java room class used to
populate the grid.
|
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
|
protected Room |
getGridRoom(int x,
int y) |
|
int |
getGridSize() |
Returns the total number of possible grid-child rooms that
this locale could possibly generate.
|
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 |
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 int |
getStdGridCodeNum(java.lang.String code) |
|
protected void |
halfLink(Room room,
Room loc,
int dirCode,
Exit o) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected int[] |
initCenterRoomAdjustsXY(int dirCode) |
|
protected int[] |
initCenterRoomXY(int dirCode) |
|
boolean |
isMyGridChild(Room loc) |
Returns whether the given Room is a child of this
particular Grid instance.
|
protected void |
linkRoom(Room room,
Room loc,
int dirCode,
Exit o,
Exit ao) |
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
boolean |
okMessage(Environmental myHost,
CMMsg msg) |
The general message event previewer for the object.
|
java.util.Iterator<GridLocale.CrossExit> |
outerExits() |
Normally the grid-child rooms can only exit to each other, or to
the same places as the gridlocale host.
|
Room |
prepareGridLocale(Room fromRoom,
Room toRoom,
int direction) |
Returns the room found in the given direction from the from-room,
where the stand-in room is the to-room.
|
Room |
prepareRoomInDir(Room fromRoom,
int direction) |
This method is called by an adjoining room to resolve this room to its
final object.
|
void |
setDescription(java.lang.String newDescription) |
Sets the basic description of this object, as shown when the item is directly LOOKed at.
|
void |
setDisplayText(java.lang.String newDisplayText) |
Sets the raw string used to show what this object looks like in the room.
|
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.
|
void |
setXGridSize(int x) |
Sets the total width of this grid.
|
void |
setYGridSize(int y) |
Sets the total height of this grid.
|
void |
tryFillInExtraneousExternal(GridLocale.CrossExit EX,
Exit ox) |
|
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, setBasePhyStatsaddBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scriptscopyOf, initializeClassamDestroyed, isSavable, setSavabledescription, displayText, image, isGeneric, L, minRange, miscTextFormat, Name, rawImage, sameAs, setImage, setMiscText, setName, textexpirationDate, setExpirationDateaddItem, delAllItems, delItem, eachItem, findItem, findItem, findItems, findItems, getItem, getRandomItem, isContent, items, numItemsaddItem, getContextName, moveItemTo, moveItemTogetSaveStatIndex, isStatexecuteMsgclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescription, displayText, genericName, namegetAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateTypeaddInhabitant, bringMobHere, clearSky, delAllInhabitants, delInhabitant, domainType, eachInhabitant, fetchExit, fetchFromMOBRoomFavorsItems, fetchFromMOBRoomFavorsMOBs, fetchFromMOBRoomItemExit, fetchFromRoomFavorExits, fetchFromRoomFavorItems, fetchFromRoomFavorMOBs, fetchInhabitant, fetchInhabitant, fetchInhabitantExact, fetchInhabitants, fetchRandomInhabitant, getArea, getCombatTurnMobIndex, getExitInDir, getGridParent, getMobility, getPairedExit, getRawDoor, getRawExit, getReverseDir, getReverseExit, getRoomInDir, getSky, giveASky, inhabitants, isHere, isInhabitant, itemsRecursive, maxRange, myResource, numInhabitants, numPCInhabitants, pointsPerMove, rawDoors, recoverRoomStats, resourceChoices, roomID, send, sendOthers, setArea, setCombatTurnMobIndex, setGridParent, setRawDoor, setRawExit, setResource, setRoomID, show, show, show, show, show, showHappens, showHappens, showOthers, showOthers, showSource, showSource, startItemRejuv, thirstPerRound, toggleMobilityaffectCharState, affectCharStats, affectPhyStatsaddBehavior, addEffect, addInhabitant, addItem, addItem, addNonUninvokableEffect, addScript, affectCharState, affectCharStats, affectPhyStats, amDestroyed, basePhyStats, baseThirst, behaviors, bringMobHere, clearSky, compareTo, copyOf, delAllBehaviors, delAllEffects, delAllInhabitants, delAllItems, delAllScripts, delBehavior, delEffect, delInhabitant, delItem, delScript, description, description, displayText, displayText, domainType, eachBehavior, eachEffect, eachInhabitant, eachItem, eachScript, effects, executeMsg, expirationDate, fetchBehavior, fetchBehavior, fetchEffect, fetchEffect, fetchExit, fetchFromMOBRoomFavorsItems, fetchFromMOBRoomFavorsMOBs, fetchFromMOBRoomItemExit, fetchFromRoomFavorExits, fetchFromRoomFavorItems, fetchFromRoomFavorMOBs, fetchInhabitant, fetchInhabitant, fetchInhabitantExact, fetchInhabitants, fetchRandomInhabitant, fetchScript, findItem, findItem, findItems, findItems, genericName, getArea, getAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, getCodeNum, getCombatTurnMobIndex, getContextName, getExitInDir, getGridParent, getItem, getMobility, getMovementCost, getPairedExit, getRandomItem, getRawDoor, getRawExit, getReverseDir, getReverseExit, getRoomInDir, getRoomSize, getSaveStatIndex, getSky, getTickStatus, giveASky, image, inhabitants, initializeClass, insertItemUpTop, isContent, isGeneric, isHere, isInhabitant, isSavable, isStat, items, itemsRecursive, L, maxRange, minRange, miscTextFormat, moveItemTo, moveItemTo, myResource, name, name, Name, numBehaviors, numEffects, numInhabitants, numItems, numPCInhabitants, numScripts, phyStats, pointsPerMove, rawDoors, rawImage, recoverPhyStats, recoverRoomStats, resourceChoices, roomID, sameAs, scripts, send, sendAndExec, sendOthers, sendTrailermsgs, setArea, setAtmosphere, setBasePhyStats, setClimateType, setCombatTurnMobIndex, setExpirationDate, setGridParent, setImage, setMiscText, setMovementCost, setName, setRawDoor, setRawExit, setResource, setRoomID, setRoomSize, setSavable, show, show, show, show, show, showHappens, showHappens, showOthers, showOthers, showSource, showSource, startItemRejuv, text, thirstPerRound, tick, toggleMobilitygetTickStatus, tickprotected Room[][] subMap
protected java.lang.String[] descriptions
protected java.lang.String[] displayTexts
protected java.util.List<GridLocale.CrossExit> gridexits
protected int xsize
protected int ysize
public java.lang.String ID()
CMObjectpublic java.lang.String getGridChildLocaleID()
GridLocalegetGridChildLocaleID in interface GridLocalepublic int getGridSize()
GridLocalegetGridSize in interface GridLocalepublic Room getGridChild(GridZones.XYVector xy)
GridZonesgetGridChild in interface GridZonesxy - the x and y coordinateRoom,
GridZones.XYVectorpublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectnewInstance in class StdRoompublic void destroy()
Contingentdestroy in interface Contingentdestroy in class StdRoompublic int xGridSize()
GridZonespublic int yGridSize()
GridZonespublic void setXGridSize(int x)
GridZonessetXGridSize in interface GridZonesx - the widthpublic void setYGridSize(int y)
GridZonessetYGridSize in interface GridZonesy - the heightpublic GridZones.XYVector getRoomXY(java.lang.String roomID)
GridZonesgetRoomXY in interface GridZonesroomID - the roomID of the room to get coordinates forGridZones.XYVectorpublic GridZones.XYVector getRoomXY(Room room)
GridZonesgetRoomXY in interface GridZonesroom - the room to get coordinates forGridZones.XYVectorpublic Room prepareRoomInDir(Room fromRoom, int direction)
RoomprepareRoomInDir in interface RoomprepareRoomInDir in class StdRoomfromRoom - the room being traveled fromdirection - the direction from the fromRoom being travelled inpublic Room prepareGridLocale(Room fromRoom, Room toRoom, int direction)
GridLocaleprepareGridLocale in interface GridLocalefromRoom - the room moving from, also the grid childtoRoom - the room ostensibly being moved intodirection - the direction from the from room movingpublic void setDescription(java.lang.String newDescription)
EnvironmentalsetDescription in interface EnvironmentalsetDescription in class StdRoomnewDescription - the basic detail description of this objectpublic void setDisplayText(java.lang.String newDisplayText)
EnvironmentalsetDisplayText in interface EnvironmentalsetDisplayText in class StdRoomnewDisplayText - the string describing how this object looks in the roompublic java.util.Iterator<GridLocale.CrossExit> outerExits()
GridLocaleouterExits in interface GridLocaleGridLocale.CrossExit,
GridLocale.addOuterExit(GridLocale.CrossExit),
GridLocale.delOuterExit(GridLocale.CrossExit)public void addOuterExit(GridLocale.CrossExit x)
GridLocaleaddOuterExit in interface GridLocalex - the new cross ("outer") exitGridLocale.CrossExit,
GridLocale.outerExits(),
GridLocale.delOuterExit(GridLocale.CrossExit)public void delOuterExit(GridLocale.CrossExit x)
GridLocaledelOuterExit in interface GridLocalex - the existing cross ("outer") exit to deleteGridLocale.CrossExit,
GridLocale.outerExits(),
GridLocale.addOuterExit(GridLocale.CrossExit)protected Room[][] getBuiltGrid()
public Room getRandomGridChild()
GridZonesgetRandomGridChild in interface GridZonesRoompublic java.util.List<Room> getAllRooms()
GridLocalegetAllRooms in interface GridLocalepublic java.util.List<Room> getAllRoomsFilled()
GridLocalegetAllRoomsFilled in interface GridLocalepublic final java.util.Iterator<Room> getExistingRooms()
GridLocalegetExistingRooms in interface GridLocaleprotected int[] initCenterRoomXY(int dirCode)
protected int[] initCenterRoomAdjustsXY(int dirCode)
protected Room findCenterRoom(int dirCode)
protected void buildFinalLinks()
public void tryFillInExtraneousExternal(GridLocale.CrossExit EX, Exit ox)
public void buildGrid()
GridLocalebuildGrid in interface GridLocalepublic boolean isMyGridChild(Room loc)
GridZonesisMyGridChild in interface GridZonesloc - a Room objectRoompublic void clearGrid(Room backHere)
GridLocaleclearGrid in interface GridLocalebackHere - a room to teleport *ALL* mobs and items topublic java.lang.String getGridChildCode(Room loc)
GridZonesgetGridChildCode in interface GridZonesloc - a Room objectRoom,
GridZones.getGridChild(String)public int getGridChildX(Room loc)
GridZonesgetGridChildX in interface GridZonesloc - the Room objectRoompublic int getGridChildY(Room loc)
GridZonesgetGridChildY in interface GridZonesloc - the Room objectRoompublic Room getGridChild(java.lang.String childCode)
GridZonesgetGridChild in interface GridZoneschildCode - a fully-qualified Room ID for this RoomRoom,
GridZones.getGridChildCode(Room)public Room getGridChild(int x, int y)
GridZonesgetGridChild in interface GridZonesx - the x coordinatey - the y coordinateRoomprotected Room getGridRoom(int x, int y)
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListenerokMessage in interface MsgListenerokMessage in class StdRoommyHost - 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 StdRoomcode - 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 StdRoomcode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()protected int getStdGridCodeNum(java.lang.String code)
public java.lang.String[] getStatCodes()
ModifiablegetStatCodes in interface ModifiablegetStatCodes in class StdRoomModifiable.getStat(String),
Modifiable.setStat(String, String)