|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Locales.StdRoom
com.planet_ink.coffee_mud.Locales.StdGrid
com.planet_ink.coffee_mud.Locales.StdMaze
public class StdMaze
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Locales.interfaces.GridLocale |
---|
GridLocale.CrossExit |
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Locales.interfaces.Room |
---|
Room.VariationCode |
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
---|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move |
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.GridZones |
---|
GridZones.XYVector |
Field Summary |
---|
Fields inherited from class com.planet_ink.coffee_mud.Locales.StdGrid |
---|
descriptions, displayTexts, gridexits, subMap, xsize, ysize |
Fields inherited from class com.planet_ink.coffee_mud.Locales.StdRoom |
---|
affectPhyStats, affects, amDestroyed, atmosphere, basePhyStats, behaviors, cachedImageName, climask, combatTurnMobIndex, contents, description, displayText, doors, exits, expirationDate, gridParent, inhabitants, lastResourceTime, me, mobility, myArea, myID, myResource, name, phyStats, rawImageName, roomRecoverMarker, scripts, skyedYet, STDCODES, tickStatus, xtraValues |
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 | |
---|---|
StdMaze()
|
Method Summary | |
---|---|
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. |
protected void |
buildMaze()
|
protected Room |
findCenterRoom(int dirCode)
|
protected Room |
getGridRoom(int x,
int y)
|
protected int |
getX(int x,
int dirCode)
|
protected int |
getY(int y,
int dirCode)
|
protected boolean |
goodDir(int x,
int y,
int dirCode)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
protected void |
mazify(java.util.Set<Room> visited,
int x,
int y)
|
protected Room |
roomDir(int x,
int y,
int dirCode)
|
Methods inherited from class com.planet_ink.coffee_mud.Locales.StdGrid |
---|
addOuterExit, alternativeLink, buildFinalLinks, clearGrid, cloneFix, delOuterExit, destroy, fillInTheExtraneousExternals, getAllRooms, getAllRoomsFilled, getAltRoomFrom, getBuiltGrid, getExistingRooms, getGridChild, getGridChild, getGridChild, getGridChildCode, getGridChildLocaleID, getGridChildX, getGridChildY, getRandomGridChild, getRoomXY, getRoomXY, getStat, getStatCodes, getStdGridCodeNum, halfLink, initCenterRoomAdjustsXY, initCenterRoomXY, isMyGridChild, linkRoom, newInstance, okMessage, outerExits, prepareGridLocale, prepareRoomInDir, setDescription, setDisplayText, setStat, setXGridSize, setYGridSize, tryFillInExtraneousExternal, xGridSize, yGridSize |
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.ItemPossessor |
---|
addItem, moveItemTo, moveItemTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemCollection |
---|
addItem, delAllItems, delItem, eachItem, findItem, findItem, findItems, findItems, getItem, getRandomItem, isContent, items, numItems |
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, minRange, miscTextFormat, Name, rawImage, sameAs, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, tick |
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.MsgListener |
---|
executeMsg |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, initializeClass |
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 |
Constructor Detail |
---|
public StdMaze()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdGrid
protected Room getGridRoom(int x, int y)
getGridRoom
in class StdGrid
protected Room findCenterRoom(int dirCode)
findCenterRoom
in class StdGrid
protected boolean goodDir(int x, int y, int dirCode)
protected Room roomDir(int x, int y, int dirCode)
protected int getY(int y, int dirCode)
protected int getX(int x, int dirCode)
protected void mazify(java.util.Set<Room> visited, int x, int y)
protected void buildMaze()
public void buildGrid()
GridLocale
buildGrid
in interface GridLocale
buildGrid
in class StdGrid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |