|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridZones
GridZones is a cross-object interface that applies both to Areas, and Locales. It represents an area (or room) organized like a Grid.
Nested Class Summary | |
---|---|
static class |
GridZones.XYVector
A class for holding x/y coordinates. |
Field Summary |
---|
Method Summary | |
---|---|
Room |
getGridChild(GridZones.XYVector xy)
Returns the Room object at the given coordinates. |
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 |
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 |
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. |
boolean |
isMyGridChild(Room loc)
Returns whether the given Room is a child of this particular Grid instance. |
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 |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name, 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, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Method Detail |
---|
boolean isMyGridChild(Room loc)
loc
- a Room object
Room
java.lang.String getGridChildCode(Room loc)
loc
- a Room object
Room
,
getGridChild(String)
Room getGridChild(java.lang.String childCode)
childCode
- a fully-qualified Room ID for this Room
Room
,
getGridChildCode(Room)
Room getRandomGridChild()
Room
int getGridChildX(Room loc)
loc
- the Room object
Room
int getGridChildY(Room loc)
loc
- the Room object
Room
GridZones.XYVector getRoomXY(java.lang.String roomID)
roomID
- the roomID of the room to get coordinates for
GridZones.XYVector
GridZones.XYVector getRoomXY(Room room)
room
- the room to get coordinates for
GridZones.XYVector
int xGridSize()
int yGridSize()
void setXGridSize(int x)
x
- the widthvoid setYGridSize(int y)
y
- the heightRoom getGridChild(int x, int y)
x
- the x coordinatey
- the y coordinate
Room
Room getGridChild(GridZones.XYVector xy)
xy
- the x and y coordinate
Room
,
GridZones.XYVector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |