Modifier and Type | Class | Description |
---|---|---|
class |
CMMap.AreasRoomsEnumerator |
|
class |
CMMap.RoomItemsEnumerator |
|
class |
CMMap.RoomMobsEnumerator |
WorldMap.LocatedPair
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.Comparator<Area> |
areaComparator |
|
protected CMNSortSVec<Area> |
areasList |
|
protected java.util.Map<java.lang.String,TimeClock> |
clockCache |
|
protected static char[] |
cmfsFilenameifyChars |
|
protected CMNSortSVec<Deity> |
deitiesList |
|
protected static MOB |
deityStandIn |
|
java.util.Map<java.lang.Integer,java.util.List<java.lang.ref.WeakReference<MsgListener>>> |
globalHandlers |
|
protected long |
lastVReset |
|
CMMsg |
resetMsg |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
SCRIPT_HOST_SEMAPHORES |
|
java.util.Map<java.lang.String,SLinkedList<WorldMap.LocatedPair>> |
scriptHostMap |
|
protected java.util.List<Boardable> |
shipList |
idConverter
isDebugging, name, serviceClient, tickStatus
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
ROOM_EXPIRATION_MILLIS
Constructor | Description |
---|---|
CMMap() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
activate() |
Activates the library.
|
void |
addArea(Area newOne) |
Adds the given area to the world map list.
|
protected void |
addDeity(Deity newOne) |
|
void |
addGlobalHandler(MsgListener E,
int category) |
Add a listener to the Global Alternative message passing system.
|
protected void |
addMapStatFiles(java.util.List<CMFile.CMVFSFile> rootFiles,
Room R,
Environmental E,
CMFile.CMVFSDir root) |
|
protected void |
addScriptHost(Area area,
Room room,
PhysicalAgent host) |
|
protected void |
addShip(Boardable newOne) |
|
Area |
areaLocation(CMObject E) |
Returns the Area in which the given object exists in, or is
attached to.
|
java.util.Enumeration<Area> |
areas() |
Returns an enumeration of all world map areas.
|
java.util.Enumeration<Area> |
areasPlusShips() |
Returns an enumeration of all map areas, including all areas inside
ships, caravans, etc.
|
protected void |
cleanScriptHosts(SLinkedList<WorldMap.LocatedPair> hosts,
PhysicalAgent oneToDel,
boolean fullCleaning) |
|
protected java.lang.String |
cmfsFilenameify(java.lang.String str) |
|
java.lang.String |
createNewExit(Room from,
Room room,
int direction) |
Attempts to create a pair of Open exits from the from room to the
room room.
|
java.util.Enumeration<Deity> |
deities() |
Returns an enumeration of all the Deity-derived registered objects
in the game.
|
MOB |
deity() |
Returns the first available deity, creating one from
scratch if necessary.
|
void |
delArea(Area oneToDel) |
Deletes the given area from the world map list.
|
protected void |
delDeity(Deity oneToDel) |
|
void |
delGlobalHandler(MsgListener E,
int category) |
Remove a listener from the Global Alternative message passing system.
|
protected void |
delScriptHost(Area area,
PhysicalAgent oneToDel) |
|
protected void |
delShip(Boardable oneToDel) |
|
void |
destroyAreaObject(Area A) |
Empties all the rooms in the given area, destroys all the
content, and destroys the area itself, removing it from
the world map.
|
void |
destroyRoomObject(Room deadRoom) |
Removes the given room from the map, clears it, and deletes
any incoming exits.
|
void |
emptyAreaAndDestroyRooms(Area area) |
This method removes any area effects, and then empties and
destroys every room in the area.
|
void |
emptyRoom(Room room,
Room toRoom,
boolean clearPlayers) |
Empties the given room of mobs and items, optionally moving stuff to
another room.
|
Area |
findArea(java.lang.String calledThis) |
Given a partial area name, this will return area from the map that
either matches the string, or partially matches it.
|
Area |
findAreaStartsWith(java.lang.String calledThis) |
Given an area name prefix, this will return the area from the map that
either matches the string, or whose name starts with it.
|
Room |
findConnectingRoom(Room room) |
Returns a room that is connected to, and preferably links
back, to the given room.
|
Area |
findRoomIDArea(java.lang.String roomID) |
Given a room ID, this will return the area to which the room it
matches belongs.
|
Boardable |
findShip(java.lang.String s,
boolean exactOnly) |
Searches the list of existing registered boardables, such as sailing ships,
space ships, castles, and caravans.
|
protected PairVector<MOB,java.lang.String> |
getAllPlayersHere(Area area,
boolean includeLocalFollowers) |
|
java.lang.String |
getApproximateExtendedRoomID(Room room) |
All proper rooms, rooms savable to the database, have
a unique room ID.
|
Area |
getArea(java.lang.String calledThis) |
Given an area name, this will return the area from the map whose
name matches this one.
|
protected java.util.Map<java.lang.String,Area> |
getAreaFinder() |
|
Room |
getCachedRoom(java.lang.String roomID) |
Given a room ID, this will return the room on the map that matches, it.
|
java.util.Map<java.lang.String,TimeClock> |
getClockCache() |
Returns the world-wide clock/timezone cache.
|
Area |
getDefaultParentArea() |
If the coffeemud.ini file defines a default parent area to which all
newly created areas should be automatically added, this will return
that area.
|
Deity |
getDeity(java.lang.String calledThis) |
Returns the world deity of the given name, if it exists.
|
java.lang.String |
getDescriptiveExtendedRoomID(Room room) |
Similar to the approximate version, this will return a reference
to the nearest room, along with which direction its in relative
to the given room.
|
int |
getExitDir(Room from,
Exit to) |
Given a room and an exit, this will return which
direction code is being used.
|
java.lang.String |
getExtendedRoomID(Room R) |
If the given room has a proper room id, this
will return it.
|
java.lang.String |
getExtendedTwinRoomIDs(Room R1,
Room R2) |
Returns the extended room IDs of both the given rooms,
in a deterministic ordering, with an underscore between
them -- nothing else.
|
MOB |
getFactoryMOB(Room R) |
If a mob is needed as a msg host/source, and it doesn't matter the
name or level, then this is the method for you.
|
MOB |
getFactoryMOBInAnyRoom() |
If a mob is needed as a msg host/source, and it doesn't matter the
name, level, room, or anything, then this is the method for you.
|
Area |
getFirstArea() |
Returns the first area in the world map.
|
protected int |
getGlobalIndex(java.util.List<Environmental> list,
java.lang.String name) |
|
CMFile.CMVFSDir |
getMapRoot(CMFile.CMVFSDir root) |
Generates a fake VFS file tree for the database game world map.
|
Area |
getModelArea(Area A) |
Normally just returns the given area.
|
Area |
getRandomArea() |
Returns a random area from the world map.
|
Room |
getRandomRoom() |
Returns a random room from a random area on the map.
|
Room |
getRoom(Room room) |
Because rooms can expire, but their references remain, this
method exists to check for a destroyed condition and, if the
room is destroyed, this will check for a replacement, and
de-cache it if possible.
|
Room |
getRoom(java.lang.String roomID) |
Given a room ID, this will return the room on the map that
matches this room id.
|
Room |
getRoom(java.util.Enumeration<Room> roomSet,
java.lang.String roomID) |
Enumerates through the given room set, returning the
room with the given room ID.
|
protected Room |
getRoom(java.util.Enumeration<Room> roomSet,
java.lang.String roomID,
boolean cachedOnly) |
|
Room |
getRoomAllHosts(java.lang.String roomID) |
Given a room ID, this will return the room on the map that matches, it.
|
int |
getRoomDir(Room from,
Room to) |
Given a room and a target room, this will return which
direction code is being used.
|
Room |
getSafeRoomToMovePropertyTo(Room room,
PrivateProperty I) |
Returns the parent room of the given private property, if it is a boardable,
or the given room if not.
|
protected java.lang.Object |
getScriptHostSemaphore(Area area) |
|
Boardable |
getShip(java.lang.String calledThis) |
Checks the list of existing registered boardables, such as sailing ships,
space ships, castles, and caravans.
|
Area |
getStartArea(Environmental E) |
Attempts to return the start/orig area for the given mob or item
or room or whatever.
|
Room |
getStartRoom(Environmental E) |
Attempts to return the start/orig room for the given mob or item
or room or whatever.
|
Area |
getTargetArea(Room from,
Exit to) |
Given a room and an exit, this will return which area
it will lead to.
|
Room |
getTargetRoom(Room from,
Exit to) |
Given a room and an exit, this will return which room
it will lead to.
|
boolean |
hasASky(Room room) |
Returns whether the given room might have a sky, due to
being outdoors but not being underwater.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected boolean |
isAQualifyingScriptHost(PhysicalAgent host) |
|
protected boolean |
isAScriptHost(Area area,
PhysicalAgent host) |
|
protected boolean |
isAScriptHost(SLinkedList<WorldMap.LocatedPair> hosts,
PhysicalAgent host) |
|
boolean |
isClearableRoom(Room R) |
Sends any mobs or players in the given room to their start room,
and returns whether any players, private property, or player
corpses remain.
|
java.util.Enumeration<Area> |
mundaneAreas() |
Returns an enumeration of all areas which are not
also space objects, meaning they are mundane and
normal game areas.
|
int |
numAreas() |
Returns the number of areas on the map list, not including ships or
other item-internal-areas.
|
int |
numDeities() |
|
int |
numRooms() |
Returns the sum of all the proper rooms in every area in all the world.
|
int |
numShips() |
Returns the number of registered boardables, such as sailing ships,
space ships, castles, and caravans.
|
protected void |
obliterateArea(Area A,
boolean includeDB) |
|
void |
obliterateMapArea(Area A) |
Empties all the rooms in the given area, destroys all the
content, and destroys the area itself, removing it from
the world map.
|
void |
obliterateMapRoom(Room deadRoom) |
Removes the given room from the map, clears it, and deletes
any incoming exits.
|
protected void |
obliterateRoom(Room deadRoom,
java.util.List<Room> linkInRooms,
boolean includeDB) |
|
void |
registerWorldObjectDestroyed(Area area,
Room room,
CMObject o) |
When a map object is permanently destroyed, this method is called
to give the world map manager a chance to remove tracking for it.
|
void |
registerWorldObjectLoaded(Area area,
Room room,
CMObject o) |
When a map object is permanently added to the map, such as during map
load, this method is called to give the world map manager a chance
to keep track of it.
|
void |
renamedArea(Area theA) |
Whenever the given area is renamed, this method
should be called, which will cause the areas to be
re-sorted, and the area finder cache clear.
|
void |
renameRooms(Area A,
java.lang.String oldName,
java.util.List<Room> allMyDamnRooms) |
This will take an area that was recently renamed, and an optional list of
all its existing rooms, and rename the rooms to reflect the new name,
updating the database along the way.
|
void |
resetArea(Area area) |
Resets the given area by resetting all the cached rooms in it.
|
void |
resetRoom(Room room) |
Resets the contents of the given room to stock, without clearing grid
rooms.
|
void |
resetRoom(Room room,
boolean rebuildGrids) |
Resets the contents of the given room to stock, clearing any grids
if necessary.
|
java.util.Enumeration<java.lang.String> |
roomIDs() |
Returns an enumeration of all proper room ids in
every area in the world.
|
Room |
roomLocation(Environmental E) |
Returns the Room in which the given object exists in, or is
attached to.
|
void |
roomMaintSweep() |
|
java.util.Enumeration<Room> |
rooms() |
Returns an enumeration of every CACHED proper room in every area, including
'filled' proper rooms, which also includes ships and similar areas.
|
java.util.Enumeration<Room> |
roomsFilled() |
Returns an enumeration of every CACHED room in every area, including
'filled' rooms, which includes skys and underwater rooms, which
also includes ships and similar areas.
|
java.util.Enumeration<WorldMap.LocatedPair> |
scriptHosts(Area area) |
Returns an enumeration of all objects scripted upon creation
in the world, or in the given area (non-metro).
|
boolean |
sendGlobalMessage(MOB host,
int category,
CMMsg msg) |
Send a message to all relevant listeners in the Global
Alternative message passing system.
|
java.util.Enumeration<Area> |
shipAreaEnumerator(Area inA) |
|
java.util.Enumeration<Boardable> |
ships() |
Returns an enumeration of all registered boardables, such as sailing ships,
space ships, castles, and caravans.
|
java.util.Enumeration<Room> |
shipsRoomEnumerator(Area inA) |
Returns an enumerator of all rooms contained in a registered
boardable, such as a sailing ship, space ship, castle, or
caravan, which is also in the given Area.
|
boolean |
shutdown() |
Shuts down the library.
|
boolean |
tick(Tickable ticking,
int tickID) |
this is the method which is called periodically by the threading engine.
|
java.util.Enumeration<Area> |
topAreas() |
Returns an enumeration of all areas which do NOT have
any parent areas, thus being the 'top' areas.
|
java.util.Enumeration<Item> |
worldEveryItems() |
Returns a JIT enumeration of every CACHED item in every room
on the map, well as every mob in every room on the map,
as it presently exists at the time the Next method is
called.
|
java.util.Enumeration<MOB> |
worldMobs() |
Returns a JIT enumeration of every CACHED mob in every room
on the map, as it presently exists at the time the Next
method is called.
|
java.util.Enumeration<Item> |
worldRoomItems() |
Returns a JIT enumeration of every CACHED item in every room
on the map, as it presently exists at the time the Next
method is called.
|
getServiceClient, L, propertiesLoaded
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus
protected static MOB deityStandIn
protected long lastVReset
protected CMNSortSVec<Area> areasList
protected CMNSortSVec<Deity> deitiesList
protected java.util.List<Boardable> shipList
protected java.util.Map<java.lang.String,java.lang.Object> SCRIPT_HOST_SEMAPHORES
protected java.util.Map<java.lang.String,TimeClock> clockCache
protected static final java.util.Comparator<Area> areaComparator
public java.util.Map<java.lang.Integer,java.util.List<java.lang.ref.WeakReference<MsgListener>>> globalHandlers
public java.util.Map<java.lang.String,SLinkedList<WorldMap.LocatedPair>> scriptHostMap
public CMMsg resetMsg
protected static final char[] cmfsFilenameifyChars
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
protected int getGlobalIndex(java.util.List<Environmental> list, java.lang.String name)
public void renamedArea(Area theA)
WorldMap
renamedArea
in interface WorldMap
theA
- the area that was renamedWorldMap.renameRooms(Area, String, List)
public int numAreas()
WorldMap
numAreas
in interface WorldMap
WorldMap.getArea(String)
,
WorldMap.addArea(Area)
,
WorldMap.delArea(Area)
public void addArea(Area newOne)
WorldMap
addArea
in interface WorldMap
newOne
- the new area to add to the listWorldMap.getArea(String)
,
WorldMap.delArea(Area)
,
WorldMap.numAreas()
public void delArea(Area oneToDel)
WorldMap
delArea
in interface WorldMap
oneToDel
- the area to removeWorldMap.getArea(String)
,
WorldMap.addArea(Area)
,
WorldMap.numAreas()
public java.util.Map<java.lang.String,TimeClock> getClockCache()
WorldMap
getClockCache
in interface WorldMap
public Area getModelArea(Area A)
WorldMap
getModelArea
in interface WorldMap
A
- the area to return the model ofprotected java.util.Map<java.lang.String,Area> getAreaFinder()
public Area getArea(java.lang.String calledThis)
WorldMap
public Area findAreaStartsWith(java.lang.String calledThis)
WorldMap
findAreaStartsWith
in interface WorldMap
calledThis
- the area name, or area name prefixWorldMap.findArea(String)
,
WorldMap.findAreaStartsWith(String)
,
WorldMap.getArea(String)
public Area findArea(java.lang.String calledThis)
WorldMap
findArea
in interface WorldMap
calledThis
- the area name, or partial area nameWorldMap.findArea(String)
,
WorldMap.findAreaStartsWith(String)
,
WorldMap.getArea(String)
public java.util.Enumeration<Area> areas()
WorldMap
areas
in interface WorldMap
WorldMap.mundaneAreas()
,
WorldMap.topAreas()
,
WorldMap.areasPlusShips()
public java.util.Enumeration<Area> areasPlusShips()
WorldMap
areasPlusShips
in interface WorldMap
WorldMap.areas()
,
WorldMap.mundaneAreas()
,
WorldMap.topAreas()
public java.util.Enumeration<Area> mundaneAreas()
WorldMap
mundaneAreas
in interface WorldMap
WorldMap.areas()
,
WorldMap.topAreas()
,
WorldMap.areasPlusShips()
public java.util.Enumeration<Area> topAreas()
WorldMap
topAreas
in interface WorldMap
WorldMap.areas()
,
WorldMap.mundaneAreas()
,
WorldMap.areasPlusShips()
public java.util.Enumeration<java.lang.String> roomIDs()
WorldMap
public Area getFirstArea()
WorldMap
getFirstArea
in interface WorldMap
WorldMap.getRandomArea()
public Area getDefaultParentArea()
WorldMap
getDefaultParentArea
in interface WorldMap
public Area getRandomArea()
WorldMap
getRandomArea
in interface WorldMap
WorldMap.getFirstArea()
public void addGlobalHandler(MsgListener E, int category)
WorldMap
addGlobalHandler
in interface WorldMap
E
- the message listener for the global messagecategory
- the CMMsg TYP code (CMMsg
WorldMap.delGlobalHandler(MsgListener, int)
,
WorldMap.sendGlobalMessage(MOB, int, CMMsg)
public void delGlobalHandler(MsgListener E, int category)
WorldMap
delGlobalHandler
in interface WorldMap
E
- the message listener for the global messagecategory
- the CMMsg TYP code (CMMsg
WorldMap.addGlobalHandler(MsgListener, int)
,
WorldMap.sendGlobalMessage(MOB, int, CMMsg)
public MOB deity()
WorldMap
deity
in interface WorldMap
Deity
,
WorldMap.deities()
,
WorldMap.getDeity(String)
public MOB getFactoryMOBInAnyRoom()
WorldMap
getFactoryMOBInAnyRoom
in interface WorldMap
WorldMap.getFactoryMOB(Room)
public MOB getFactoryMOB(Room R)
WorldMap
getFactoryMOB
in interface WorldMap
R
- the room to put the temporary mob inWorldMap.getFactoryMOBInAnyRoom()
public java.lang.String createNewExit(Room from, Room room, int direction)
WorldMap
createNewExit
in interface WorldMap
from
- the from roomroom
- the to roomdirection
- the direction from the from to the room roompublic int numRooms()
WorldMap
public boolean sendGlobalMessage(MOB host, int category, CMMsg msg)
WorldMap
sendGlobalMessage
in interface WorldMap
host
- the host/sender of the messagecategory
- the CMMsg TYP code (CMMsg
msg
- the actual message to sendWorldMap.addGlobalHandler(MsgListener, int)
,
WorldMap.delGlobalHandler(MsgListener, int)
public java.lang.String getExtendedRoomID(Room R)
WorldMap
getExtendedRoomID
in interface WorldMap
R
- the room to return a room id forWorldMap.getExtendedRoomID(Room)
,
WorldMap.getExtendedTwinRoomIDs(Room, Room)
,
WorldMap.getDescriptiveExtendedRoomID(Room)
,
WorldMap.getApproximateExtendedRoomID(Room)
public java.lang.String getDescriptiveExtendedRoomID(Room room)
WorldMap
getDescriptiveExtendedRoomID
in interface WorldMap
room
- the room to find a descriptive reference toWorldMap.getExtendedRoomID(Room)
,
WorldMap.getExtendedTwinRoomIDs(Room, Room)
,
WorldMap.getApproximateExtendedRoomID(Room)
public java.lang.String getApproximateExtendedRoomID(Room room)
WorldMap
getApproximateExtendedRoomID
in interface WorldMap
room
- the room to find the nearest id for.WorldMap.getExtendedRoomID(Room)
,
WorldMap.getExtendedTwinRoomIDs(Room, Room)
,
WorldMap.getDescriptiveExtendedRoomID(Room)
public java.lang.String getExtendedTwinRoomIDs(Room R1, Room R2)
WorldMap
getExtendedTwinRoomIDs
in interface WorldMap
R1
- the first roomR2
- the second roomWorldMap.getExtendedRoomID(Room)
,
WorldMap.getDescriptiveExtendedRoomID(Room)
,
WorldMap.getApproximateExtendedRoomID(Room)
public Area findRoomIDArea(java.lang.String roomID)
WorldMap
findRoomIDArea
in interface WorldMap
roomID
- the room id to get the area forprotected Room getRoom(java.util.Enumeration<Room> roomSet, java.lang.String roomID, boolean cachedOnly)
public Room getRoom(java.util.Enumeration<Room> roomSet, java.lang.String roomID)
WorldMap
getRoom
in interface WorldMap
roomSet
- an enumeration of rooms to checkroomID
- the room ID of the room to getWorldMap.getRoom(Room)
,
WorldMap.getRoom(String)
,
WorldMap.getCachedRoom(String)
,
WorldMap.getRoomAllHosts(String)
public Room getRoom(Room room)
WorldMap
getRoom
in interface WorldMap
room
- the room that may or may not be expiredWorldMap.getRoom(String)
,
WorldMap.getRoom(Enumeration, String)
,
WorldMap.getCachedRoom(String)
,
WorldMap.getRoomAllHosts(String)
public Room getRoom(java.lang.String roomID)
WorldMap
getRoom
in interface WorldMap
roomID
- the room id to get the room forWorldMap.getRoom(Room)
,
WorldMap.getRoom(Enumeration, String)
,
WorldMap.getCachedRoom(String)
,
WorldMap.getRoomAllHosts(String)
public Room getCachedRoom(java.lang.String roomID)
WorldMap
getCachedRoom
in interface WorldMap
roomID
- the room ID to getWorldMap.getRoom(Room)
,
WorldMap.getRoom(String)
,
WorldMap.getRoom(Enumeration, String)
,
WorldMap.getCachedRoom(String)
,
WorldMap.getRoomAllHosts(String)
public Room getRoomAllHosts(java.lang.String roomID)
WorldMap
getRoomAllHosts
in interface WorldMap
roomID
- the room ID to getWorldMap.getRoom(Room)
,
WorldMap.getRoom(String)
,
WorldMap.getRoom(Enumeration, String)
,
WorldMap.getCachedRoom(String)
public java.util.Enumeration<Room> rooms()
WorldMap
rooms
in interface WorldMap
WorldMap.roomsFilled()
public java.util.Enumeration<Room> roomsFilled()
WorldMap
roomsFilled
in interface WorldMap
WorldMap.rooms()
public java.util.Enumeration<MOB> worldMobs()
WorldMap
worldMobs
in interface WorldMap
WorldMap.worldEveryItems()
,
WorldMap.worldRoomItems()
public java.util.Enumeration<Item> worldRoomItems()
WorldMap
worldRoomItems
in interface WorldMap
WorldMap.worldEveryItems()
,
WorldMap.worldMobs()
public java.util.Enumeration<Item> worldEveryItems()
WorldMap
worldEveryItems
in interface WorldMap
WorldMap.worldEveryItems()
,
WorldMap.worldMobs()
public Room getRandomRoom()
WorldMap
getRandomRoom
in interface WorldMap
public int numDeities()
protected void addDeity(Deity newOne)
protected void delDeity(Deity oneToDel)
public Deity getDeity(java.lang.String calledThis)
WorldMap
getDeity
in interface WorldMap
calledThis
- the name of the deity to get.Deity
,
WorldMap.deities()
,
WorldMap.deity()
public java.util.Enumeration<Deity> deities()
WorldMap
deities
in interface WorldMap
Deity
,
WorldMap.deity()
,
WorldMap.getDeity(String)
public int numShips()
WorldMap
numShips
in interface WorldMap
WorldMap.getShip(String)
,
WorldMap.findShip(String, boolean)
,
WorldMap.ships()
,
WorldMap.shipsRoomEnumerator(Area)
,
WorldMap.numShips()
protected void addShip(Boardable newOne)
protected void delShip(Boardable oneToDel)
public Boardable getShip(java.lang.String calledThis)
WorldMap
getShip
in interface WorldMap
calledThis
- the name of the boardableWorldMap.findShip(String, boolean)
,
WorldMap.ships()
,
WorldMap.shipsRoomEnumerator(Area)
,
WorldMap.numShips()
public Boardable findShip(java.lang.String s, boolean exactOnly)
WorldMap
findShip
in interface WorldMap
s
- the name searchexactOnly
- true for exact matches only, false for substring matchesWorldMap.getShip(String)
,
WorldMap.ships()
,
WorldMap.shipsRoomEnumerator(Area)
,
WorldMap.numShips()
public java.util.Enumeration<Boardable> ships()
WorldMap
ships
in interface WorldMap
WorldMap.getShip(String)
,
WorldMap.findShip(String, boolean)
,
WorldMap.shipsRoomEnumerator(Area)
,
WorldMap.numShips()
public java.util.Enumeration<Room> shipsRoomEnumerator(Area inA)
WorldMap
shipsRoomEnumerator
in interface WorldMap
inA
- the area containing a ship, possiblyWorldMap.getShip(String)
,
WorldMap.findShip(String, boolean)
,
WorldMap.ships()
,
WorldMap.numShips()
public void renameRooms(Area A, java.lang.String oldName, java.util.List<Room> allMyDamnRooms)
WorldMap
renameRooms
in interface WorldMap
A
- the area that WAS renamedoldName
- the previous name of the given areaallMyDamnRooms
- null, or the list of existing rooms.WorldMap.renamedArea(Area)
public int getRoomDir(Room from, Room to)
WorldMap
getRoomDir
in interface WorldMap
from
- the initial roomto
- the room being targetDirections
,
WorldMap.getTargetArea(Room, Exit)
,
WorldMap.getTargetRoom(Room, Exit)
,
WorldMap.getExitDir(Room, Exit)
public Area getTargetArea(Room from, Exit to)
WorldMap
getTargetArea
in interface WorldMap
from
- the initial roomto
- the exit being usedWorldMap.getTargetRoom(Room, Exit)
,
WorldMap.getRoomDir(Room, Room)
,
WorldMap.getExitDir(Room, Exit)
public Room getTargetRoom(Room from, Exit to)
WorldMap
getTargetRoom
in interface WorldMap
from
- the initial roomto
- the exit being usedWorldMap.getTargetArea(Room, Exit)
,
WorldMap.getRoomDir(Room, Room)
,
WorldMap.getExitDir(Room, Exit)
public int getExitDir(Room from, Exit to)
WorldMap
getExitDir
in interface WorldMap
from
- the initial roomto
- the exit being usedDirections
,
WorldMap.getTargetArea(Room, Exit)
,
WorldMap.getTargetRoom(Room, Exit)
,
WorldMap.getRoomDir(Room, Room)
public Room findConnectingRoom(Room room)
WorldMap
findConnectingRoom
in interface WorldMap
room
- the room to look at exits frompublic boolean isClearableRoom(Room R)
WorldMap
isClearableRoom
in interface WorldMap
R
- the room to clear/check.public void obliterateMapRoom(Room deadRoom)
WorldMap
obliterateMapRoom
in interface WorldMap
deadRoom
- the room to remove from the mapWorldMap.destroyRoomObject(Room)
,
WorldMap.obliterateMapArea(Area)
public void destroyRoomObject(Room deadRoom)
WorldMap
destroyRoomObject
in interface WorldMap
deadRoom
- the room to remove from the mapWorldMap.obliterateMapRoom(Room)
,
WorldMap.destroyAreaObject(Area)
protected void obliterateRoom(Room deadRoom, java.util.List<Room> linkInRooms, boolean includeDB)
public void emptyAreaAndDestroyRooms(Area area)
WorldMap
emptyAreaAndDestroyRooms
in interface WorldMap
area
- the area to emptypublic Room roomLocation(Environmental E)
WorldMap
roomLocation
in interface WorldMap
E
- the game object whose room location you are curious aboutpublic Area getStartArea(Environmental E)
WorldMap
getStartArea
in interface WorldMap
E
- the object to get a start area forpublic Room getStartRoom(Environmental E)
WorldMap
getStartRoom
in interface WorldMap
E
- the object to get a start room forpublic Area areaLocation(CMObject E)
WorldMap
areaLocation
in interface WorldMap
E
- the game object whose area location you are curious aboutpublic Room getSafeRoomToMovePropertyTo(Room room, PrivateProperty I)
WorldMap
getSafeRoomToMovePropertyTo
in interface WorldMap
room
- the room that needs moving FROMI
- null, or private property that needs movingpublic void emptyRoom(Room room, Room toRoom, boolean clearPlayers)
WorldMap
public void obliterateMapArea(Area A)
WorldMap
obliterateMapArea
in interface WorldMap
A
- the area to obliterateWorldMap.destroyAreaObject(Area)
public void destroyAreaObject(Area A)
WorldMap
destroyAreaObject
in interface WorldMap
A
- the area to destroyWorldMap.obliterateMapArea(Area)
protected void obliterateArea(Area A, boolean includeDB)
public void resetRoom(Room room)
WorldMap
public void resetRoom(Room room, boolean rebuildGrids)
WorldMap
protected PairVector<MOB,java.lang.String> getAllPlayersHere(Area area, boolean includeLocalFollowers)
public void resetArea(Area area)
WorldMap
public boolean hasASky(Room room)
WorldMap
public void registerWorldObjectDestroyed(Area area, Room room, CMObject o)
WorldMap
registerWorldObjectDestroyed
in interface WorldMap
area
- the area that the object was originally loaded intoroom
- the room that the object was originally loaded intoo
- the object to de-registerWorldMap.registerWorldObjectLoaded(Area, Room, CMObject)
public void registerWorldObjectLoaded(Area area, Room room, CMObject o)
WorldMap
registerWorldObjectLoaded
in interface WorldMap
area
- the area that the object was loaded intoroom
- the room that the object was loaded intoo
- the object to register as loadedWorldMap.registerWorldObjectDestroyed(Area, Room, CMObject)
protected void cleanScriptHosts(SLinkedList<WorldMap.LocatedPair> hosts, PhysicalAgent oneToDel, boolean fullCleaning)
protected boolean isAQualifyingScriptHost(PhysicalAgent host)
protected boolean isAScriptHost(Area area, PhysicalAgent host)
protected boolean isAScriptHost(SLinkedList<WorldMap.LocatedPair> hosts, PhysicalAgent host)
protected final java.lang.Object getScriptHostSemaphore(Area area)
protected void addScriptHost(Area area, Room room, PhysicalAgent host)
protected void delScriptHost(Area area, PhysicalAgent oneToDel)
public java.util.Enumeration<WorldMap.LocatedPair> scriptHosts(Area area)
WorldMap
scriptHosts
in interface WorldMap
area
- null, or the area to limit returns toWorldMap.LocatedPair.room()
public boolean activate()
CMLibrary
activate
in interface CMLibrary
activate
in class StdLibrary
CMLibrary.shutdown()
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdLibrary
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in TickableTickable
,
ServiceEngine
,
TickableGroup
public boolean shutdown()
CMLibrary
shutdown
in interface CMLibrary
shutdown
in class StdLibrary
CMLibrary.activate()
public void roomMaintSweep()
protected java.lang.String cmfsFilenameify(java.lang.String str)
protected void addMapStatFiles(java.util.List<CMFile.CMVFSFile> rootFiles, Room R, Environmental E, CMFile.CMVFSDir root)
public CMFile.CMVFSDir getMapRoot(CMFile.CMVFSDir root)
WorldMap
getMapRoot
in interface WorldMap
root
- the root directory to add the map directory to