|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CMFlagLibrary
The Flag Library is full of shortcut methods for checking the state of objects in a high level way. This allows the underlying functionality of those states to change more easily in the future. Most of these check PhyStats disposition and senses flags, but there are also methods for checking room states, sorting through abilities by their flags, and similar methods. I guess it's really a state-checking-catch-all library.
Nested Class Summary | |
---|---|
static class |
CMFlagLibrary.ComingOrGoing
A disposition enum for various flagg methods. |
Method Summary | |
---|---|
boolean |
allowsMovement(Area A)
Returns whether this area allows mobs or players to enter or leave. |
boolean |
allowsMovement(Room R)
Returns whether this room allows mobs or players to enter or leave. |
boolean |
canAccess(MOB mob,
Area A)
Returns whether the given mob can 'access' the given area, due to it not being hidden and sharing a timezone. |
boolean |
canAccess(MOB mob,
Room R)
Returns whether the given mob can 'access' the given room, due to it not being hidden and sharing a timezone. |
boolean |
canActAtAll(Tickable affecting)
Returns whether the given affecting (usually a mob) is alive, awake, mobile, and officially in the game. |
boolean |
canAutoAttack(MOB M)
Returns whether the given mob is allowed to use their auto attack every tick, if that even applies to this system. |
boolean |
canBarelyBeSeenBy(Environmental seen,
MOB seer)
Returns whether the given seen mob or item or room or whatever can only BARELY be seen by the given seer, given moon lightning mostly. |
boolean |
canBeHeardMovingBy(Physical heard,
MOB hearer)
Returns whether the given hearer mob can hear the given mob or object moving around. |
boolean |
canBeHeardSpeakingBy(Physical heard,
MOB hearer)
Returns whether the given hearer mob can hear the given mob or object speaking. |
boolean |
canBeLocated(Physical P)
Returns whether the given physical object can be located by magical means. |
boolean |
canBeSeenBy(Environmental seen,
MOB seer)
Returns whether the given seen mob or item or room or whatever can be seen by the given seer, given conditions, lighting, hidden, etc. |
boolean |
canBreathe(MOB M)
Return whether the given mob is able to breathe at all due to a strictly personal defect. |
boolean |
canBreatheHere(MOB M,
Room R)
Return whether the given mob is able to breathe in the given room due to their race and the atmosphere of the room. |
boolean |
canBreatheThis(MOB M,
int atmoResource)
Return whether the given mob is able to breathe the given resource due to their race, usually. |
boolean |
canConcentrate(MOB M)
Returns whether the given mob has the ability to concentrate enough to cast spells. |
boolean |
canFreelyBehaveNormal(Tickable affecting)
Returns whether the given affecting (usually a mob) is alive, awake, mobile, and officially in the game, and not in combat, sufficiently healthy, and not following anyone. |
boolean |
canHear(MOB M)
Return whether the given mob is deaf or otherwise unable to hear due to a strictly personal defect. |
boolean |
canMove(MOB M)
Return whether the given mob is able to move at all. |
boolean |
canNotBeCamped(Physical P)
Returns whether the given mob or item is not allowed to be camped, meaning they won't respawn while someone is just hanging around waiting in the room for them to spawn. |
boolean |
canSee(MOB M)
Return whether the given mob is blind or otherwise unable to see due to a strictly personal defect. |
boolean |
canSeeBonusItems(MOB M)
Returns whether the given mob has the ability to see magic items as such. |
boolean |
canSeeEvil(MOB M)
Returns whether the given mob has the ability to see evil in people/things. |
boolean |
canSeeGood(MOB M)
Returns whether the given mob has the ability to see good in people/things. |
boolean |
canSeeHidden(MOB M)
Returns whether the given mob has the ability to see hidden. |
boolean |
canSeeHiddenItems(MOB M)
Returns whether the given mob has the ability to see hidden items, but not necessarily mobs. |
boolean |
canSeeInDark(MOB M)
Returns whether the given mob has the ability to see in the dark. |
boolean |
canSeeInfrared(MOB M)
Returns whether the given mob has the ability to see warm blooded mobs in the dark. |
boolean |
canSeeInvisible(MOB M)
Returns whether the given mob has the ability to see invisible. |
boolean |
canSeeMetal(MOB M)
Returns whether the given mob has the ability to see metal items as such. |
boolean |
canSeeSneakers(MOB M)
Returns whether the given mob has the ability to see sneaking mobs. |
boolean |
canSeeVictims(MOB M)
Returns whether the given mob has the ability to see their enemies in the dark. |
boolean |
canSenseEnteringLeaving(Physical sensed,
MOB sensor)
Returns whether the given sensor mob can sense the given mob or object coming and going. |
boolean |
canSenseMoving(Physical sensed,
MOB sensor)
Returns whether the given sensor can see or hear the given sensed mob or object moving around. |
boolean |
canSmell(MOB M)
Return whether the given mob is stuffed or otherwise unable to smell due to a strictly personal defect. |
boolean |
canSpeak(MOB M)
Return whether the given mob is mute or otherwise unable to speak due to a strictly personal defect. |
boolean |
canTaste(MOB M)
Return whether the given mob is able to eat or drink due to the lack of strictly personal defects. |
boolean |
canTrack(Physical P)
Returns whether the given thing is allowed to do mundane things, such as patrolling or tracking or being mobile. |
java.util.List<Ability> |
domainAbilities(MOB M,
int domain)
Returns the list of abilities that have are part of the given ability domain. |
java.util.List<Ability> |
domainAffects(Physical P,
int domain)
Returns the list of effects that have are part of the given ability domain. |
java.util.List<Ability> |
domainAnyAffects(Physical P,
int domain)
Returns the list of effects that have are part of the given ability domain. |
java.util.List<Ability> |
flaggedAbilities(MOB M,
long flag)
Returns the list of Abilities that have the given ability flag(s) set. |
java.util.List<Ability> |
flaggedAffects(Physical P,
long flag)
Returns the list of effects that have the given ability flag(s) set. |
java.util.List<Ability> |
flaggedAnyAffects(Physical P,
long flag)
Returns the list of effects that have the given ability flag(s) set. |
java.util.List<Behavior> |
flaggedBehaviors(PhysicalAgent P,
long flag)
Returns the list of behaviors that have the given behavior flag(s) set. |
java.lang.String |
getAbilityDomain(Ability A)
Returns the ability domain name for the given Ability. |
int |
getAbilityDomain(java.lang.String name)
Returns the ability domain bitmask for the given ability domain name. |
java.lang.String |
getAbilityType_(Ability A)
Returns the ability type/code name for the given Ability. |
int |
getAbilityType_(java.lang.String name)
Returns the ability type code for the given ability type name. |
java.lang.String |
getAbilityType(Ability A)
Returns the ability type/code name for the given Ability. |
int |
getAbilityType(java.lang.String name)
Returns the ability type code for the given ability type name. |
java.lang.String |
getAge(MOB M)
Returns the friendly descriptive age of the given mob, whether baby, child, player, whatever. |
java.lang.String |
getAlignmentName(Environmental E)
Returns the simple word that would describe the alignment of the given mob or item or whatever. |
int |
getDetectScore(MOB seer)
Deprecated, but returns the total hide detection score for the given mob. |
java.lang.String |
getDispositionBlurbs(Physical seen,
MOB seer)
Returns the disposition blurbs that apply to the given seen mob, item, room, whatever, as soon by the given seer mob. |
java.lang.String |
getDispositionDescList(Physical obj,
boolean useVerbs)
Returns a command-delimited list of dispassionate description of the disposition of the given physical mob, item, whatever. |
int |
getDispositionIndex(java.lang.String name)
Returns the enumerated disposition index associated with the given disposition name, such as ISSWIMMING, etc. |
java.lang.String |
getDispositionStateList(MOB mob)
Returns a comma delimited list of the senses masks on the given mob. |
int |
getFallingDirection(Physical P)
Returns which direction, if any, the given object is falling. |
int |
getHideScore(Physical seen)
Deprecated, but returns the total hide score for the given mob, item, whatever. |
java.lang.String |
getPresentDispositionVerb(Physical seen,
CMFlagLibrary.ComingOrGoing flag_msgType)
Returns the present-tense verb that applies to the disposition of the given seen thing, given the detail about how they verbbing. |
java.lang.String |
getSensesDescList(Physical obj,
boolean useVerbs)
Returns a command-delimited list of dispassionate description of the senses of the given physical mob, item, whatever. |
int |
getSensesIndex(java.lang.String name)
Returns the enumerated senses index associated with the given senses name, such as CANSEEDARK, etc. |
java.lang.String |
getSensesStateList(MOB mob)
Returns a comma delimited list of the senses masks on the given mob. |
boolean |
hasAControlledFollower(MOB invoker,
Ability A)
Returns whether the given invoker mob is controlling a mob, who is following the invoker, optionally using the given Ability. |
boolean |
isABonusItems(Physical P)
Returns whether the given mob, item, whatever is flagged as being magical. |
boolean |
isAControlledFollower(MOB invoker,
MOB mob,
Ability A)
Returns whether the given invoker mob is controlling the given mob, who is following the invoker, optionally using the given Ability. |
boolean |
isAggressiveTo(MOB M,
MOB toM)
Returns whether the first given mob is potentially or probably agressive to the second mob. |
boolean |
isAiryRoom(Room R)
Returns whether the given room, whatever is airy, such as an in the air, or an open space. |
boolean |
isAlcoholic(Physical thang)
Returns whether the given item is affected by or contains alcohol as a drinkable. |
boolean |
isAliveAwakeMobile(MOB mob,
boolean quiet)
Returns whether the given mob is alive, awake, and mobile. |
boolean |
isAliveAwakeMobileUnbound(MOB mob,
boolean quiet)
Returns whether the given mob is alive, awake, mobile and not bound up. |
boolean |
isAnimalIntelligence(MOB M)
Returns whether the given mob is of low animal intelligence. |
boolean |
isAPlant(Item I)
Returns whether the given item is of a plant-like type. |
boolean |
isAPlant(MOB M)
Returns whether the given mob is of a plant-like type. |
boolean |
isATrackingMonster(MOB M)
Returns whether the given mob is both a non-player npc, and is currently being driven (tracking) towards something. |
boolean |
isBaby(Environmental E)
Returns whether the given mob (item usually) is a baby waiting to grow up. |
boolean |
isBound(Physical P)
Returns whether the given item, mob, whatever is marked as bound. |
boolean |
isBoundOrHeld(Physical P)
Returns whether the given item, mob, whatever is marked as bound or is paralyzed. |
boolean |
isCataloged(Environmental E)
Returns whether the given item is marked as being an instance of a mob or item from the catalog. |
boolean |
isChild(Environmental E)
Returns whether the given mob, item (baby) whatever is a baby, or a mob child born from something, what its age still being tracked by property. |
boolean |
isClimbing(Physical P)
Returns whether the given item, mob, whatever is climbing. |
boolean |
isCloaked(Physical P)
Returns whether the given item, mob, room, whatever is cloaked. |
boolean |
isCrawlable(Physical P)
Returns whether the given room, area, exit, whatever is crawlable (not necc. |
boolean |
isDeadlyOrMaliciousEffect(PhysicalAgent P)
Returns whether the given room, item, whatever has a deadly effect, such as a trap, autodeath behavior, or a property with a malicious spell in it. |
boolean |
isDeepWaterySurfaceRoom(Room R)
Returns whether the given room, whatever is the surface of deep water, such as a water surface, etc. |
boolean |
isDroppable(Item I)
Returns whether the given item is marked as being droppable. |
boolean |
isEggLayer(Race race)
Returns whether the given race is of an egg-laying type |
boolean |
isEnchanted(Item I)
Returns whether the given item has some effect other than a disease, poison, or standard property. |
boolean |
isEnspelled(Physical F)
Returns whether the given item, mob, whatever is marked as being affected by an uninvokeable spell, chant, prayer, or whatever. |
boolean |
isEvil(Physical P)
Returns whether the given item, mob, room, whatever is evilly aligned. |
boolean |
isFalling(Physical P)
Returns whether the given item, mob, whatever is marked as falling. |
boolean |
isFish(MOB mob)
Returns whether the given mob is of a fishy race type. |
boolean |
isFloatingFreely(Physical P)
Returns whether the given item, mob, whatever is floating freely and uncontrolled, as when not under gravity. |
boolean |
isFlying(Physical P)
Returns whether the given item, mob, whatever is flying. |
boolean |
isGettable(Item I)
Returns whether the given item is marked as being gettable. |
boolean |
isGlowing(Physical P)
Returns whether the given item, mob, whatever is glowing. |
boolean |
isGolem(Physical P)
Returns whether the given item, mob, whatever is marked as a golem. |
boolean |
isGood(Physical P)
Returns whether the given item, mob, room, whatever is goodly aligned. |
boolean |
isHidden(Physical P)
Returns whether the given item, mob, room, whatever is hidden. |
boolean |
isInDark(Physical P)
Returns whether the given mob, item, whatever is currently flagged dark |
boolean |
isInFlight(Physical P)
Returns whether the given mob, item, whatever would fly or fall. |
boolean |
isInsect(MOB mob)
Returns whether the given mob is of an insect race type. |
boolean |
isInTheGame(Area E,
boolean reqInhabitation)
Returns whether the given Area is actually in the game, or is just temporary or cached. |
boolean |
isInTheGame(Environmental E,
boolean reqInhabitation)
Returns whether the given mob, item, room, area, whatever is actually in the game, and possibly in a room, or is just temporary or cached. |
boolean |
isInTheGame(Item E,
boolean reqInhabitation)
Returns whether the given Item is actually in the game, and in a room, or is just temporary or cached. |
boolean |
isInTheGame(MOB E,
boolean reqInhabitation)
Returns whether the given MOB is actually in the game, and in a room, or is just temporary or cached. |
boolean |
isInTheGame(Room E,
boolean reqInhabitation)
Returns whether the given Room is actually in the game, or is just temporary or cached. |
boolean |
isInvisible(Physical P)
Returns whether the given item, mob, room, whatever is invisible. |
boolean |
isInWilderness(Physical P)
Returns whether the given mob, item, room, whatever is in a outdoors non-city room. |
boolean |
isLightSource(Physical P)
Returns whether the given mob, item, whatever is currently flagged as a light source |
boolean |
isMarine(MOB mob)
Returns whether the given mob is of a marine race type. |
boolean |
isMetal(Environmental E)
Returns whether the given mob (item usually) is made of metal or mithril. |
boolean |
isMobile(PhysicalAgent P)
Returns whether the given mob, item, whatever has a behavior making it move around. |
boolean |
isNeutral(Physical P)
Returns whether the given item, mob, room, whatever is neutral, which is to say, neither good nor evil. |
boolean |
isOnFire(Physical seen)
Returns whether the given item, mob, whatever is on fire. |
boolean |
isOpenAccessibleContainer(Item I)
Returns whether the given item is a container which, when open, has accessible contents, and is also open. |
boolean |
isOutsider(MOB mob)
Returns whether the given mob is of an outsider race type. |
boolean |
isPossiblyAggressive(MOB M)
Returns whether the first given mob is potentially or probably agressive. |
boolean |
isReadable(Item I)
Returns whether the given item is marked as being readable. |
boolean |
isReallyEvil(FactionMember M)
Returns whether the given mobby factionmember is evilly aligned due to factions. |
boolean |
isReallyGood(FactionMember M)
Returns whether the given mobby factionmember is goodly aligned due to factions. |
boolean |
isReallyNeutral(FactionMember M)
Returns whether the given mobby factionmember is neutrally aligned due to factions. |
boolean |
isRejuvingItem(Item I)
Returns whether the given item has an item rejuv actively monitoring it. |
boolean |
isRemovable(Item I)
Returns whether the given item is marked as being removable. |
boolean |
isRunningLongCommand(MOB M)
Returns whether the given player is executing a command taking longer than 30 seconds |
boolean |
isSavable(Physical P)
Returns whether the given object is marked as being allowed to be saved to the database. |
boolean |
isSeeable(Physical P)
Returns whether the given item, mob, room, whatever is seeable at all. |
boolean |
isSeenTheSameWay(MOB seer,
Physical seen1,
Physical seen2)
Returns whether the two given physical objects appear the exact same way to the given seer mob. |
boolean |
isSitting(Physical P)
Returns whether the given item, mob, whatever is sitting. |
boolean |
isSleeping(Physical P)
Returns whether the given item, mob, whatever is sleeping. |
boolean |
isSneaking(Physical P)
Returns whether the given mob, item whatever is sneaking |
boolean |
isStanding(MOB mob)
Returns whether the given mob is standing (not sitting or sleeping) marked as swimming/floating. |
boolean |
isStillAffectedBy(Physical obj,
java.util.List<Ability> oneOf,
boolean anyTallF)
Checks the list of ability objects against the effects of the given mob, item or whatever. |
boolean |
isSwimming(Physical P)
Returns whether the given item, mob, whatever is marked as swimming/floating. |
boolean |
isSwimmingInWater(Physical P)
Returns whether the given item, mob, whatever is swimming/floating in a watery room. |
boolean |
isTracking(MOB M)
Returns whether the given player or npc mob is being driven (tracking) towards something |
boolean |
isTrapped(Physical P)
Returns whether the given object has a trap set on it. |
boolean |
isUnattackable(Physical P)
Returns whether the given item, mob, whatever is marked as unattackable. |
boolean |
isUndead(MOB mob)
Returns whether the given mob is of an undead race type. |
boolean |
isUnderWateryRoom(Room R)
Returns whether the given room, whatever is watery, such as an underwater, etc. |
boolean |
isVegetable(MOB M)
Returns whether the given mob is of a vegetable race type. |
boolean |
isVermin(MOB mob)
Returns whether the given mob is of a vermin race type. |
boolean |
isWaterWorthy(Physical P)
Returns whether the given mob, item, whatever would sink or float. |
boolean |
isWateryRoom(Room R)
Returns whether the given room, whatever is watery, such as a water surface, underwater, etc. |
boolean |
isWaterySurfaceRoom(Room R)
Returns whether the given room, whatever is watery, such as a water surface, etc. |
boolean |
isWithSeenContents(Physical P)
Returns whether the given non-mob (item) has contents which has be seen. |
java.util.List<Ability> |
matchedAffects(MOB invoker,
Physical P,
long flag,
int abilityCode,
int domain)
Returns the list of effects that are on the given physical, and were invoked by the given invoker. |
void |
setDroppable(Item I,
boolean truefalse)
Sets whether the given item is marked as being droppable. |
void |
setGettable(Item I,
boolean truefalse)
Sets whether the given item is marked as being gettable. |
void |
setReadable(Item I,
boolean truefalse)
Sets whether the given item is marked as being readable. |
void |
setRemovable(Item I,
boolean truefalse)
Sets whether the given item is marked as being removable. |
void |
setSavable(Physical P,
boolean truefalse)
Sets whether the given object is marked as being allowed to be saved to the database. |
java.lang.String |
validCheck(Physical P)
Checks the system validity of mobs, items, and rooms, and returns a report if there's a problem and it should be destroyed. |
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
---|
activate, getServiceClient, L, propertiesLoaded, shutdown |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
boolean canSee(MOB M)
M
- the mob to check
boolean canBeLocated(Physical P)
P
- the object to check
boolean canSeeHidden(MOB M)
M
- the mob to check
boolean canSeeHiddenItems(MOB M)
M
- the mob to check
boolean canSeeInvisible(MOB M)
M
- the mob to check
boolean canSeeEvil(MOB M)
M
- the mob to check
boolean canSeeGood(MOB M)
M
- the mob to check
boolean canSeeSneakers(MOB M)
M
- the mob to check
boolean canSeeBonusItems(MOB M)
M
- the mob to check
boolean canSeeInDark(MOB M)
M
- the mob to check
boolean canSeeVictims(MOB M)
M
- the mob to check
boolean canSeeInfrared(MOB M)
M
- the mob to check
boolean canHear(MOB M)
M
- the mob to check
boolean canMove(MOB M)
M
- the mob to check
boolean canNotBeCamped(Physical P)
P
- the item or mob to check
boolean allowsMovement(Room R)
R
- the room to check
boolean allowsMovement(Area A)
A
- the area to check
boolean canSmell(MOB M)
M
- the mob to check
boolean canTaste(MOB M)
M
- the mob to check
boolean canSpeak(MOB M)
M
- the mob to check
boolean canBreathe(MOB M)
M
- the mob to check
boolean canBreatheThis(MOB M, int atmoResource)
M
- the mob to checkatmoResource
- the Resource to check for breathability
RawMaterial
boolean canBreatheHere(MOB M, Room R)
M
- the mob to checkR
- the room the mob is trying to breathe in
RawMaterial
boolean canSeeMetal(MOB M)
M
- the mob to check
boolean canTrack(Physical P)
P
- the item or mob
boolean canAutoAttack(MOB M)
M
- the mob to check
boolean canConcentrate(MOB M)
M
- the mob to check
boolean canBeHeardMovingBy(Physical heard, MOB hearer)
heard
- the thing or mob moving aroundhearer
- the mob who wants to hear it
boolean canBeHeardSpeakingBy(Physical heard, MOB hearer)
heard
- the thing or mob speakinghearer
- the mob who wants to hear it
boolean canSenseMoving(Physical sensed, MOB sensor)
sensed
- the thing being sensedsensor
- the mob who wants to sense it
boolean canSenseEnteringLeaving(Physical sensed, MOB sensor)
sensed
- the thing or mob moving aroundsensor
- the mob who wants to sense it
boolean canAccess(MOB mob, Area A)
mob
- the mob who wants to access an areaA
- the area to access
boolean canAccess(MOB mob, Room R)
mob
- the mob who wants to access a roomR
- the room to access
java.lang.String validCheck(Physical P)
P
- the room, mob, or item to check
boolean canActAtAll(Tickable affecting)
affecting
- the thing to check
boolean canFreelyBehaveNormal(Tickable affecting)
affecting
- the thing to check
boolean canBeSeenBy(Environmental seen, MOB seer)
seen
- the thing to be seen.seer
- the seer who wants to see it
boolean canBarelyBeSeenBy(Environmental seen, MOB seer)
seen
- the thing to be seen.seer
- the seer who wants to see it
boolean isReadable(Item I)
I
- the item to check
setReadable(Item, boolean)
void setReadable(Item I, boolean truefalse)
I
- the item to settruefalse
- true if readable, false otherwiseisReadable(Item)
boolean isEnspelled(Physical F)
F
- the room, item, or mob to check
boolean isGettable(Item I)
I
- the item to check
setGettable(Item, boolean)
void setGettable(Item I, boolean truefalse)
I
- the item to settruefalse
- true if gettable, false otherwiseisGettable(Item)
boolean isDroppable(Item I)
I
- the item to check
setDroppable(Item, boolean)
void setDroppable(Item I, boolean truefalse)
I
- the item to settruefalse
- true if droppable, false otherwiseisDroppable(Item)
boolean isRemovable(Item I)
I
- the item to check
setRemovable(Item, boolean)
void setRemovable(Item I, boolean truefalse)
I
- the item to settruefalse
- true if removable, false otherwiseisRemovable(Item)
boolean isCataloged(Environmental E)
E
- the item or mob to check
boolean isSavable(Physical P)
P
- the item, mob, whatever to check
setSavable(Physical, boolean)
void setSavable(Physical P, boolean truefalse)
P
- the item, mob, whatever to settruefalse
- true if it is saveable, false otherwiseisSavable(Physical)
boolean isWithSeenContents(Physical P)
P
- the item to check
boolean isOpenAccessibleContainer(Item I)
I
- the item to check
boolean isSeeable(Physical P)
P
- the room, mob, or item to check
boolean isCloaked(Physical P)
P
- the room, mob, or item to check
boolean isHidden(Physical P)
P
- the room, mob, or item to check
boolean isInvisible(Physical P)
P
- the room, mob, or item to check
boolean isGood(Physical P)
P
- the room, mob, or item to check
boolean isReallyGood(FactionMember M)
M
- the factionmember to check
boolean isNeutral(Physical P)
P
- the room, mob, or item to check
boolean isReallyNeutral(FactionMember M)
M
- the factionmember to check
boolean isReallyEvil(FactionMember M)
M
- the factionmember to check
boolean isEvil(Physical P)
P
- the room, mob, or item to check
boolean isTrapped(Physical P)
P
- the object to check
boolean isATrackingMonster(MOB M)
M
- the mob to check
boolean isTracking(MOB M)
M
- the mob to check
boolean isSneaking(Physical P)
P
- the object to check
boolean isABonusItems(Physical P)
P
- the mob/item/whatever to check
boolean isInDark(Physical P)
P
- the mob/item/whatever to check
boolean isLightSource(Physical P)
P
- the mob/item/whatever to check
boolean isRejuvingItem(Item I)
I
- the item to check
boolean isGlowing(Physical P)
P
- the item, mob, whatever to check
boolean isGolem(Physical P)
P
- the item, mob, whatever to check
boolean isSleeping(Physical P)
P
- the item, mob, whatever to check
boolean isSitting(Physical P)
P
- the item, mob, whatever to check
boolean isFlying(Physical P)
P
- the item, mob, whatever to check
boolean isFloatingFreely(Physical P)
P
- the item, mob, whatever to check
boolean isClimbing(Physical P)
P
- the item, mob, whatever to check
boolean isCrawlable(Physical P)
P
- the room, area, exit, whatever to check
boolean isInWilderness(Physical P)
P
- the mob, item, room, whatever to check
boolean isSwimming(Physical P)
P
- the item, mob, whatever to check
boolean isSwimmingInWater(Physical P)
P
- the item, mob, whatever to check
boolean isAiryRoom(Room R)
R
- the room to check
boolean isWateryRoom(Room R)
R
- the room to check
boolean isWaterySurfaceRoom(Room R)
R
- the room to check
boolean isUnderWateryRoom(Room R)
R
- the room to check
boolean isDeepWaterySurfaceRoom(Room R)
R
- the room to check
boolean isFalling(Physical P)
P
- the item, mob, whatever to check
int getFallingDirection(Physical P)
P
- the item, mob, whatever to check
Directions
boolean isRunningLongCommand(MOB M)
M
- the mob to check
boolean isUndead(MOB mob)
mob
- the mob to check
boolean isEggLayer(Race race)
race
- the race to check
boolean isFish(MOB mob)
mob
- the mob to check
boolean isMarine(MOB mob)
mob
- the mob to check
boolean isOutsider(MOB mob)
mob
- the mob to check
boolean isInsect(MOB mob)
mob
- the mob to check
boolean isVermin(MOB mob)
mob
- the mob to check
boolean isVegetable(MOB M)
M
- the mob to check
boolean isAPlant(MOB M)
M
- the mob to check
boolean isAPlant(Item I)
I
- the item to check
boolean isUnattackable(Physical P)
P
- the item, mob, whatever to check
boolean isAliveAwakeMobileUnbound(MOB mob, boolean quiet)
mob
- the mob to checkquiet
- true to not tell the mob what's wrong
isAliveAwakeMobile(MOB, boolean)
boolean isAliveAwakeMobile(MOB mob, boolean quiet)
mob
- the mob to checkquiet
- true to not tell the mob what's wrong
isAliveAwakeMobileUnbound(MOB, boolean)
boolean isStanding(MOB mob)
mob
- the mob to check
boolean isBound(Physical P)
P
- the item, mob, whatever to check
isBoundOrHeld(Physical)
boolean isBoundOrHeld(Physical P)
P
- the item, mob, whatever to check
isBound(Physical)
boolean isOnFire(Physical seen)
seen
- the item, mob, whatever to check
boolean isWaterWorthy(Physical P)
P
- the item, mob, whatever to check
boolean isInFlight(Physical P)
P
- the item, mob, whatever to check
boolean isAnimalIntelligence(MOB M)
M
- the mob to check
boolean isMobile(PhysicalAgent P)
P
- the mob, item, whatever to check
boolean isAggressiveTo(MOB M, MOB toM)
M
- the mob who might be aggressivetoM
- the mob who might be in trouble
boolean isPossiblyAggressive(MOB M)
M
- the mob who might be aggressive
boolean isChild(Environmental E)
E
- the potential child
boolean isBaby(Environmental E)
E
- the item to check
boolean isMetal(Environmental E)
E
- the item (or mob) to check
boolean isDeadlyOrMaliciousEffect(PhysicalAgent P)
P
- the room, item, whatever to check
boolean isInTheGame(Area E, boolean reqInhabitation)
E
- the Area to checkreqInhabitation
- meaningless
boolean isInTheGame(Room E, boolean reqInhabitation)
E
- the Room to checkreqInhabitation
- meaningless
boolean isInTheGame(Item E, boolean reqInhabitation)
E
- the Item to checkreqInhabitation
- true if it must be a in room, false otherwise
boolean isInTheGame(MOB E, boolean reqInhabitation)
E
- the MOB to checkreqInhabitation
- true if it must be a in room, false otherwise
boolean isInTheGame(Environmental E, boolean reqInhabitation)
E
- the mob, item, whatever to checkreqInhabitation
- true if it must be a in room, false otherwise
boolean isEnchanted(Item I)
I
- the item to check
boolean isAControlledFollower(MOB invoker, MOB mob, Ability A)
invoker
- the mob who might be the leadermob
- the mob who is following the leaderA
- the ability that might be causing the control
boolean hasAControlledFollower(MOB invoker, Ability A)
invoker
- the mob who might be the leaderA
- the ability that might be causing the control
java.lang.String getAlignmentName(Environmental E)
E
- the mob or item or whatever
int getDetectScore(MOB seer)
seer
- the mob trying to see hidden
int getHideScore(Physical seen)
seen
- the mob, item trying to be hidden
java.util.List<Behavior> flaggedBehaviors(PhysicalAgent P, long flag)
P
- the mob, item, room, whateverflag
- the behavior flags
Behavior.FLAG_LEGALBEHAVIOR
java.util.List<Ability> flaggedAnyAffects(Physical P, long flag)
P
- the mob, item, room, whateverflag
- the ability flags
Ability.flags()
java.util.List<Ability> flaggedAffects(Physical P, long flag)
P
- the mob, item, room, whateverflag
- the ability flags
Ability.flags()
java.util.List<Ability> flaggedAbilities(MOB M, long flag)
M
- the mobflag
- the ability flags
Ability.flags()
java.util.List<Ability> domainAnyAffects(Physical P, int domain)
P
- the mob, item, room, whateverdomain
- the ability domain
Ability.DOMAIN_ABJURATION
java.util.List<Ability> domainAffects(Physical P, int domain)
P
- the mob, item, room, whateverdomain
- the ability domain
Ability.DOMAIN_ABJURATION
java.util.List<Ability> domainAbilities(MOB M, int domain)
M
- the mob to checkdomain
- the ability domain
Ability.DOMAIN_ABJURATION
java.util.List<Ability> matchedAffects(MOB invoker, Physical P, long flag, int abilityCode, int domain)
invoker
- the invoker to search for, or nullP
- the object to check for effects, REQUIREDflag
- -1, or an Ability FlagabilityCode
- -1, or an ability Codedomain
- -1, or an ability domain
Ability.DOMAIN_ABJURATION
,
Ability.flags()
,
Ability.ACODE_CHANT
java.lang.String getAbilityType(Ability A)
A
- the Ability
Ability.ACODE_CHANT
java.lang.String getAbilityType_(Ability A)
A
- the Ability
Ability.ACODE_CHANT
java.lang.String getAbilityDomain(Ability A)
A
- the Ability
Ability.DOMAIN_DESCS
int getAbilityType(java.lang.String name)
name
- the name of the given ability type
Ability.ACODE_CHANT
int getAbilityType_(java.lang.String name)
name
- the name of the given ability type
Ability.ACODE_CHANT
int getAbilityDomain(java.lang.String name)
name
- the name of the given ability domain
Ability.DOMAIN_DESCS
java.lang.String getAge(MOB M)
M
- the mob to check
java.lang.String getDispositionBlurbs(Physical seen, MOB seer)
seen
- the mob, item, room, whateverseer
- the one seeing
boolean isSeenTheSameWay(MOB seer, Physical seen1, Physical seen2)
seer
- the mob who is seeing stuffseen1
- the first object being seenseen2
- the first object being seen
java.lang.String getPresentDispositionVerb(Physical seen, CMFlagLibrary.ComingOrGoing flag_msgType)
seen
- the mob (or item) that is verbbingflag_msgType
- whether they are arriving, leaving, or sitting there verbbing
boolean isStillAffectedBy(Physical obj, java.util.List<Ability> oneOf, boolean anyTallF)
obj
- the mob, item, room, whateveroneOf
- the list of abilities that might be affectsanyTallF
- true to return true on ANY, false to return true only for ALL
java.lang.String getDispositionDescList(Physical obj, boolean useVerbs)
obj
- the disposed physical mob, item, whateveruseVerbs
- true to return an active phrase, flags for a state phrase
java.lang.String getSensesDescList(Physical obj, boolean useVerbs)
obj
- the sensing physical mob, item, whateveruseVerbs
- true to return an active phrase, flags for a state phrase
int getDispositionIndex(java.lang.String name)
name
- the disposition name
int getSensesIndex(java.lang.String name)
name
- the senses name
java.lang.String getSensesStateList(MOB mob)
mob
- the mob to check
java.lang.String getDispositionStateList(MOB mob)
mob
- the mob to check
boolean isAlcoholic(Physical thang)
thang
- the mob or item to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |