MUDTracker
public interface TrackingLibrary extends CMLibrary
Modifier and Type | Interface | Description |
---|---|---|
static interface |
TrackingLibrary.RFilter |
A filtering interface for rooms, or for moving from a host room
to a target room.
|
static interface |
TrackingLibrary.RFilters |
A filtering interface for rooms, or for moving from a host room
to a target room.
|
static class |
TrackingLibrary.TrackingFlag |
A Tracking Flag is a form of RFiler that is an enum that
includes various pre-configured rfilters used
throughout the engine.
|
static interface |
TrackingLibrary.TrackingFlags |
A collection of tracking flags, which are really just RFilter
objects wrappers.
|
static class |
TrackingLibrary.TrailFlag |
Trail flags when building a description of
trail description.
|
idConverter
Modifier and Type | Method | Description |
---|---|---|
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.
|
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.
|
Room |
getNearestValidIDRoom(Room R) |
Based on radiating rooms from the given room, this
will return the nearest room that has a valid room id.
|
java.util.List<Area> |
getRadiantAreas(Area area,
int maxDepth) |
Generates an ordered list of areas radiating from the given area, with max
depth.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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, ID, initializeClass, name, newInstance
java.util.List<Room> findTrailToRoom(Room location, Room destRoom, TrackingLibrary.TrackingFlags flags, int maxRadius)
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 roomstrackNextDirectionFromHere(List, Room, boolean)
,
findAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
java.util.List<Room> findTrailToRoom(Room location, Room destRoom, TrackingLibrary.TrackingFlags flags, int maxRadius, java.util.List<Room> radiant)
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 listtrackNextDirectionFromHere(List, Room, boolean)
,
findAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
java.util.List<Room> findTrailToAnyRoom(Room location, java.util.List<Room> destRooms, TrackingLibrary.TrackingFlags flags, int maxRadius)
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 roomstrackNextDirectionFromHere(List, Room, boolean)
,
findAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
java.util.List<Room> findTrailToAnyRoom(Room location, TrackingLibrary.RFilter destFilter, TrackingLibrary.TrackingFlags flags, int maxRadius)
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 roomstrackNextDirectionFromHere(List, Room, boolean)
,
findAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
java.util.List<java.util.List<java.lang.Integer>> findAllTrails(Room from, Room to, java.util.List<Room> radiantTrail)
from
- the starting roomto
- the target roomradiantTrail
- the radiant rooms from the starting roomfindAllTrails(Room, List, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
java.util.List<java.util.List<java.lang.Integer>> findAllTrails(Room from, java.util.List<Room> tos, java.util.List<Room> radiantTrail)
from
- the starting roomtos
- the target roomsradiantTrail
- the radiant rooms from the starting roomfindAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
java.util.List<java.lang.Integer> getShortestTrail(java.util.List<java.util.List<java.lang.Integer>> finalSets)
finalSets
- the shorted list > 0findAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
,
canValidTrail(Room, List, String, int, Set, int)
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)
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 trailfindAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
canValidTrail(Room, List, String, int, Set, int)
boolean canValidTrail(Room startR, java.util.List<Room> radiantV, java.lang.String where, int radius, java.util.Set<Room> ignoreRooms, int maxSecs)
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 trailfindAllTrails(Room, List, List)
,
findAllTrails(Room, Room, List)
,
findTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
,
getShortestTrail(List)
,
getTrailToDescription(Room, List, String, Set, int, Set, int)
int trackNextDirectionFromHere(java.util.List<Room> theTrail, Room location, boolean openOnly)
theTrail
- the room traillocation
- the current room on the trailopenOnly
- true to skip doorsfindTrailToAnyRoom(Room, List, TrackingFlags, int)
,
findTrailToAnyRoom(Room, RFilter, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int)
,
findTrailToRoom(Room, Room, TrackingFlags, int, List)
void stopTracking(MOB mob)
mob
- the mob to untrackautoTrack(MOB, Room)
boolean autoTrack(MOB mob, Room destR)
mob
- the mob to start trackingdestR
- the target roomstopTracking(MOB)
boolean makeFall(Physical P, Room room, boolean reverseFall)
P
- the thing to fallroom
- the things locationreverseFall
- true to fall UP instead of downboolean doFallenOffCheck(MOB mob)
mob
- the mob to checkvoid makeSink(Physical P, Room room, boolean reverseSink)
P
- the thing to fallroom
- the things locationreverseSink
- true to sink 'up'CMMsg.CheckedMsgResponse isOkWaterSurfaceAffect(Room room, CMMsg msg)
room
- the watery room an event occurred inmsg
- the event happening in thevoid getRadiantRooms(Room room, java.util.List<Room> rooms, TrackingLibrary.TrackingFlags flags, Room radiateTo, int maxDepth, java.util.Set<Room> ignoreRooms)
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 radiationgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
java.util.List<Room> getRadiantRooms(Room room, TrackingLibrary.RFilters filters, int maxDepth)
room
- the starting roomfilters
- one or more filters that blocks various radiation pathsmaxDepth
- the maximum depth of the radiationgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
void getRadiantRooms(Room room, java.util.List<Room> rooms, TrackingLibrary.RFilters filters, Room radiateTo, int maxDepth, java.util.Set<Room> ignoreRooms)
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 radiationgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
boolean getRadiantRoomsToTarget(Room room, java.util.List<Room> rooms, TrackingLibrary.TrackingFlags flags, TrackingLibrary.RFilter radiateTo, int maxDepth)
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 radiationgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
java.util.List<Room> getRadiantRooms(Room room, TrackingLibrary.TrackingFlags flags, int maxDepth)
room
- the starting roomflags
- one or more filters that blocks various radiation pathsmaxDepth
- the maximum depth of the radiationgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
java.util.List<Area> getRadiantAreas(Area area, int maxDepth)
area
- the starting areamaxDepth
- the maximum depth of the radiationgetRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
java.util.Enumeration<Room> getRadiantRoomsEnum(Room room, TrackingLibrary.RFilters filters, Room radiateTo, int maxDepth, java.util.Set<Room> ignoreRooms)
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 radiationgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
,
getRadiantRoomTarget(Room, RFilters, RFilter)
Room getRadiantRoomTarget(Room room, TrackingLibrary.RFilters filters, TrackingLibrary.RFilter radiateTo)
room
- the starting roomfilters
- one or more filters that blocks various radiation pathsradiateTo
- filter that the returned room is NOT filtered out ofgetRadiantAreas(Area, int)
,
getRadiantRooms(Room, RFilters, int)
,
getRadiantRooms(Room, TrackingFlags, int)
,
getRadiantRooms(Room, List, RFilters, Room, int, Set)
,
getRadiantRooms(Room, List, TrackingFlags, Room, int, Set)
,
getRadiantRoomsEnum(Room, RFilters, Room, int, Set)
,
getRadiantRoomsToTarget(Room, List, TrackingFlags, RFilter, int)
PairVector<Room,int[]> buildGridList(Room room, java.lang.String ownerName, int maxDepth)
room
- the starting roomownerName
- "", or the owner of the rooms to returnmaxDepth
- the max depth to radiategetCalculatedAdjacentGridRoom(PairVector, Room, int)
boolean wanderCheckedAway(MOB M, boolean mindPCs, boolean andGoHome)
M
- the mob to leavemindPCs
- true to NOT leave if pcs are presentandGoHome
- true to be transported to start roomwanderAway(MOB, boolean, boolean)
,
wanderCheckedFromTo(MOB, Room, boolean)
,
wanderFromTo(MOB, Room, boolean)
,
wanderIn(MOB, Room)
,
markToWanderHomeLater(MOB, int)
,
forceRecall(MOB, boolean)
boolean wanderCheckedFromTo(MOB M, Room toHere, boolean mindPCs)
M
- the mob to movetoHere
- the target roommindPCs
- true to not leave if pcs are presentwanderAway(MOB, boolean, boolean)
,
wanderCheckedAway(MOB, boolean, boolean)
,
wanderFromTo(MOB, Room, boolean)
,
wanderIn(MOB, Room)
,
markToWanderHomeLater(MOB, int)
,
forceRecall(MOB, boolean)
void wanderAway(MOB M, boolean mindPCs, boolean andGoHome)
M
- the mob to movemindPCs
- true to not leave if pcs are presentandGoHome
- true to also aesthetically go back to start roomwanderCheckedAway(MOB, boolean, boolean)
,
wanderCheckedFromTo(MOB, Room, boolean)
,
wanderFromTo(MOB, Room, boolean)
,
wanderIn(MOB, Room)
,
markToWanderHomeLater(MOB, int)
,
forceRecall(MOB, boolean)
void wanderFromTo(MOB M, Room toHere, boolean mindPCs)
M
- the mob to movetoHere
- the destination roommindPCs
- true to not leave if pcs are presentwanderAway(MOB, boolean, boolean)
,
wanderCheckedAway(MOB, boolean, boolean)
,
wanderCheckedFromTo(MOB, Room, boolean)
,
wanderIn(MOB, Room)
,
markToWanderHomeLater(MOB, int)
,
forceRecall(MOB, boolean)
void wanderIn(MOB M, Room toHere)
M
- the mob to movetoHere
- the destination roomwanderAway(MOB, boolean, boolean)
,
wanderCheckedAway(MOB, boolean, boolean)
,
wanderCheckedFromTo(MOB, Room, boolean)
,
wanderFromTo(MOB, Room, boolean)
,
markToWanderHomeLater(MOB, int)
,
forceRecall(MOB, boolean)
void forceRecall(MOB mob, boolean includeFollowers)
mob
- the mob to moveincludeFollowers
- true to also recall followerswanderAway(MOB, boolean, boolean)
,
wanderCheckedAway(MOB, boolean, boolean)
,
wanderCheckedFromTo(MOB, Room, boolean)
,
wanderFromTo(MOB, Room, boolean)
,
wanderIn(MOB, Room)
,
markToWanderHomeLater(MOB, int)
void markToWanderHomeLater(MOB M, int ticks)
M
- the mob to moveticks
- the number of ticks to wait, or 0wanderAway(MOB, boolean, boolean)
,
wanderCheckedAway(MOB, boolean, boolean)
,
wanderCheckedFromTo(MOB, Room, boolean)
,
wanderFromTo(MOB, Room, boolean)
,
wanderIn(MOB, Room)
,
forceRecall(MOB, boolean)
boolean beMobile(MOB mob, boolean dooropen, boolean wander, boolean roomprefer, boolean roomobject, int[] status, java.util.Set<Room> rooms)
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 objectwalk(Item, int)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean, boolean)
boolean walk(MOB mob, int directionCode, boolean flee, boolean nolook)
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 roombeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(Item, int)
,
walk(MOB, int, boolean, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean, boolean)
boolean walk(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders)
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 involvedbeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(Item, int)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean, boolean)
boolean walk(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders, boolean always)
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 checksbeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(Item, int)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean, boolean)
void walkForced(MOB M, Room fromHere, Room toHere, boolean andFollowers, boolean forceLook, java.lang.String msgStr)
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 stringbeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(Item, int)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean, boolean)
boolean walk(Item I, int directionCode)
I
- the item to movedirectionCode
- the direction to walkbeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean)
,
run(MOB, int, boolean, boolean, boolean, boolean)
boolean run(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders)
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 involvedbeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(Item, int)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean, boolean)
boolean run(MOB mob, int directionCode, boolean flee, boolean nolook, boolean noriders, boolean always)
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 checksbeMobile(MOB, boolean, boolean, boolean, boolean, int[], Set)
,
walk(Item, int)
,
walk(MOB, int, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean)
,
walk(MOB, int, boolean, boolean, boolean, boolean)
,
walkForced(MOB, Room, Room, boolean, boolean, String)
,
run(MOB, int, boolean, boolean, boolean)
int radiatesFromDir(Room room, java.util.List<Room> rooms)
room
- the source roomrooms
- the list of roomsboolean areNearEachOther(MOB whichM, MOB nearM)
whichM
- the first mobnearM
- the second mobRoom getCalculatedAdjacentGridRoom(PairVector<Room,int[]> rooms, Room R, int dir)
rooms
- the built grid array of rooms and locationsR
- the room to start fromdir
- the direction to inquire aboutbuildGridList(Room, String, int)
int findExitDir(MOB mob, Room R, java.lang.String desc)
mob
- the mob who needs to moveR
- the room to find exits indesc
- the exit match stringint findRoomDir(MOB mob, Room R)
mob
- the mobR
- the target roomRoom getNearestValidIDRoom(Room R)
R
- the room that is prob not validTrackingLibrary.TrackingFlags newFlags()
Rideable findALadder(MOB mob, Room room)
mob
- the mob who wants a ladderroom
- the room that might have a ladder in itpostMountLadder(MOB, Rideable)
void postMountLadder(MOB mob, Rideable ladder)
mob
- the mob who wants to use a ladderladder
- the ladderfindALadder(MOB, Room)
MOB createNavigationMob(NavigableItem ship)
ship
- the navigable ship