Affectable
, Behavable
, java.lang.Cloneable
, CMObject
, java.lang.Comparable<CMObject>
, Contingent
, Environmental
, Expireable
, ItemCollection
, ItemPossessor
, Modifiable
, MsgListener
, Physical
, PhysicalAgent
, Places
, StatsAffecting
, Tickable
GridLocale
, LocationRoom
CaveGrid
, CaveMaze
, CaveRoom
, CaveSeaPort
, CaveSurface
, CityStreet
, ClimbableLedge
, ClimbableSurface
, DarkStoneRoom
, Desert
, DesertGrid
, DesertMaze
, DesertThinGrid
, EndlessOcean
, EndlessSky
, EndlessThinOcean
, EndlessThinSky
, FrozenMountains
, FrozenPlains
, GreatLake
, GreatThinLake
, HideoutShelter
, Hills
, HillsGrid
, HillsThinGrid
, HotRoom
, IcePlains
, IceRoom
, IndoorInTheAir
, IndoorShallowWater
, IndoorUnderWater
, IndoorUnderWaterColumnGrid
, IndoorUnderWaterGrid
, IndoorUnderWaterThinGrid
, IndoorWaterSurface
, IndoorWaterSurfaceColumn
, IndoorWaterThinSurface
, InTheAir
, Jungle
, JungleGrid
, JungleThinGrid
, LargeCaveRoom
, LargeStoneRoom
, LargeWoodRoom
, LongerRoad
, LongestRoad
, LongRoad
, MagicFreeRoom
, MagicShelter
, MetalRoom
, MetalRoomMaze
, Mountains
, MountainsGrid
, MountainsMaze
, MountainsThinGrid
, MountainSurface
, MountainSurfaceGrid
, MountainSurfaceThinGrid
, OceanGrid
, OceanThinGrid
, OverTheLedge
, Plains
, PlainsGrid
, PlainsThinGrid
, Road
, RoadGrid
, RoadThinGrid
, SaltWaterSurface
, SaltWaterSurfaceColumn
, SaltWaterThinSurface
, SeaPort
, SewerMaze
, SewerRoom
, ShallowWater
, ShipDeck
, ShipHeavyGunDeck
, ShipHold
, ShipLightGunDeck
, ShipMagazine
, ShipMedGunDeck
, ShipQuarter
, Shore
, ShoreGrid
, SpacePort
, StdGrid
, StdMaze
, StdRoom
, StdThinGrid
, StoneGrid
, StoneMaze
, StoneRoom
, StoneThinGrid
, Swamp
, SwampGrid
, SwampThinGrid
, ThinRoom
, TreeSurface
, UndergroundCityStreet
, UnderSaltWater
, UnderSaltWaterColumnGrid
, UnderSaltWaterGrid
, UnderSaltWaterMaze
, UnderSaltWaterThinGrid
, UnderWater
, UnderwaterCityStreet
, UnderWaterColumnGrid
, UnderWaterGrid
, UnderWaterMaze
, UnderWaterThinGrid
, Void
, WaterSurface
, WaterSurfaceColumn
, WaterThinSurface
, WetCaveGrid
, WetCaveMaze
, WetCaveRoom
, Whirlpool
, WoodenDeck
, WoodRoom
, WoodRoomGrid
, WoodRoomMaze
, WoodRoomThinGrid
, Woods
, WoodSeaPort
, WoodsGrid
, WoodsMaze
, WoodsThinGrid
public interface Room extends PhysicalAgent, ItemPossessor, Places
Modifier and Type | Interface | Description |
---|---|---|
static class |
Room.VariationCode |
Room titles and descriptions can be coded with xml/html-like tags that denote
different parts that are shown or hidden depending on the weather, the season,
the time of day, or even whether the player has been to the room before.
|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move
Modifier and Type | Field | Description |
---|---|---|
static java.util.Map<java.lang.Object,java.lang.Integer> |
DOMAIN_INDOOR_MAP |
A map of indoor domain descs strings to their ordinal integer
|
static int |
DOMAIN_INDOORS_AIR |
Domain type mask denoting whether the room is indoors, but in the air @see
domainType() |
static int |
DOMAIN_INDOORS_CAVE |
Domain type mask denoting whether the room is indoors, and made of unworked/natural stone @see
domainType() |
static int |
DOMAIN_INDOORS_CAVE_SEAPORT |
Domain type mask denoting whether the room is indoors, and made of cave @see
domainType() |
static java.lang.String[] |
DOMAIN_INDOORS_DESCS |
Domain description array indexed by the (DOMAIN_INDOORS_* - Room.INDOORS) constants.
|
static int |
DOMAIN_INDOORS_MAGIC |
Domain type mask denoting whether the room is indoors, and made of maaaagic @see
domainType() |
static int |
DOMAIN_INDOORS_METAL |
Domain type mask denoting whether the room is indoors, and made of metal @see
domainType() |
static int |
DOMAIN_INDOORS_SEAPORT |
Domain type mask denoting whether the room is indoor seaport, @see
domainType() |
static int |
DOMAIN_INDOORS_STONE |
Domain type mask denoting whether the room is indoors, and made of worked stone @see
domainType() |
static int |
DOMAIN_INDOORS_UNDERWATER |
Domain type mask denoting whether the room is indoors, and underwater @see
domainType() |
static int |
DOMAIN_INDOORS_WATERSURFACE |
Domain type mask denoting whether the room is indoors, with a watery surface @see
domainType() |
static int |
DOMAIN_INDOORS_WOOD |
Domain type mask denoting whether the room is indoors, and made of wood @see
domainType() |
static java.lang.String[] |
DOMAIN_OUTDOOR_DESCS |
Domain description array indexed by the DOMAIN_OUTDOOR_* constants.
|
static java.util.Map<java.lang.Object,java.lang.Integer> |
DOMAIN_OUTDOOR_MAP |
A map of outdoor domain descs strings to their ordinal integer
|
static int |
DOMAIN_OUTDOORS_AIR |
Domain type mask denoting whether the room is outdoors, up in the sky @see
domainType() |
static int |
DOMAIN_OUTDOORS_CITY |
Domain type mask denoting whether the room is outdoors, in the city @see
domainType() |
static int |
DOMAIN_OUTDOORS_DESERT |
Domain type mask denoting whether the room is outdoors, in the desert @see
domainType() |
static int |
DOMAIN_OUTDOORS_HILLS |
Domain type mask denoting whether the room is outdoors, in the hills @see
domainType() |
static int |
DOMAIN_OUTDOORS_JUNGLE |
Domain type mask denoting whether the room is outdoors, in the jungle @see
domainType() |
static int |
DOMAIN_OUTDOORS_MOUNTAINS |
Domain type mask denoting whether the room is outdoors, in the mountains @see
domainType() |
static int |
DOMAIN_OUTDOORS_PLAINS |
Domain type mask denoting whether the room is outdoors, in the grassy plains @see
domainType() |
static int |
DOMAIN_OUTDOORS_ROCKS |
Domain type mask denoting whether the room is outdoors, in the rocky wastes @see
domainType() |
static int |
DOMAIN_OUTDOORS_SEAPORT |
Domain type mask denoting whether the room is outdoors, at a seaport @see
domainType() |
static int |
DOMAIN_OUTDOORS_SPACEPORT |
Domain type mask denoting whether the room is outdoors, at a spaceport @see
domainType() |
static int |
DOMAIN_OUTDOORS_SWAMP |
Domain type mask denoting whether the room is outdoors, in the swamp @see
domainType() |
static int |
DOMAIN_OUTDOORS_UNDERWATER |
Domain type mask denoting whether the room is outdoors, but underwater (think ocean) @see
domainType() |
static int |
DOMAIN_OUTDOORS_WATERSURFACE |
Domain type mask denoting whether the room is outdoors, on the surface of the water @see
domainType() |
static int |
DOMAIN_OUTDOORS_WOODS |
Domain type mask denoting whether the room is outdoors, in the woods @see
domainType() |
static Filterer<Environmental> |
FILTER_ROOMONLY |
a constant used in the Locale item search classes to filter on only items in rooms
|
static int |
INDOORS |
Domain type mask denoting whether the room is indoor (has a roof) @see
domainType() |
idConverter
ALL_CLIMATE_MASK, ATMOSPHERE_INHERIT, CLIMASK_COLD, CLIMASK_DRY, CLIMASK_HOT, CLIMASK_INHERIT, CLIMASK_NORMAL, CLIMASK_VOID, CLIMASK_WET, CLIMASK_WINDY, CLIMATE_DESCS, NUM_CLIMATES, placeComparator
STATUS_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
Modifier and Type | Method | Description |
---|---|---|
void |
addInhabitant(MOB mob) |
Adds the given mob to this room as an inhabitant.
|
void |
bringMobHere(MOB mob,
boolean andFollowers) |
A workhorse method that removes the given mob (and anything
they are riding or being ridden by, recursively, and
optionally any followers, and their riders, recursively)
and places them all in this room.
|
void |
clearSky() |
If this room has attached temporary rooms, such as a sky in an outdoor room,
or underwater rooms in the ocean, this method will empty all of those rooms
of their content, and then destroy those rooms.
|
void |
delAllInhabitants(boolean destroy) |
Removes all the mobs from this room as inhabitants and
optionally destroys the mob objects as well.
|
void |
delInhabitant(MOB mob) |
Removes the given mob from this room as an inhabitant.
|
int |
domainType() |
Returns the domain-code for this room, which tells you something about its physical makeup,
such as whether it is outdoor, if it's in the woods or surrounded by stone, that sort of thing.
|
void |
eachInhabitant(EachApplicable<MOB> applier) |
Applies the given applier Java code to each mob in this room
|
Exit |
fetchExit(java.lang.String itemID) |
Returns the exit in this room with the given name or display text or in
the given direction.
|
PhysicalAgent |
fetchFromMOBRoomFavorsItems(MOB mob,
Item goodLocation,
java.lang.String thingName,
Filterer<Environmental> filter) |
Searches the given mob and this room for a mob, item, or exit that
matches the given search string, favoring the mobs inventory over other
types of objects and items generally.
|
PhysicalAgent |
fetchFromMOBRoomFavorsMOBs(MOB mob,
Item goodLocation,
java.lang.String thingName,
Filterer<Environmental> filter) |
Searches the given mob and this room for a mob, item, or exit that
matches the given search string, favoring the room mobs over other
types of objects.
|
PhysicalAgent |
fetchFromMOBRoomItemExit(MOB mob,
Item goodLocation,
java.lang.String thingName,
Filterer<Environmental> filter) |
Searches the given mob and this room for a mob, item, or exit that
matches the given search string, favoring the mobs inventory over other
types of objects.
|
PhysicalAgent |
fetchFromRoomFavorExits(java.lang.String thingName) |
Searches the room for a mob, item, or exit that matches
the given search string, favoring Exits over other types
of objects.
|
PhysicalAgent |
fetchFromRoomFavorItems(Item goodLocation,
java.lang.String thingName) |
Searches the room for a mob, item, or exit that matches
the given search string, favoring Items over other types
of objects.
|
PhysicalAgent |
fetchFromRoomFavorMOBs(Item goodLocation,
java.lang.String thingName) |
Searches the room for a mob, item, or exit that matches
the given search string, favoring Mobs over other types
of objects.
|
MOB |
fetchInhabitant(int i) |
Returns the inhabitant mob in this room at the given
index, or null if there are none at that index.
|
MOB |
fetchInhabitant(java.lang.String inhabitantID) |
Searches the inhabitants of this room for a mob with the given
ID(), name, or display name.
|
MOB |
fetchInhabitantExact(java.lang.String inhabitantID) |
Searches the inhabitants of this room for a mob with the given
ID(), name, or display name.
|
java.util.List<MOB> |
fetchInhabitants(java.lang.String inhabitantID) |
Searches the inhabitants of this room for mobs with the given
ID(), name, or display name.
|
MOB |
fetchRandomInhabitant() |
Returns a random inhabitant mob in this room, or null
if there are none.
|
Area |
getArea() |
Returns the Area to which this room belongs.
|
int |
getCombatTurnMobIndex() |
Returns the index number which represents which mob's "turn" it is in combat.
|
Exit |
getExitInDir(int direction) |
Returns the Exit in this room, in the given direction.
|
GridLocale |
getGridParent() |
If this room is a grid-child room, this method is called to return
the identity of its parent gridlocale room.
|
boolean |
getMobility() |
Gets whether any mobs in this room may, in fact, leave it.
|
Exit |
getPairedExit(int direction) |
Returns the Exit opposite this one, in the Room in the given direction,
but only if the two exits exist, and have the same Door status.
|
Room |
getRawDoor(int direction) |
Returns the raw unresolved room link found in this room in the given
direction.
|
Exit |
getRawExit(int direction) |
Returns the raw unresolved exit found in this room in the given
direction.
|
int |
getReverseDir(int direction) |
Returns the dir opposite this one, from the Room in the given direction.
|
Exit |
getReverseExit(int direction) |
Returns the Exit opposite this one, in the Room in the given direction.
|
Room |
getRoomInDir(int direction) |
Returns the room in the given direction from this room which, depending
on the exit, may be traveled to.
|
java.util.List<Room> |
getSky() |
If this room requires attached temporary rooms, such as a sky in an outdoor
room, or underwater rooms in the ocean, this method will return any existing
one, or an empty list if none exist yet.
|
void |
giveASky(int depth) |
If this room requires attached temporary rooms, such as a sky in an outdoor
room, or underwater rooms in the ocean, this method will create those rooms
at the given left of depth.
|
java.util.Enumeration<MOB> |
inhabitants() |
Returns an enumeration of all the inhabitants of
this room.
|
boolean |
isHere(Environmental E) |
Returns whether the given object either IS this room, or is IN this room.
|
boolean |
isInhabitant(MOB mob) |
Returns whether the given mob is an inhabitant of this room.
|
java.util.Enumeration<Item> |
itemsRecursive() |
Returns an enumeration of all the items in the room,
any items on any inhabitants also.
|
int |
maxRange() |
Returns the maximum range for ranged weapons in this room.
|
int |
myResource() |
Returns the full resource code for the current gatherable resource in this room.
|
int |
numInhabitants() |
Returns the number of all the inhabitants of
this room.
|
int |
numPCInhabitants() |
Returns the number of player/PC inhabitants of
this room.
|
int |
pointsPerMove() |
Returns the number of movement points to move through this room.
|
Room |
prepareRoomInDir(Room fromRoom,
int direction) |
This method is called by an adjoining room to resolve this room to its
final object.
|
Room[] |
rawDoors() |
Returns array of the Raw room objects that this room connects to via
exits.
|
void |
recoverRoomStats() |
Causes the room stat affects to be reevaluated, as well as the stat affects
of every inhabitant, exit, and item in the room.
|
java.util.List<java.lang.Integer> |
resourceChoices() |
Returns a list of all resource codes for potentially gatherable resources in this room.
|
java.lang.String |
roomID() |
The room ID is the "address" of the room on the world map.
|
void |
send(MOB source,
CMMsg msg) |
Sends the message to the given source, then to the room, and then
handles any trailing messages.
|
void |
sendOthers(MOB source,
CMMsg msg) |
Sends the message to the room, skipping the given source, and then
handles any trailing messages.
|
void |
setArea(Area newArea) |
Sets the Area to which this room should belong, which also notifies the Area
object that this room is a new member, and removing itself from any previous
Area it belonged to in the past.
|
void |
setCombatTurnMobIndex(int index) |
Sets the index number which represents which mob's "turn" it is in combat.
|
void |
setGridParent(GridLocale room) |
If this room is a grid-child room, this method is called to notify this child
as to the identity of its parent gridlocale room.
|
void |
setRawDoor(int direction,
Room R) |
Sets the Room link from in this room to the other
in the given direction.
|
void |
setRawExit(int direction,
Exit E) |
Sets the Exit object found in this room in the given direction.
|
void |
setResource(int resourceCode) |
Sets the full resource code for the current gatherable resource in this room.
|
void |
setRoomID(java.lang.String newRoomID) |
Changes the room ID of this room.
|
boolean |
show(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls send to send the message.
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int srcCode,
int tarCode,
int othCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls send to send the message.
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls send to send the message.
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int srcCode,
java.lang.String srcMessage,
int tarCode,
java.lang.String tarMessage,
int othCode,
java.lang.String othMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls send to send the message.
|
boolean |
show(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String srcMessage,
java.lang.String tarMessage,
java.lang.String othMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls send to send the message.
|
void |
showHappens(int allCode,
Environmental like,
java.lang.String allMessage) |
Constructs a message with the given allCode as the source, target, and others message
code, and the given allMessage as the source, target, and others message, and using
a temporary fake agent/source for the message whose name is the same as the given
"like" Environmental, immediately sends the message without previewing it.
|
void |
showHappens(int allCode,
java.lang.String allMessage) |
Constructs a message with the given allCode as the source, target, and others message
code, and the given allMessage as the source, target, and others message, and using
a temporary fake agent/source for the message, immediately sends the message without
previewing it.
|
boolean |
showOthers(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls sendOthers to send the message.
|
boolean |
showOthers(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls sendOthers to send the message.
|
boolean |
showSource(MOB source,
Environmental target,
int allCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls executeMsg on the given source mob.
|
boolean |
showSource(MOB source,
Environmental target,
Environmental tool,
int allCode,
java.lang.String allMessage) |
Creates and configures a CMMsg object for use in the room, then, if the
message is not flagged for ALWAYS approval, this method submits
it for approval by calling okMessage on the room, and if it is approved,
calls executeMsg on the given source mob.
|
void |
startItemRejuv() |
When a room is created, this method is called to inspect the item contents
for any rejuvinating items and, if found, causes them to start being tracked.
|
int |
thirstPerRound() |
Returns the amount of thirst generated by moving through this room.
|
void |
toggleMobility(boolean onoff) |
Sets or clears whether any mobs in this room may, in fact, leave it.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats
addBehavior, addScript, behaviors, delAllBehaviors, delAllScripts, delBehavior, delScript, eachBehavior, eachScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts, scripts
copyOf, ID, initializeClass, newInstance
amDestroyed, destroy, isSavable, setSavable
description, displayText, image, isGeneric, L, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, text
expirationDate, setExpirationDate
addItem, delAllItems, delItem, eachItem, findItem, findItem, findItems, findItems, getItem, getRandomItem, isContent, items, numItems
addItem, getContextName, moveItemTo, moveItemTo
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
executeMsg, okMessage
description, displayText, genericName, name
getAtmosphere, getAtmosphereCode, getClimateType, getClimateTypeCode, setAtmosphere, setClimateType
affectCharState, affectCharStats, affectPhyStats
getTickStatus, tick
static final int INDOORS
domainType()
static final int DOMAIN_OUTDOORS_CITY
domainType()
static final int DOMAIN_OUTDOORS_WOODS
domainType()
static final int DOMAIN_OUTDOORS_ROCKS
domainType()
static final int DOMAIN_OUTDOORS_PLAINS
domainType()
static final int DOMAIN_OUTDOORS_UNDERWATER
domainType()
static final int DOMAIN_OUTDOORS_AIR
domainType()
static final int DOMAIN_OUTDOORS_WATERSURFACE
domainType()
static final int DOMAIN_OUTDOORS_JUNGLE
domainType()
static final int DOMAIN_OUTDOORS_SWAMP
domainType()
static final int DOMAIN_OUTDOORS_DESERT
domainType()
static final int DOMAIN_OUTDOORS_HILLS
domainType()
static final int DOMAIN_OUTDOORS_MOUNTAINS
domainType()
static final int DOMAIN_OUTDOORS_SPACEPORT
domainType()
static final int DOMAIN_OUTDOORS_SEAPORT
domainType()
static final java.lang.String[] DOMAIN_OUTDOOR_DESCS
DOMAIN_OUTDOORS_CITY
static final java.util.Map<java.lang.Object,java.lang.Integer> DOMAIN_OUTDOOR_MAP
static final int DOMAIN_INDOORS_STONE
domainType()
static final int DOMAIN_INDOORS_WOOD
domainType()
static final int DOMAIN_INDOORS_CAVE
domainType()
static final int DOMAIN_INDOORS_MAGIC
domainType()
static final int DOMAIN_INDOORS_UNDERWATER
domainType()
static final int DOMAIN_INDOORS_AIR
domainType()
static final int DOMAIN_INDOORS_WATERSURFACE
domainType()
static final int DOMAIN_INDOORS_METAL
domainType()
static final int DOMAIN_INDOORS_CAVE_SEAPORT
domainType()
static final int DOMAIN_INDOORS_SEAPORT
domainType()
static final java.lang.String[] DOMAIN_INDOORS_DESCS
DOMAIN_INDOORS_STONE
static final java.util.Map<java.lang.Object,java.lang.Integer> DOMAIN_INDOOR_MAP
static final Filterer<Environmental> FILTER_ROOMONLY
java.lang.String roomID()
GridLocale
) in particular may
have an address, if the GridLocale is, itself, a primary room, but
still have an empty roomID. This is not related to the ID()
method.setRoomID(String)
void setRoomID(java.lang.String newRoomID)
GridLocale
) in particular may
have an address, if the GridLocale is, itself, a primary room, but
still have an empty roomID.newRoomID
- the new room ID of this roomroomID()
int domainType()
INDOORS
,
DOMAIN_INDOORS_CAVE
,
DOMAIN_INDOORS_DESCS
,
DOMAIN_OUTDOORS_CITY
,
DOMAIN_OUTDOOR_DESCS
int myResource()
RawMaterial
,
RawMaterial.CODES
,
setResource(int)
,
resourceChoices()
void setResource(int resourceCode)
resourceCode
- the full resource code for the current gatherable resource in this roomRawMaterial
,
RawMaterial.CODES
,
myResource()
,
resourceChoices()
java.util.List<java.lang.Integer> resourceChoices()
RawMaterial
,
RawMaterial.CODES
,
myResource()
,
setResource(int)
void toggleMobility(boolean onoff)
onoff
- true to allow mobility, false to disallow mobilityboolean getMobility()
void startItemRejuv()
void recoverRoomStats()
void clearSky()
giveASky(int)
,
getSky()
void giveASky(int depth)
depth
- the diameter of the sky or underwater to createclearSky()
,
getSky()
java.util.List<Room> getSky()
clearSky()
,
getSky()
Area getArea()
setArea(Area)
,
Area
void setArea(Area newArea)
void setGridParent(GridLocale room)
room
- the GridLocale parent room to this roomgetGridParent()
,
GridLocale
GridLocale getGridParent()
setGridParent(GridLocale)
,
GridLocale
Room[] rawDoors()
getRoomInDir(int)
if you want a proper Room
object.
These rooms are indexed by Direction code.Directions
,
prepareRoomInDir(Room, int)
,
getRawExit(int)
Room getRoomInDir(int direction)
direction
- the Direction from this room to the nextDirections
,
prepareRoomInDir(Room, int)
,
getRawExit(int)
int maxRange()
maxRange
in interface Environmental
Room prepareRoomInDir(Room fromRoom, int direction)
fromRoom
- the room being traveled fromdirection
- the direction from the fromRoom being travelled inExit getRawExit(int direction)
getExitInDir(int)
if you want the final
Exit object in the given direction. This method returns null if
there is no exit in the given direction.direction
- the direction in this room to look for an exit ingetRawDoor(int)
,
setRawDoor(int, Room)
,
setRawExit(int, Exit)
,
getExitInDir(int)
,
getReverseExit(int)
,
getPairedExit(int)
,
fetchExit(String)
,
Directions
,
Exit
void setRawExit(int direction, Exit E)
direction
- the direction in this room to look for an exit inE
- the raw Exit object in that direction, or nullgetRawDoor(int)
,
setRawDoor(int, Room)
,
getRawExit(int)
,
getExitInDir(int)
,
getReverseExit(int)
,
getPairedExit(int)
,
fetchExit(String)
,
Directions
,
Exit
Room getRawDoor(int direction)
getRoomInDir(int)
if you want the final
Room link in the given direction. This method returns null if
there is no link in the given direction.direction
- the direction in this room to look for an exit insetRawDoor(int, Room)
,
setRawExit(int, Exit)
,
getExitInDir(int)
,
getReverseExit(int)
,
getPairedExit(int)
,
fetchExit(String)
,
Directions
,
Exit
void setRawDoor(int direction, Room R)
direction
- the direction in this room to look for an exit inR
- the Room link in that direction, or nullgetRawDoor(int)
,
getRawExit(int)
,
getExitInDir(int)
,
getReverseExit(int)
,
getPairedExit(int)
,
fetchExit(String)
,
Directions
,
Exit
Exit getReverseExit(int direction)
direction
- the direction from this room to get the reverse exit forgetRawExit(int)
,
getExitInDir(int)
,
setRawExit(int, Exit)
,
getPairedExit(int)
,
fetchExit(String)
,
Directions
,
Exit
int getReverseDir(int direction)
direction
- the direction from this room to get the reverse dir forgetRawExit(int)
,
getExitInDir(int)
,
setRawExit(int, Exit)
,
getPairedExit(int)
,
fetchExit(String)
,
Directions
Exit getPairedExit(int direction)
direction
- the direction from this room to get the reverse exit forgetRawExit(int)
,
getExitInDir(int)
,
setRawExit(int, Exit)
,
getReverseExit(int)
,
fetchExit(String)
,
Directions
,
Exit
Exit getExitInDir(int direction)
direction
- the direction from this room to get the exit forgetRawExit(int)
,
getPairedExit(int)
,
setRawExit(int, Exit)
,
getReverseExit(int)
,
fetchExit(String)
,
Exit
Exit fetchExit(java.lang.String itemID)
itemID
- the name or substring of the exit to returngetRawExit(int)
,
getPairedExit(int)
,
setRawExit(int, Exit)
,
getReverseExit(int)
,
getExitInDir(int)
,
Exit
int getCombatTurnMobIndex()
void setCombatTurnMobIndex(int index)
index
- the index number which represents which mob's "turn" it is in combatint pointsPerMove()
int thirstPerRound()
void send(MOB source, CMMsg msg)
source
- the first receiver of the message, typically the agent/source.msg
- the message to sendsendOthers(MOB, CMMsg)
,
show(MOB, Environmental, Environmental, int, String, int, String, int, String)
,
CMMsg
void sendOthers(MOB source, CMMsg msg)
source
- the NON-receiver of the message, typically the agent/source.msg
- the message to sendsend(MOB, CMMsg)
,
show(MOB, Environmental, Environmental, int, String, int, String, int, String)
,
CMMsg
void showHappens(int allCode, java.lang.String allMessage)
allCode
- the source/target/others message codeallMessage
- source/target/others message descriptionCMMsg
,
show(MOB, Environmental, Environmental, int, String)
,
showHappens(int, Environmental, String)
,
send(MOB, CMMsg)
,
show(MOB, Environmental, Environmental, int, String, int, String, int, String)
void showHappens(int allCode, Environmental like, java.lang.String allMessage)
allCode
- the source/target/others message codelike
- the Environmental object to make the source/agent "look" like.allMessage
- source/target/others message descriptionCMMsg
,
show(MOB, Environmental, Environmental, int, String)
,
showHappens(int, Environmental, String)
,
send(MOB, CMMsg)
,
show(MOB, Environmental, Environmental, int, String, int, String, int, String)
boolean show(MOB source, Environmental target, int allCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actionallCode
- the source, target, and others code to useallMessage
- the source, target, and others string msg to sendsend(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
boolean show(MOB source, Environmental target, Environmental tool, int allCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actiontool
- the tool used by the source to do the actionallCode
- the source, target, and others code to useallMessage
- the source, target, and others string msg to sendsend(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.tool()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
boolean show(MOB source, Environmental target, Environmental tool, int srcCode, int tarCode, int othCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actiontool
- the tool used by the source to do the actionsrcCode
- the source code for this actiontarCode
- the target code for this actionothCode
- the others/observed code for this actionallMessage
- the source, target, and others string msg to sendsend(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.tool()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
boolean show(MOB source, Environmental target, Environmental tool, int srcCode, java.lang.String srcMessage, int tarCode, java.lang.String tarMessage, int othCode, java.lang.String othMessage)
source
- the agent source of the actiontarget
- the target of the actiontool
- the tool used by the source to do the actionsrcCode
- the source code for this actionsrcMessage
- the action/message as seen by the sourcetarCode
- the target code for this actiontarMessage
- the action/message as seen by the targetothCode
- the others/observed code for this actionothMessage
- the action/message as seen by everyone elsesend(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.tool()
,
CMMsg.sourceCode()
,
CMMsg.targetCode()
,
CMMsg.othersCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
boolean show(MOB source, Environmental target, Environmental tool, int allCode, java.lang.String srcMessage, java.lang.String tarMessage, java.lang.String othMessage)
source
- the agent source of the actiontarget
- the target of the actiontool
- the tool used by the source to do the actionallCode
- the source, target, and others code to usesrcMessage
- the action/message as seen by the sourcetarMessage
- the action/message as seen by the targetothMessage
- the action/message as seen by everyone elsesend(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.tool()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
,
CMMsg.targetMessage()
,
CMMsg.othersMessage()
boolean showOthers(MOB source, Environmental target, int allCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actionallCode
- the source, target, and others code to useallMessage
- the source, target, and others string msg to sendsendOthers(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
boolean showSource(MOB source, Environmental target, int allCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actionallCode
- the source, target, and others code to useallMessage
- the source, target, and others string msg to sendMsgListener.executeMsg(Environmental, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
boolean showOthers(MOB source, Environmental target, Environmental tool, int allCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actiontool
- the tool used by the source to do the actionallCode
- the source, target, and others code to useallMessage
- the source, target, and others string msg to sendsendOthers(MOB, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.tool()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
boolean showSource(MOB source, Environmental target, Environmental tool, int allCode, java.lang.String allMessage)
source
- the agent source of the actiontarget
- the target of the actiontool
- the tool used by the source to do the actionallCode
- the source, target, and others code to useallMessage
- the source, target, and others string msg to sendMsgListener.executeMsg(Environmental, CMMsg)
,
MsgListener.okMessage(Environmental, CMMsg)
,
CMMsg.source()
,
CMMsg.target()
,
CMMsg.sourceCode()
,
CMMsg.sourceMessage()
boolean isHere(Environmental E)
E
- the Environmental object to find in this roomMOB fetchInhabitant(java.lang.String inhabitantID)
inhabitantID
- the name, id, or keyword to search forfetchInhabitants(String)
,
fetchInhabitantExact(String)
,
fetchInhabitant(int)
,
fetchRandomInhabitant()
,
inhabitants()
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
MOB fetchInhabitantExact(java.lang.String inhabitantID)
inhabitantID
- the name, id, or keyword to search forfetchInhabitants(String)
,
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchRandomInhabitant()
,
inhabitants()
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
java.util.List<MOB> fetchInhabitants(java.lang.String inhabitantID)
inhabitantID
- the name, id, or keyword to search forfetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchRandomInhabitant()
,
inhabitants()
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
delAllInhabitants(boolean)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
MOB fetchRandomInhabitant()
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
isInhabitant(MOB)
,
delAllInhabitants(boolean)
,
inhabitants()
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
MOB fetchInhabitant(int i)
i
- the index of the mobfetchInhabitant(String)
,
fetchRandomInhabitant()
,
fetchInhabitants(String)
,
isInhabitant(MOB)
,
delAllInhabitants(boolean)
,
inhabitants()
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
java.util.Enumeration<MOB> inhabitants()
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
void addInhabitant(MOB mob)
mob
- the mob to add to this roomMOB.setLocation(Room)
,
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
inhabitants()
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
void delInhabitant(MOB mob)
mob
- the mob to remove from this roomMOB.setLocation(Room)
,
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
inhabitants()
,
addInhabitant(MOB)
,
delAllInhabitants(boolean)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
void delAllInhabitants(boolean destroy)
destroy
- true to also destroy the mob objects, false otherwiseMOB.setLocation(Room)
,
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
inhabitants()
,
delInhabitant(MOB)
,
addInhabitant(MOB)
,
isInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
int numInhabitants()
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
inhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
boolean isInhabitant(MOB mob)
mob
- the mob to look forfetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
inhabitants()
,
delInhabitant(MOB)
,
addInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
eachInhabitant(EachApplicable)
void eachInhabitant(EachApplicable<MOB> applier)
applier
- code to execute against each objectfetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
inhabitants()
,
delInhabitant(MOB)
,
addInhabitant(MOB)
,
numInhabitants()
,
bringMobHere(MOB, boolean)
,
numPCInhabitants()
,
isInhabitant(MOB)
int numPCInhabitants()
fetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
inhabitants()
,
bringMobHere(MOB, boolean)
,
numInhabitants()
,
eachInhabitant(EachApplicable)
void bringMobHere(MOB mob, boolean andFollowers)
mob
- the mob to move from where he is, to hereandFollowers
- true to include followers, false otherwisefetchInhabitant(String)
,
fetchInhabitant(int)
,
fetchInhabitants(String)
,
fetchRandomInhabitant()
,
delAllInhabitants(boolean)
,
addInhabitant(MOB)
,
delInhabitant(MOB)
,
isInhabitant(MOB)
,
inhabitants()
,
numPCInhabitants()
,
numInhabitants()
,
eachInhabitant(EachApplicable)
java.util.Enumeration<Item> itemsRecursive()
PhysicalAgent fetchFromRoomFavorExits(java.lang.String thingName)
thingName
- the search stringPhysicalAgent fetchFromRoomFavorItems(Item goodLocation, java.lang.String thingName)
goodLocation
- the container to look in for items, or nullthingName
- the search stringPhysicalAgent fetchFromRoomFavorMOBs(Item goodLocation, java.lang.String thingName)
goodLocation
- the container to look in for items, or nullthingName
- the search stringPhysicalAgent fetchFromMOBRoomItemExit(MOB mob, Item goodLocation, java.lang.String thingName, Filterer<Environmental> filter)
mob
- the mob to search the inventory of first, or null to skipgoodLocation
- the container to look in for items, or nullthingName
- the search stringfilter
- a required filter for item searchesPhysicalAgent fetchFromMOBRoomFavorsItems(MOB mob, Item goodLocation, java.lang.String thingName, Filterer<Environmental> filter)
mob
- the mob to search the inventory of first, or null to skipgoodLocation
- the container to look in for items, or nullthingName
- the search stringfilter
- a required filter for item searchesPhysicalAgent fetchFromMOBRoomFavorsMOBs(MOB mob, Item goodLocation, java.lang.String thingName, Filterer<Environmental> filter)
mob
- the mob to search the inventory of first, or null to skipgoodLocation
- the container to look in for items, or nullthingName
- the search stringfilter
- a required filter for item searches