|
|||||||||
| 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
public class StdGrid
| Field Summary | |
|---|---|
protected java.util.Vector |
descriptions
|
protected java.util.Vector |
displayTexts
|
protected java.util.Vector |
gridexits
|
protected Room[][] |
subMap
|
protected int |
xsize
|
protected int |
ysize
|
| Fields inherited from class com.planet_ink.coffee_mud.Locales.StdRoom |
|---|
affects, amDestroyed, baseEnvStats, behaviors, contents, description, displayText, doors, envStats, exits, expirationDate, gridParent, imageName, inhabitants, mobility, myArea, myID, myResource, name, resourceFound, scripts, skyedYet, tickStatus, xtraValues |
| Constructor Summary | |
|---|---|
StdGrid()
|
|
| Method Summary | |
|---|---|
void |
addOuterExit(WorldMap.CrossExit x)
|
protected Room |
alternativeLink(Room room,
Room defaultRoom,
int dir)
|
protected void |
buildFinalLinks()
|
void |
buildGrid()
|
void |
clearGrid(Room backHere)
|
protected void |
cloneFix(Room E)
|
void |
delOuterExit(WorldMap.CrossExit x)
|
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.Vector |
getAllRooms()
|
Room |
getAltRoomFrom(Room loc,
int direction)
|
protected Room[][] |
getBuiltGrid()
|
Room |
getGridChild(int x,
int y)
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()
|
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)
|
Room |
getRandomGridChild()
Returns a random Room object that is a child of this one. |
int[] |
getRoomXY(java.lang.String roomID)
Returns the XY coordinates of the Room with the given roomID in int[]{x,y} format. |
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.Vector |
outerExits()
|
Room |
prepareGridLocale(Room fromRoom,
Room toRoom,
int direction)
|
Room |
prepareRoomInDir(Room fromRoom,
int direction)
|
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 |
setXGridSize(int x)
Sets the total width of this grid. |
void |
setYGridSize(int y)
Sets the total height of this grid. |
void |
tryFillInExtraneousExternal(WorldMap.CrossExit EX,
Exit ox)
|
int |
xGridSize()
Returns the total width of this grid. |
int |
yGridSize()
Returns the total height of this grid |
| 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.Locales.interfaces.Room |
|---|
addInhabitant, addItem, addItemRefuse, bringItemHere, bringMobHere, clearSky, delInhabitant, delItem, domainConditions, domainType, fetchAnyItem, fetchFromMOBRoomFavorsItems, fetchFromMOBRoomItemExit, fetchFromRoomFavorItems, fetchFromRoomFavorMOBs, fetchInhabitant, fetchInhabitant, fetchItem, fetchItem, fetchPCInhabitant, getArea, getContextName, getExitInDir, getGridParent, getMobility, getPairedExit, getRawExit, getReverseExit, getRoomInDir, giveASky, isContent, isHere, isInhabitant, isSameRoom, myResource, numInhabitants, numItems, numPCInhabitants, pointsPerMove, rawDoors, recoverRoomStats, resetVectors, resourceChoices, roomDescription, roomID, roomTitle, send, sendOthers, setArea, setGridParent, setRawExit, setResource, setRoomID, show, show, show, show, show, showHappens, showHappens, showOthers, showOthers, showSource, showSource, startItemRejuv, thirstPerRound, toggleMobility |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, 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, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Affectable |
|---|
addEffect, addNonUninvokableEffect, baseEnvStats, delEffect, envStats, fetchEffect, fetchEffect, numEffects, recoverEnvStats, setBaseEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, 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, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
protected Room[][] subMap
protected java.util.Vector descriptions
protected java.util.Vector displayTexts
protected java.util.Vector gridexits
protected int xsize
protected int ysize
| Constructor Detail |
|---|
public StdGrid()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdRoomprotected void cloneFix(Room E)
cloneFix in class StdRoompublic java.lang.String getGridChildLocaleID()
getGridChildLocaleID in interface GridLocalepublic CMObject newInstance()
CMObject
newInstance in interface CMObjectnewInstance in class StdRoompublic void destroy()
Environmental
destroy in interface Environmentaldestroy in class StdRoompublic int xGridSize()
GridZones
xGridSize in interface GridZonespublic int yGridSize()
GridZones
yGridSize in interface GridZonespublic void setXGridSize(int x)
GridZones
setXGridSize in interface GridZonesx - the widthpublic void setYGridSize(int y)
GridZones
setYGridSize in interface GridZonesy - the heightpublic int[] getRoomXY(java.lang.String roomID)
GridZones
getRoomXY in interface GridZonesroomID - the roomID of the room to get coordinates for
public Room prepareRoomInDir(Room fromRoom,
int direction)
prepareRoomInDir in interface RoomprepareRoomInDir in class StdRoom
public Room prepareGridLocale(Room fromRoom,
Room toRoom,
int direction)
prepareGridLocale in interface GridLocalepublic void setDescription(java.lang.String newDescription)
Environmental
setDescription in interface EnvironmentalsetDescription in class StdRoomnewDescription - the basic detail description of this objectpublic void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText in interface EnvironmentalsetDisplayText in class StdRoomnewDisplayText - the string describing how this object looks in the roompublic java.util.Vector outerExits()
outerExits in interface GridLocalepublic void addOuterExit(WorldMap.CrossExit x)
addOuterExit in interface GridLocalepublic void delOuterExit(WorldMap.CrossExit x)
delOuterExit in interface GridLocale
public Room getAltRoomFrom(Room loc,
int direction)
protected Room[][] getBuiltGrid()
public Room getRandomGridChild()
GridZones
getRandomGridChild in interface GridZonesRoompublic java.util.Vector getAllRooms()
getAllRooms in interface GridLocale
protected void halfLink(Room room,
Room loc,
int dirCode,
Exit o)
protected Room alternativeLink(Room room,
Room defaultRoom,
int dir)
protected void linkRoom(Room room,
Room loc,
int dirCode,
Exit o,
Exit ao)
protected int[] initCenterRoomXY(int dirCode)
protected int[] initCenterRoomAdjustsXY(int dirCode)
protected Room findCenterRoom(int dirCode)
protected void buildFinalLinks()
public void tryFillInExtraneousExternal(WorldMap.CrossExit EX,
Exit ox)
public void fillInTheExtraneousExternals(Room[][] subMap,
Exit ox)
public void buildGrid()
buildGrid in interface GridLocalepublic boolean isMyGridChild(