CMObject
, Tickable
, CMLibrary
, TrackingLibrary
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class MUDTracker extends StdLibrary implements TrackingLibrary
Modifier and Type | Class | Description |
---|---|---|
protected static class |
MUDTracker.DefaultRFilters |
|
protected static class |
MUDTracker.DefaultTrackingFlags |
|
protected static class |
MUDTracker.RFilterNode |
TrackingLibrary.RFilter, TrackingLibrary.RFilters, TrackingLibrary.TrackingFlag, TrackingLibrary.TrackingFlags, TrackingLibrary.TrailFlag
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
closeCommandSets |
|
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
directionCommandSets |
|
protected static TrackingLibrary.RFilters |
EMPTY_FILTERS |
|
protected static TrackingLibrary.TrackingFlags |
EMPTY_FLAGS |
|
protected TrackingLibrary.RFilters |
emptyFilter |
|
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
openCommandSets |
|
protected java.util.Map<TrackingLibrary.TrackingFlags,TrackingLibrary.RFilters> |
trackingFilters |
|
protected TrackingLibrary.RFilter |
validIDFilter |
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
Constructor | Description |
---|---|
MUDTracker() |
Modifier and Type | Method | Description |
---|---|---|
static java.util.List<Rider> |
addRiders(Rider theRider,
Rideable riding,
java.util.List<Rider> riders) |
|
boolean |
areNearEachOther(MOB whichM,
MOB nearM) |
Returns true if the two give mobs are in the same room,
or adjacent rooms.
|
boolean |
autoTrack(MOB mob,
Room destR) |
Starts the given mob tracking from their current location to the given room.
|
boolean |
beMobile(MOB mob,
boolean dooropen,
boolean wander,
boolean roomprefer,
boolean roomobject,
int[] status,
java.util.Set<Room> rooms) |
The random mobility method, for controlling movement of a move from one room to an ajacent one.
|
PairVector<Room,int[]> |
buildGridList(Room room,
java.lang.String ownerName,
int maxDepth) |
Builts a radiating room list that is assumed to be in grid formation, and
owned as private property.
|
boolean |
canValidTrail(Room startR,
java.util.List<Room> radiantV,
java.lang.String where,
int radius,
java.util.Set<Room> ignoreRooms,
int maxSecs) |
Searches for a room fitting to the given search string, within the given
radiant rooms, with a trail fitting the given trail flags, optionally ignoring
any ignore rooms.
|
MOB |
createNavigationMob(NavigableItem ship) |
When large sailing ships or caravans navigate from room to room,
a fake temporary mob is used to represent the agency of the ship
per se.
|
boolean |
doFallenOffCheck(MOB mob) |
If the given mob is riding anything, this will schedule a check
to see if it is STILL riding.
|
Rideable |
findALadder(MOB mob,
Room room) |
If theres a ladder that can be seen in the
same room as the given mob, this returns it.
|
java.util.List<java.util.List<java.lang.Integer>> |
findAllTrails(Room from,
Room to,
java.util.List<Room> radiantTrail) |
Returns every trail found from the starting to the ending room, given a radiantTrail that includes
both.
|
java.util.List<java.util.List<java.lang.Integer>> |
findAllTrails(Room from,
java.util.List<Room> tos,
java.util.List<Room> radiantTrail) |
Returns every trail found from the starting to each ending room, given a radiantTrail that includes
all.
|
int |
findExitDir(MOB mob,
Room R,
java.lang.String desc) |
Given a mob with eyes, and their location, and a match string,
this will attempt to match one of the exits and return it.
|
int |
findRoomDir(MOB mob,
Room R) |
Given a mob and a room, returns the direction from
the mobs direction to the target room, if possible.
|
java.util.List<Room> |
findTrailToAnyRoom(Room location,
TrackingLibrary.RFilter destFilter,
TrackingLibrary.TrackingFlags flags,
int maxRadius) |
Returns a trail of rooms to move through in order to go from the given location
to a room that is not filtered out of the destFilter.
|
java.util.List<Room> |
findTrailToAnyRoom(Room location,
java.util.List<Room> destRooms,
TrackingLibrary.TrackingFlags flags,
int maxRadius) |
Returns a trail of rooms to move through in order to go from the given location
to one of the given destination rooms.
|
java.util.List<Room> |
findTrailToRoom(Room location,
Room destRoom,
TrackingLibrary.TrackingFlags flags,
int maxRadius) |
Returns a trail of rooms to move through in order to go from the given location
to the given destination room.
|
java.util.List<Room> |
findTrailToRoom(Room location,
Room destRoom,
TrackingLibrary.TrackingFlags flags,
int maxRadius,
java.util.List<Room> radiant) |
Returns a trail of rooms to move through in order to go from the given location
to the given destination room.
|
protected void |
forceEntry(MOB M,
Room toHere,
boolean andFollowers,
boolean forceLook,
java.lang.String msg) |
|
void |
forceRecall(MOB mob,
boolean includeFollowers) |
Attempts to recall the given mob, and optinally all
their followers, by generating a recall message and
previewing and sending it.
|
Room |
getCalculatedAdjacentGridRoom(PairVector<Room,int[]> rooms,
Room R,
int dir) |
Given a set of rooms built with grid coordinates, and a starting
room inside that grid, and a direction, this will return the
adjacent room based on the built grid.
|
protected int |
getCheckedDir(MOB M,
Room toHere) |
|
protected java.util.List<java.lang.String> |
getCloseCommandSet(int direction) |
|
protected java.util.List<java.lang.String> |
getDirectionCommandSet(int direction) |
|
protected int |
getIndexEnsureSet(Room R1,
Room R2,
java.util.List<Room> set,
int radius,
java.util.Set<Room> ignoreRooms) |
|
Room |
getNearestValidIDRoom(Room R) |
Based on radiating rooms from the given room, this
will return the nearest room that has a valid room id.
|
protected java.util.List<java.lang.String> |
getOpenCommandSet(int direction) |
|
java.util.List<Area> |
getRadiantAreas(Area area,
int maxDepth) |
Generates an ordered list of areas radiating from the given area, with max
depth.
|
protected void |
getRadiantAreas(Area area,
java.util.List<Area> areas,
Area radiateTo,
int maxDepth,
java.util.Set<Area> ignoreAreas) |
|
java.util.List<Room> |
getRadiantRooms(Room room,
TrackingLibrary.RFilters filters,
int maxDepth) |
Generates an ordered list of rooms radiating from the given room, with max
depth and optional room radiating filters.
|
java.util.List<Room> |
getRadiantRooms(Room room,
TrackingLibrary.TrackingFlags flags,
int maxDepth) |
Generates an ordered list of rooms radiating from the given room, with max
depth and optional room radiating filters.
|
void |
getRadiantRooms(Room room,
java.util.List<Room> rooms,
TrackingLibrary.RFilters filters,
Room radiateTo,
int maxDepth,
java.util.Set<Room> ignoreRooms) |
Generates an ordered list of rooms radiating from the given room, with max
depth, and optional ignore rooms, and radiating room filters.
|
void |
getRadiantRooms(Room room,
java.util.List<Room> rooms,
TrackingLibrary.TrackingFlags flags,
Room radiateTo,
int maxDepth,
java.util.Set<Room> ignoreRooms) |
Generates an ordered list of rooms radiating from the given room, with max
depth, and optional stopping room, ignore rooms, and flags.
|
java.util.Enumeration<Room> |
getRadiantRoomsEnum(Room room,
TrackingLibrary.RFilters filters,
Room radiateTo,
int maxDepth,
java.util.Set<Room> ignoreRooms) |
Generates a enumerator for an ordered list of rooms radiating from
the given room, with max depth, and optional ignore rooms, and
radiating room filters.
|
protected boolean |
getRadiantRoomsToTarget(Room room,
java.util.List<Room> rooms,
TrackingLibrary.RFilters filters,
TrackingLibrary.RFilter radiateTo,
int maxDepth) |
|
boolean |
getRadiantRoomsToTarget(Room room,
java.util.List<Room> rooms,
TrackingLibrary.TrackingFlags flags,
TrackingLibrary.RFilter radiateTo,
int maxDepth) |
Generates an ordered list of rooms radiating from the given room, to a
given target room filter in, with max depth, and optional ignore rooms, and
radiating room filters/flags.
|
Room |
getRadiantRoomTarget(Room room,
TrackingLibrary.RFilters filters,
TrackingLibrary.RFilter radiateTo) |
Returns a room that is not filtered out of the rooms radiating from the given room.
|
protected int |
getRoomDirection(Room R,
Room toRoom,
java.util.List<Room> ignore) |
|
java.util.List<java.lang.Integer> |
getShortestTrail(java.util.List<java.util.List<java.lang.Integer>> finalSets) |
Does nothing interesting.
|
java.lang.String |
getTrailToDescription(Room startR,
java.util.List<Room> radiantV,
java.lang.String where,
java.util.Set<TrackingLibrary.TrailFlag> trailFlags,
int radius,
java.util.Set<Room> ignoreRooms,
int maxSecs) |
Searches for a room fitting to the given search string, within the given
radiant rooms, with a trail fitting the given trail flags, optionally ignoring
any ignore rooms.
|
protected Room |
getWhere(java.lang.String where,
java.util.List<Room> set) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
CMMsg.CheckedMsgResponse |
isOkWaterSurfaceAffect(Room room,
CMMsg msg) |
Utility method for handling movement into a water surface type
room.
|
boolean |
makeFall(Physical P,
Room room,
boolean reverseFall) |
Causes the given mob or item to 'fall' from one room to another,
usually down, if it can.
|
void |
makeSink(Physical P,
Room room,
boolean reverseSink) |
Causes the given mob or item to 'sink' from one room to another,
usually down, if it can.
|
void |
markToWanderHomeLater(MOB M,
int ticks) |
Marks the mob with a temporary behavior that will force
the mob to wander back to their start room as soon
as possible.
|
protected boolean |
move(MOB mob,
int directionCode,
boolean flee,
boolean nolook,
boolean noriders,
boolean always,
boolean running) |
|
TrackingLibrary.TrackingFlags |
newFlags() |
Constructs a new set of TrackingFlags, which are filters for
use in radiant and room finding methods.
|
void |
postMountLadder(MOB mob,
Rideable ladder) |
Causes the given mob to mount the given ladder.
|
int |
radiatesFromDir(Room room,
java.util.List<Room> rooms) |
This method is helpful for traversing room trails.
|
java.util.List<Rider> |
ridersAhead(Rider theRider,
Room sourceRoom,
Room destRoom,
int directionCode,
boolean flee,
boolean running) |
|
void |
ridersBehind(java.util.List<Rider> riders,
Room sourceRoom,
Room destRoom,
int directionCode,
boolean flee,
boolean running) |
|
boolean |
run(MOB mob,
int directionCode,
boolean flee,
boolean nolook,
boolean noriders) |
Causes the given mob to attempt to run in the given direction.
|
boolean |
run(MOB mob,
int directionCode,
boolean flee,
boolean nolook,
boolean noriders,
boolean always) |
Causes the given mob to attempt to run in the given direction.
|
void |
stopTracking(MOB mob) |
Uninvokes and deletes any Tracking-related effects on the given mob.
|
int |
trackNextDirectionFromHere(java.util.List<Room> theTrail,
Room location,
boolean openOnly) |
Given a room trail, with the destination room first, and the location last, this
will return the next direction to travel from the given location, optionally stopping
at doors.
|
boolean |
walk(Item I,
int directionCode) |
Narrates the movement of an item, usually a rideable, in a given direction, from its current
location.
|
boolean |
walk(MOB mob,
int directionCode,
boolean flee,
boolean nolook) |
Causes the given mob to attempt to walk in the given direction.
|
boolean |
walk(MOB mob,
int directionCode,
boolean flee,
boolean nolook,
boolean noriders) |
Causes the given mob to attempt to walk in the given direction.
|
boolean |
walk(MOB mob,
int directionCode,
boolean flee,
boolean nolook,
boolean noriders,
boolean always) |
Causes the given mob to attempt to walk in the given direction.
|
void |
walkForced(MOB M,
Room fromHere,
Room toHere,
boolean andFollowers,
boolean forceLook,
java.lang.String msgStr) |
Forces the given mob to leave the from room and enter to the room, without
preview.
|
void |
wanderAway(MOB M,
boolean mindPCs,
boolean andGoHome) |
Forces the given mob to leave the room, for aesthetic purposes.
|
boolean |
wanderCheckedAway(MOB M,
boolean mindPCs,
boolean andGoHome) |
Forces the given mob to leave the room, for aesthetic purposes.
|
boolean |
wanderCheckedFromTo(MOB M,
Room toHere,
boolean mindPCs) |
Aesthetically transports a mob from their location to
a target room by having them leave their current room
legitimately, and enter the target one.
|
void |
wanderFromTo(MOB M,
Room toHere,
boolean mindPCs) |
Aesthetically transports a mob from their location to
a target room by having them leave their current room
legitimately, and enter the target one.
|
void |
wanderIn(MOB M,
Room toHere) |
Aesthetically transports a mob from their location to
a target room by having them leave their current room
legitimately, and enter the target one.
|
activate, getServiceClient, L, propertiesLoaded, shutdown
copyOf, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tick
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> directionCommandSets
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> openCommandSets
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> closeCommandSets
protected java.util.Map<TrackingLibrary.TrackingFlags,TrackingLibrary.RFilters> trackingFilters
protected static final TrackingLibrary.TrackingFlags EMPTY_FLAGS
protected static final TrackingLibrary.RFilters EMPTY_FILTERS
protected final TrackingLibrary.RFilters emptyFilter
protected final TrackingLibrary.RFilter validIDFilter
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public boolean autoTrack(MOB mob, Room destR)
TrackingLibrary
autoTrack
in interface TrackingLibrary
mob
- the mob to start trackingdestR
- the target roomTrackingLibrary.stopTracking(MOB)
protected java.util.List<java.lang.String> getDirectionCommandSet(int direction)
protected java.util.List<java.lang.String> getOpenCommandSet(int direction)
protected java.util.List<java.lang.String> getCloseCommandSet(int direction)
public java.util.List<Room> findTrailToRoom(Room location, Room destRoom, TrackingLibrary.TrackingFlags flags, int maxRadius)
TrackingLibrary
findTrailToRoom
in interface TrackingLibrary
location
- the starting room for the traildestRoom
- the target room for the trailflags
- any Radiant flags -- not used in the trail calculationmaxRadius
- maximum radius for the Radiant roomsTrackingLibrary.trackNextDirectionFromHere(List, Room, boolean)
,
TrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public java.util.List<Room> findTrailToRoom(Room location, Room destRoom, TrackingLibrary.TrackingFlags flags, int maxRadius, java.util.List<Room> radiant)
TrackingLibrary
findTrailToRoom
in interface TrackingLibrary
location
- the starting room for the traildestRoom
- the target room for the trailflags
- any Radiant flags -- not used in the trail calculationmaxRadius
- maximum radius for the Radiant roomsradiant
- optional radiant rooms listTrackingLibrary.trackNextDirectionFromHere(List, Room, boolean)
,
TrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public void markToWanderHomeLater(MOB M, int ticks)
TrackingLibrary
markToWanderHomeLater
in interface TrackingLibrary
M
- the mob to moveticks
- the number of ticks to wait, or 0TrackingLibrary.wanderAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderIn(MOB, Room)
,
TrackingLibrary.forceRecall(MOB, boolean)
public java.util.List<Room> findTrailToAnyRoom(Room location, java.util.List<Room> destRooms, TrackingLibrary.TrackingFlags flags, int maxRadius)
TrackingLibrary
findTrailToAnyRoom
in interface TrackingLibrary
location
- the starting room for the traildestRooms
- a list of rooms, any of which may be the destinationflags
- any Radiant flags -- not used in the trail calculationmaxRadius
- maximum radius for the Radiant roomsTrackingLibrary.trackNextDirectionFromHere(List, Room, boolean)
,
TrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public java.util.List<Room> findTrailToAnyRoom(Room location, TrackingLibrary.RFilter destFilter, TrackingLibrary.TrackingFlags flags, int maxRadius)
TrackingLibrary
findTrailToAnyRoom
in interface TrackingLibrary
location
- the starting room for the traildestFilter
- a filter to identify the destination, by filtering OUTflags
- any Radiant flags -- not used in the trail calculationmaxRadius
- maximum radius for the Radiant roomsTrackingLibrary.trackNextDirectionFromHere(List, Room, boolean)
,
TrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public int trackNextDirectionFromHere(java.util.List<Room> theTrail, Room location, boolean openOnly)
TrackingLibrary
trackNextDirectionFromHere
in interface TrackingLibrary
theTrail
- the room traillocation
- the current room on the trailopenOnly
- true to skip doorsTrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
public int radiatesFromDir(Room room, java.util.List<Room> rooms)
TrackingLibrary
radiatesFromDir
in interface TrackingLibrary
room
- the source roomrooms
- the list of roomspublic java.util.List<Room> getRadiantRooms(Room room, TrackingLibrary.TrackingFlags flags, int maxDepth)
TrackingLibrary
getRadiantRooms
in interface TrackingLibrary
room
- the starting roomflags
- one or more filters that blocks various radiation pathsmaxDepth
- the maximum depth of the radiationTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
public java.util.List<Room> getRadiantRooms(Room room, TrackingLibrary.RFilters filters, int maxDepth)
TrackingLibrary
getRadiantRooms
in interface TrackingLibrary
room
- the starting roomfilters
- one or more filters that blocks various radiation pathsmaxDepth
- the maximum depth of the radiationTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
public java.util.List<Area> getRadiantAreas(Area area, int maxDepth)
TrackingLibrary
getRadiantAreas
in interface TrackingLibrary
area
- the starting areamaxDepth
- the maximum depth of the radiationTrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
public void getRadiantRooms(Room room, java.util.List<Room> rooms, TrackingLibrary.TrackingFlags flags, Room radiateTo, int maxDepth, java.util.Set<Room> ignoreRooms)
TrackingLibrary
getRadiantRooms
in interface TrackingLibrary
room
- the starting roomrooms
- the radiant rooms outputflags
- optional flags to limit the radiant pathsradiateTo
- optional room to stop at, which would be last on the listmaxDepth
- the maximum depth of the radiationignoreRooms
- optional rooms to ignore in radiationTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
public TrackingLibrary.TrackingFlags newFlags()
TrackingLibrary
newFlags
in interface TrackingLibrary
public void getRadiantRooms(Room room, java.util.List<Room> rooms, TrackingLibrary.RFilters filters, Room radiateTo, int maxDepth, java.util.Set<Room> ignoreRooms)
TrackingLibrary
getRadiantRooms
in interface TrackingLibrary
room
- the starting roomrooms
- the radiant rooms outputfilters
- one or more filters that blocks various radiation pathsradiateTo
- optional room to stop at, which would be last on the listmaxDepth
- the maximum depth of the radiationignoreRooms
- optional rooms to ignore in radiationTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
protected void getRadiantAreas(Area area, java.util.List<Area> areas, Area radiateTo, int maxDepth, java.util.Set<Area> ignoreAreas)
public java.util.Enumeration<Room> getRadiantRoomsEnum(Room room, TrackingLibrary.RFilters filters, Room radiateTo, int maxDepth, java.util.Set<Room> ignoreRooms)
TrackingLibrary
getRadiantRoomsEnum
in interface TrackingLibrary
room
- the starting roomfilters
- one or more filters that blocks various radiation pathsradiateTo
- optional room to stop at, which would be last on the listmaxDepth
- the maximum depth of the radiationignoreRooms
- optional rooms to ignore in radiationTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
public boolean getRadiantRoomsToTarget(Room room, java.util.List<Room> rooms, TrackingLibrary.TrackingFlags flags, TrackingLibrary.RFilter radiateTo, int maxDepth)
TrackingLibrary
getRadiantRoomsToTarget
in interface TrackingLibrary
room
- the starting roomrooms
- the radiant rooms outputflags
- one or more filters that blocks various radiation pathsradiateTo
- filter for the room to stop at, which would be last on the listmaxDepth
- the maximum depth of the radiationTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomTarget(Room, RFilters, RFilter)
protected boolean getRadiantRoomsToTarget(Room room, java.util.List<Room> rooms, TrackingLibrary.RFilters filters, TrackingLibrary.RFilter radiateTo, int maxDepth)
public Room getRadiantRoomTarget(Room room, TrackingLibrary.RFilters filters, TrackingLibrary.RFilter radiateTo)
TrackingLibrary
getRadiantRoomTarget
in interface TrackingLibrary
room
- the starting roomfilters
- one or more filters that blocks various radiation pathsradiateTo
- filter that the returned room is NOT filtered out ofTrackingLibrary.getRadiantAreas(Area, int)
,
TrackingLibrary.getRadiantRooms(Room, RFilters, int)
,
TrackingLibrary.getRadiantRooms(Room, TrackingFlags, int)
,
TrackingLibrary.getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
TrackingLibrary.getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
public Room getNearestValidIDRoom(Room R)
TrackingLibrary
getNearestValidIDRoom
in interface TrackingLibrary
R
- the room that is prob not validpublic void stopTracking(MOB mob)
TrackingLibrary
stopTracking
in interface TrackingLibrary
mob
- the mob to untrackTrackingLibrary.autoTrack(MOB, Room)
public boolean beMobile(MOB mob, boolean dooropen, boolean wander, boolean roomprefer, boolean roomobject, int[] status, java.util.Set<Room> rooms)
TrackingLibrary
beMobile
in interface TrackingLibrary
mob
- the mob who needs to be moveddooropen
- true attempt to open any closed doors, unless its private propertywander
- true to cross area boundariesroomprefer
- only take a room on the optional listroomobject
- take any room UNLES it is on the optional liststatus
- optional status tracker for debuggingrooms
- optional set of rooms for prefer or objectTrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public void wanderAway(MOB M, boolean mindPCs, boolean andGoHome)
TrackingLibrary
wanderAway
in interface TrackingLibrary
M
- the mob to movemindPCs
- true to not leave if pcs are presentandGoHome
- true to also aesthetically go back to start roomTrackingLibrary.wanderCheckedAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderIn(MOB, Room)
,
TrackingLibrary.markToWanderHomeLater(MOB, int)
,
TrackingLibrary.forceRecall(MOB, boolean)
public boolean areNearEachOther(MOB whichM, MOB nearM)
TrackingLibrary
areNearEachOther
in interface TrackingLibrary
whichM
- the first mobnearM
- the second mobpublic boolean wanderCheckedAway(MOB M, boolean mindPCs, boolean andGoHome)
TrackingLibrary
wanderCheckedAway
in interface TrackingLibrary
M
- the mob to leavemindPCs
- true to NOT leave if pcs are presentandGoHome
- true to be transported to start roomTrackingLibrary.wanderAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderIn(MOB, Room)
,
TrackingLibrary.markToWanderHomeLater(MOB, int)
,
TrackingLibrary.forceRecall(MOB, boolean)
public void wanderFromTo(MOB M, Room toHere, boolean mindPCs)
TrackingLibrary
wanderFromTo
in interface TrackingLibrary
M
- the mob to movetoHere
- the destination roommindPCs
- true to not leave if pcs are presentTrackingLibrary.wanderAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderIn(MOB, Room)
,
TrackingLibrary.markToWanderHomeLater(MOB, int)
,
TrackingLibrary.forceRecall(MOB, boolean)
public boolean wanderCheckedFromTo(MOB M, Room toHere, boolean mindPCs)
TrackingLibrary
wanderCheckedFromTo
in interface TrackingLibrary
M
- the mob to movetoHere
- the target roommindPCs
- true to not leave if pcs are presentTrackingLibrary.wanderAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderIn(MOB, Room)
,
TrackingLibrary.markToWanderHomeLater(MOB, int)
,
TrackingLibrary.forceRecall(MOB, boolean)
public void wanderIn(MOB M, Room toHere)
TrackingLibrary
wanderIn
in interface TrackingLibrary
M
- the mob to movetoHere
- the destination roomTrackingLibrary.wanderAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderFromTo(MOB, Room, boolean)
,
TrackingLibrary.markToWanderHomeLater(MOB, int)
,
TrackingLibrary.forceRecall(MOB, boolean)
protected void forceEntry(MOB M, Room toHere, boolean andFollowers, boolean forceLook, java.lang.String msg)
public void walkForced(MOB M, Room fromHere, Room toHere, boolean andFollowers, boolean forceLook, java.lang.String msgStr)
TrackingLibrary
walkForced
in interface TrackingLibrary
M
- the mob who needs to movefromHere
- the room lefttoHere
- the room enteredandFollowers
- true to include followersforceLook
- true to force the mob to look around after entering the new roommsgStr
- the entering message stringTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public boolean doFallenOffCheck(MOB mob)
TrackingLibrary
doFallenOffCheck
in interface TrackingLibrary
mob
- the mob to checkpublic void ridersBehind(java.util.List<Rider> riders, Room sourceRoom, Room destRoom, int directionCode, boolean flee, boolean running)
public static java.util.List<Rider> addRiders(Rider theRider, Rideable riding, java.util.List<Rider> riders)
public MOB createNavigationMob(NavigableItem ship)
TrackingLibrary
createNavigationMob
in interface TrackingLibrary
ship
- the navigable shippublic java.util.List<Rider> ridersAhead(Rider theRider, Room sourceRoom, Room destRoom, int directionCode, boolean flee, boolean running)
public boolean walk(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders)
TrackingLibrary
walk
in interface TrackingLibrary
mob
- the mob who needs to movedirectionCode
- the direction to walkflee
- true to generate a FLEE from combat messagenolook
- true to avoid looking around when entering the next roomnoriders
- true to prevent rideables being involvedTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public boolean run(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders)
TrackingLibrary
run
in interface TrackingLibrary
mob
- the mob who needs to movedirectionCode
- the direction to walkflee
- true to generate a FLEE from combat messagenolook
- true to avoid looking around when entering the next roomnoriders
- true to prevent rideables being involvedTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public boolean walk(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders, boolean always)
TrackingLibrary
walk
in interface TrackingLibrary
mob
- the mob who needs to movedirectionCode
- the direction to walkflee
- true to generate a FLEE from combat messagenolook
- true to avoid looking around when entering the next roomnoriders
- true to prevent rideables being involvedalways
- true to set the always message flag, preventing preventative checksTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public boolean run(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders, boolean always)
TrackingLibrary
run
in interface TrackingLibrary
mob
- the mob who needs to movedirectionCode
- the direction to walkflee
- true to generate a FLEE from combat messagenolook
- true to avoid looking around when entering the next roomnoriders
- true to prevent rideables being involvedalways
- true to set the always message flag, preventing preventative checksTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
protected boolean move(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders, boolean always, boolean running)
public boolean walk(MOB mob, int directionCode, boolean flee, boolean nolook)
TrackingLibrary
walk
in interface TrackingLibrary
mob
- the mob who needs to movedirectionCode
- the direction to walkflee
- true to generate a FLEE from combat messagenolook
- true to avoid looking around when entering the next roomTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(Item, int)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public boolean walk(Item I, int directionCode)
TrackingLibrary
walk
in interface TrackingLibrary
I
- the item to movedirectionCode
- the direction to walkTrackingLibrary.beMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
TrackingLibrary.walk(MOB, int, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.walk(MOB, int, boolean, boolean, boolean, boolean)
,
TrackingLibrary.walkForced(MOB, Room, Room, boolean, boolean, String)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean)
,
TrackingLibrary.run(MOB, int, boolean, boolean, boolean, boolean)
public int findExitDir(MOB mob, Room R, java.lang.String desc)
TrackingLibrary
findExitDir
in interface TrackingLibrary
mob
- the mob who needs to moveR
- the room to find exits indesc
- the exit match stringpublic int findRoomDir(MOB mob, Room R)
TrackingLibrary
findRoomDir
in interface TrackingLibrary
mob
- the mobR
- the target roompublic java.util.List<java.lang.Integer> getShortestTrail(java.util.List<java.util.List<java.lang.Integer>> finalSets)
TrackingLibrary
getShortestTrail
in interface TrackingLibrary
finalSets
- the shorted list > 0TrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public java.util.List<java.util.List<java.lang.Integer>> findAllTrails(Room from, Room to, java.util.List<Room> radiantTrail)
TrackingLibrary
findAllTrails
in interface TrackingLibrary
from
- the starting roomto
- the target roomradiantTrail
- the radiant rooms from the starting roomTrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public java.util.List<java.util.List<java.lang.Integer>> findAllTrails(Room from, java.util.List<Room> tos, java.util.List<Room> radiantTrail)
TrackingLibrary
findAllTrails
in interface TrackingLibrary
from
- the starting roomtos
- the target roomsradiantTrail
- the radiant rooms from the starting roomTrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
protected int getIndexEnsureSet(Room R1, Room R2, java.util.List<Room> set, int radius, java.util.Set<Room> ignoreRooms)
public boolean canValidTrail(Room startR, java.util.List<Room> radiantV, java.lang.String where, int radius, java.util.Set<Room> ignoreRooms, int maxSecs)
TrackingLibrary
canValidTrail
in interface TrackingLibrary
startR
- the starting roomradiantV
- the complete radiant roomswhere
- the target to search forradius
- the maximum radius to travelignoreRooms
- optional set of rooms to ignore in the trailmaxSecs
- maximum seconds to keep looking for trailTrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.getTrailToDescription(Room, List, String, Set, int, Set, int)
public java.lang.String getTrailToDescription(Room startR, java.util.List<Room> radiantV, java.lang.String where, java.util.Set<TrackingLibrary.TrailFlag> trailFlags, int radius, java.util.Set<Room> ignoreRooms, int maxSecs)
TrackingLibrary
getTrailToDescription
in interface TrackingLibrary
startR
- the starting roomradiantV
- the complete radiant roomswhere
- the target to search fortrailFlags
- the flags for rooms to travel throughradius
- the maximum radius to travelignoreRooms
- optional set of rooms to ignore in the trailmaxSecs
- maximum seconds to keep looking for trailTrackingLibrary.findAllTrails(Room, List, List)
,
TrackingLibrary.findAllTrails(Room, Room, List)
,
TrackingLibrary.findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
TrackingLibrary.findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int)
,
TrackingLibrary.findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
TrackingLibrary.getShortestTrail(List)
,
TrackingLibrary.canValidTrail(Room, List, String, int, Set, int)
public Rideable findALadder(MOB mob, Room room)
TrackingLibrary
findALadder
in interface TrackingLibrary
mob
- the mob who wants a ladderroom
- the room that might have a ladder in itTrackingLibrary.postMountLadder(MOB, Rideable)
public void postMountLadder(MOB mob, Rideable ladder)
TrackingLibrary
postMountLadder
in interface TrackingLibrary
mob
- the mob who wants to use a ladderladder
- the ladderTrackingLibrary.findALadder(MOB, Room)
public boolean makeFall(Physical P, Room room, boolean reverseFall)
TrackingLibrary
makeFall
in interface TrackingLibrary
P
- the thing to fallroom
- the things locationreverseFall
- true to fall UP instead of downpublic CMMsg.CheckedMsgResponse isOkWaterSurfaceAffect(Room room, CMMsg msg)
TrackingLibrary
isOkWaterSurfaceAffect
in interface TrackingLibrary
room
- the watery room an event occurred inmsg
- the event happening in thepublic void makeSink(Physical P, Room room, boolean reverseSink)
TrackingLibrary
makeSink
in interface TrackingLibrary
P
- the thing to fallroom
- the things locationreverseSink
- true to sink 'up'public void forceRecall(MOB mob, boolean includeFollowers)
TrackingLibrary
forceRecall
in interface TrackingLibrary
mob
- the mob to moveincludeFollowers
- true to also recall followersTrackingLibrary.wanderAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedAway(MOB, boolean, boolean)
,
TrackingLibrary.wanderCheckedFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderFromTo(MOB, Room, boolean)
,
TrackingLibrary.wanderIn(MOB, Room)
,
TrackingLibrary.markToWanderHomeLater(MOB, int)
public PairVector<Room,int[]> buildGridList(Room room, java.lang.String ownerName, int maxDepth)
TrackingLibrary
buildGridList
in interface TrackingLibrary
room
- the starting roomownerName
- "", or the owner of the rooms to returnmaxDepth
- the max depth to radiateTrackingLibrary.getCalculatedAdjacentGridRoom(PairVector, Room, int)
public Room getCalculatedAdjacentGridRoom(PairVector<Room,int[]> rooms, Room R, int dir)
TrackingLibrary
getCalculatedAdjacentGridRoom
in interface TrackingLibrary
rooms
- the built grid array of rooms and locationsR
- the room to start fromdir
- the direction to inquire aboutTrackingLibrary.buildGridList(Room, String, int)
public void initializeClass()
CMObject
initializeClass
in interface CMObject
initializeClass
in class StdLibrary