|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Areas.StdArea
com.planet_ink.coffee_mud.Areas.StdGridArea
public class StdGridArea
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area |
|---|
Area.AreaInstanceChild, Area.CompleteRoomEnumerator, Area.RoomComparator, Area.RoomIDComparator, Area.RoomIDEnumerator, Area.State, Area.Stats |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.GridZones |
|---|
GridZones.XYVector |
| Field Summary | |
|---|---|
protected int |
xSize
|
protected int |
yLength
|
protected int |
ySize
|
static java.lang.String |
ZEROES
|
| Fields inherited from class com.planet_ink.coffee_mud.Areas.StdArea |
|---|
affects, amDestroyed, archPath, atmosphere, author, basePhyStats, behaviors, blurbFlags, budget, children, climask, climateObj, currency, derivedAtmo, derivedClimate, derivedTheme, description, devalueRate, empty, emptyStats, expirationDate, flag, ignoreMask, imageName, invResetRate, itemPricingAdjustments, lastPlayerTime, me, metroRoomIDSet, miscText, myClock, name, parents, phyStats, playerLevel, prejudiceFactors, properRoomIDSet, properRooms, scripts, STDAREACODES, subOps, theme, tickStatus, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.Areas.interfaces.Area |
|---|
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, TIME_PASSIVE_LAPSE |
| 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 | |
|---|---|
StdGridArea()
|
|
| 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 |
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 |
| 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.Economics |
|---|
budget, devalueRate, finalBudget, finalDevalueRate, finalIgnoreMask, finalInvResetRate, finalItemPricingAdjustments, finalPrejudiceFactors, ignoreMask, invResetRate, itemPricingAdjustments, prejudiceFactors, setBudget, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors |
| 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, 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, initializeClass |
| 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 |
| 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 |
| Field Detail |
|---|
public static final java.lang.String ZEROES
protected int xSize
protected int ySize
protected int yLength
| Constructor Detail |
|---|
public StdGridArea()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdAreapublic CMObject newInstance()
CMObject
newInstance in interface CMObjectnewInstance in class StdArea
public java.lang.String getNewRoomID(Room startRoom,
int direction)
Area
getNewRoomID in interface AreagetNewRoomID in class StdAreastartRoom - the room connected to the upcoming new one (or null)direction - the direction from the startRoom the new one will go
Room
protected java.lang.String roomIDFromPos(int x,
int y)
public Room getGridChild(int x,
int y)
GridZones
getGridChild in interface GridZonesx - the x coordinatey - the y coordinate
Roompublic GridZones.XYVector getRoomXY(java.lang.String roomID)
GridZones
getRoomXY in interface GridZonesroomID - the roomID of the room to get coordinates for
GridZones.XYVectorpublic GridZones.XYVector getRoomXY(Room room)
GridZones
getRoomXY in interface GridZonesroom - the room to get coordinates for
GridZones.XYVectorprotected GridZones.XYVector posFromRoomID(Room loc)
public int getGridChildX(Room loc)
GridZones
getGridChildX in interface GridZonesloc - the Room object
Roompublic int getGridChildY(Room loc)
GridZones
getGridChildY in interface GridZonesloc - the Room object
Roompublic java.lang.String getGridChildCode(Room loc)
GridZones
getGridChildCode in interface GridZonesloc - a Room object
Room,
GridZones.getGridChild(String)public Room getRandomGridChild()
GridZones
getRandomGridChild in interface GridZonesRoompublic Room getGridChild(java.lang.String childCode)
GridZones
getGridChild in interface GridZoneschildCode - a fully-qualified Room ID for this Room
Room,
GridZones.getGridChildCode(Room)public boolean isMyGridChild(Room loc)
GridZones
isMyGridChild in interface GridZonesloc - a Room object
Roompublic 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 Room getGridChild(GridZones.XYVector xy)
GridZones
getGridChild in interface GridZonesxy - the x and y coordinate
Room,
GridZones.XYVector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||