com.planet_ink.coffee_mud.Libraries
Class Sense

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.Sense
All Implemented Interfaces:
CMObject, CMFlagLibrary, CMLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class Sense
extends StdLibrary
implements CMFlagLibrary


Field Summary
static int flag_arrives
           
static int flag_is
           
static int flag_leaves
           
 
Constructor Summary
Sense()
           
 
Method Summary
 boolean aliveAwakeMobile(MOB mob, boolean quiet)
           
 boolean aliveAwakeMobileUnbound(MOB mob, boolean quiet)
           
 boolean allowsMovement(Area A)
           
 boolean allowsMovement(Room R)
           
 int burnStatus(Environmental E)
           
 boolean canAccess(MOB mob, Area A)
           
 boolean canAccess(MOB mob, Room R)
           
 boolean canActAtAll(Tickable affecting)
           
 boolean canBarelyBeSeenBy(Environmental seen, MOB seer)
           
 boolean canBeHeardMovingBy(Physical heard, MOB hearer)
           
 boolean canBeHeardSpeakingBy(Physical heard, MOB hearer)
           
 boolean canBeLocated(Physical P)
           
 boolean canBeSeenBy(Environmental seen, MOB seer)
           
 boolean canBreathe(MOB M)
           
 boolean canFreelyBehaveNormal(Tickable affecting)
           
 boolean canHear(MOB M)
           
 boolean canMove(MOB M)
           
 boolean canSee(MOB M)
           
 boolean canSeeBonusItems(MOB M)
           
 boolean canSeeEvil(MOB M)
           
 boolean canSeeGood(MOB M)
           
 boolean canSeeHidden(MOB M)
           
 boolean canSeeInDark(MOB M)
           
 boolean canSeeInfrared(MOB M)
           
 boolean canSeeInvisible(MOB M)
           
 boolean canSeeMetal(MOB M)
           
 boolean canSeeSneakers(MOB M)
           
 boolean canSeeVictims(MOB M)
           
 boolean canSenseEnteringLeaving(Physical sensed, MOB sensor)
           
 boolean canSenseMoving(Physical sensed, MOB sensor)
           
 boolean canSmell(MOB M)
           
 boolean canSpeak(MOB M)
           
 boolean canTaste(MOB M)
           
 java.lang.StringBuffer colorCodes(Physical seen, MOB seer)
           
 java.lang.String describeDisposition(MOB mob)
           
 java.lang.String describeSenses(MOB mob)
           
 java.lang.String dispositionList(int disposition, boolean useVerbs)
           
 java.lang.String dispositionString(Physical seen, int flag_msgType)
           
 java.util.List<Ability> domainAbilities(MOB M, int domain)
           
 java.util.List<Ability> domainAffects(Physical P, int domain)
           
 java.util.List<Ability> domainAnyAffects(Physical P, int domain)
           
 boolean enchanted(Item I)
           
 java.util.List<Ability> flaggedAbilities(MOB M, long flag)
           
 java.util.List<Ability> flaggedAffects(Physical P, long flag)
           
 java.util.List<Ability> flaggedAnyAffects(Physical P, long flag)
           
 java.util.List<Behavior> flaggedBehaviors(PhysicalAgent P, long flag)
           
 java.lang.String getAbilityDomain(Ability A)
           
 int getAbilityDomain(java.lang.String name)
           
 java.lang.String getAbilityType(Ability A)
           
 int getAbilityType(java.lang.String name)
           
 java.lang.String getAlignmentName(Environmental E)
           
 int getDetectScore(MOB seer)
           
 int getDispositionCode(java.lang.String name)
           
 int getHideScore(Physical seen)
           
 int getSensesCode(java.lang.String name)
           
 boolean hasAControlledFollower(MOB invoker, Ability A)
           
 boolean hasSeenContents(Physical P)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 boolean isABonusItems(Physical P)
           
 boolean isAControlledFollower(MOB invoker, MOB mob, Ability A)
           
 boolean isAggressiveTo(MOB M, MOB toM)
           
 boolean isAgingThing(Physical P)
           
 boolean isAnimalIntelligence(MOB M)
           
 boolean isATrackingMonster(MOB M)
           
 boolean isBaby(Environmental E)
           
 boolean isBound(Physical P)
           
 boolean isBoundOrHeld(Physical P)
           
 boolean isBusy(Physical P)
           
 boolean isCataloged(Environmental E)
           
 boolean isChild(Environmental E)
           
 boolean isClimbing(Physical P)
           
 boolean isCloaked(Physical P)
           
 boolean isDroppable(Item I)
           
 boolean isEvil(Physical P)
           
 boolean isFalling(Physical P)
           
 boolean isFlying(Physical P)
           
 boolean isGettable(Item I)
           
 boolean isGlowing(Physical P)
           
 boolean isGolem(Physical P)
           
 boolean isGood(Physical P)
           
 boolean isHidden(Physical P)
           
 boolean isInDark(Physical P)
           
 boolean isInFlight(Physical P)
           
 boolean isInTheGame(Environmental E, boolean reqInhabitation)
           
 boolean isInvisible(Physical P)
           
 boolean isLightSource(Physical P)
           
 boolean isMetal(Environmental E)
           
 boolean isMobile(PhysicalAgent P)
           
 boolean isNeutral(Physical P)
           
 boolean isOnFire(Physical seen)
           
 boolean isPossiblyAggressive(MOB M)
           
 boolean isReadable(Item I)
           
 boolean isRemovable(Item I)
           
 boolean isSavable(Physical P)
           
 boolean isSeen(Physical P)
           
 boolean isSitting(Physical P)
           
 boolean isSleeping(Physical P)
           
 boolean isSneaking(Physical P)
           
 boolean isStanding(MOB mob)
           
 boolean isSwimming(Physical P)
           
 boolean isSwimmingInWater(Physical P)
           
 boolean isVegetable(MOB M)
           
 boolean isWaterWorthy(Physical P)
           
 boolean seenTheSameWay(MOB seer, Physical seen1, Physical seen2)
           
 java.lang.String sensesList(int disposition, boolean useVerbs)
           
 void setDroppable(Item I, boolean truefalse)
           
 void setGettable(Item I, boolean truefalse)
           
 void setReadable(Item I, boolean truefalse)
           
 void setRemovable(Item I, boolean truefalse)
           
 void setSavable(Physical P, boolean truefalse)
           
 boolean stillAffectedBy(Physical obj, java.util.List<Ability> oneOf, boolean anyTallF)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, propertiesLoaded, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary
activate, getSupportThread, propertiesLoaded, shutdown
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

flag_arrives

public static final int flag_arrives
See Also:
Constant Field Values

flag_leaves

public static final int flag_leaves
See Also:
Constant Field Values

flag_is

public static final int flag_is
See Also:
Constant Field Values
Constructor Detail

Sense

public Sense()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdLibrary
Returns:
the name of this class

canSee

public boolean canSee(MOB M)
Specified by:
canSee in interface CMFlagLibrary

canBeLocated

public boolean canBeLocated(Physical P)
Specified by:
canBeLocated in interface CMFlagLibrary

canSeeHidden

public boolean canSeeHidden(MOB M)
Specified by:
canSeeHidden in interface CMFlagLibrary

canSeeInvisible

public boolean canSeeInvisible(MOB M)
Specified by:
canSeeInvisible in interface CMFlagLibrary

canSeeEvil

public boolean canSeeEvil(MOB M)
Specified by:
canSeeEvil in interface CMFlagLibrary

canSeeGood

public boolean canSeeGood(MOB M)
Specified by:
canSeeGood in interface CMFlagLibrary

canSeeSneakers

public boolean canSeeSneakers(MOB M)
Specified by:
canSeeSneakers in interface CMFlagLibrary

canSeeBonusItems

public boolean canSeeBonusItems(MOB M)
Specified by:
canSeeBonusItems in interface CMFlagLibrary

canSeeInDark

public boolean canSeeInDark(MOB M)
Specified by:
canSeeInDark in interface CMFlagLibrary

canSeeVictims

public boolean canSeeVictims(MOB M)
Specified by:
canSeeVictims in interface CMFlagLibrary

canSeeInfrared

public boolean canSeeInfrared(MOB M)
Specified by:
canSeeInfrared in interface CMFlagLibrary

canHear

public boolean canHear(MOB M)
Specified by:
canHear in interface CMFlagLibrary

canMove

public boolean canMove(MOB M)
Specified by:
canMove in interface CMFlagLibrary

allowsMovement

public boolean allowsMovement(Room R)
Specified by:
allowsMovement in interface CMFlagLibrary

allowsMovement

public boolean allowsMovement(Area A)
Specified by:
allowsMovement in interface CMFlagLibrary

canSmell

public boolean canSmell(MOB M)
Specified by:
canSmell in interface CMFlagLibrary

canTaste

public boolean canTaste(MOB M)
Specified by:
canTaste in interface CMFlagLibrary

canSpeak

public boolean canSpeak(MOB M)
Specified by:
canSpeak in interface CMFlagLibrary

canBreathe

public boolean canBreathe(MOB M)
Specified by:
canBreathe in interface CMFlagLibrary

canSeeMetal

public boolean canSeeMetal(MOB M)
Specified by:
canSeeMetal in interface CMFlagLibrary

isReadable

public boolean isReadable(Item I)
Specified by:
isReadable in interface CMFlagLibrary

isGettable

public boolean isGettable(Item I)
Specified by:
isGettable in interface CMFlagLibrary

isDroppable

public boolean isDroppable(Item I)
Specified by:
isDroppable in interface CMFlagLibrary

isRemovable

public boolean isRemovable(Item I)
Specified by:
isRemovable in interface CMFlagLibrary

isCataloged

public boolean isCataloged(Environmental E)
Specified by:
isCataloged in interface CMFlagLibrary

hasSeenContents

public boolean hasSeenContents(Physical P)
Specified by:
hasSeenContents in interface CMFlagLibrary

isSavable

public boolean isSavable(Physical P)
Specified by:
isSavable in interface CMFlagLibrary

setSavable

public void setSavable(Physical P,
                       boolean truefalse)
Specified by:
setSavable in interface CMFlagLibrary

setReadable

public void setReadable(Item I,
                        boolean truefalse)
Specified by:
setReadable in interface CMFlagLibrary

setGettable

public void setGettable(Item I,
                        boolean truefalse)
Specified by:
setGettable in interface CMFlagLibrary

setDroppable

public void setDroppable(Item I,
                         boolean truefalse)
Specified by:
setDroppable in interface CMFlagLibrary

setRemovable

public void setRemovable(Item I,
                         boolean truefalse)
Specified by:
setRemovable in interface CMFlagLibrary

isSeen

public boolean isSeen(Physical P)
Specified by:
isSeen in interface CMFlagLibrary

isCloaked

public boolean isCloaked(Physical P)
Specified by:
isCloaked in interface CMFlagLibrary

isHidden

public boolean isHidden(Physical P)
Specified by:
isHidden in interface CMFlagLibrary

isInvisible

public boolean isInvisible(Physical P)
Specified by:
isInvisible in interface CMFlagLibrary

isEvil

public boolean isEvil(Physical P)
Specified by:
isEvil in interface CMFlagLibrary

isATrackingMonster

public boolean isATrackingMonster(MOB M)
Specified by:
isATrackingMonster in interface CMFlagLibrary

isGood

public boolean isGood(Physical P)
Specified by:
isGood in interface CMFlagLibrary

isPossiblyAggressive

public boolean isPossiblyAggressive(MOB M)
Specified by:
isPossiblyAggressive in interface CMFlagLibrary

isAggressiveTo

public boolean isAggressiveTo(MOB M,
                              MOB toM)
Specified by:
isAggressiveTo in interface CMFlagLibrary

getAlignmentName

public java.lang.String getAlignmentName(Environmental E)
Specified by:
getAlignmentName in interface CMFlagLibrary

isNeutral

public boolean isNeutral(Physical P)
Specified by:
isNeutral in interface CMFlagLibrary

isSneaking

public boolean isSneaking(Physical P)
Specified by:
isSneaking in interface CMFlagLibrary

isABonusItems

public boolean isABonusItems(Physical P)
Specified by:
isABonusItems in interface CMFlagLibrary

isInDark

public boolean isInDark(Physical P)
Specified by:
isInDark in interface CMFlagLibrary

isLightSource

public boolean isLightSource(Physical P)
Specified by:
isLightSource in interface CMFlagLibrary

isGlowing

public boolean isGlowing(Physical P)
Specified by:
isGlowing in interface CMFlagLibrary

isGolem

public boolean isGolem(Physical P)
Specified by:
isGolem in interface CMFlagLibrary

isSleeping

public boolean isSleeping(Physical P)
Specified by:
isSleeping in interface CMFlagLibrary

isSitting

public boolean isSitting(Physical P)
Specified by:
isSitting in interface CMFlagLibrary

isFlying

public boolean isFlying(Physical P)
Specified by:
isFlying in interface CMFlagLibrary

isClimbing

public boolean isClimbing(Physical P)
Specified by:
isClimbing in interface CMFlagLibrary

isSwimming

public boolean isSwimming(Physical P)
Specified by:
isSwimming in interface CMFlagLibrary

isFalling

public boolean isFalling(Physical P)
Specified by:
isFalling in interface CMFlagLibrary

isBusy

public boolean isBusy(Physical P)
Specified by:
isBusy in interface CMFlagLibrary

isSwimmingInWater

public boolean isSwimmingInWater(Physical P)
Specified by:
isSwimmingInWater in interface CMFlagLibrary

canBeHeardMovingBy

public boolean canBeHeardMovingBy(Physical heard,
                                  MOB hearer)
Specified by:
canBeHeardMovingBy in interface CMFlagLibrary

canBeHeardSpeakingBy

public boolean canBeHeardSpeakingBy(Physical heard,
                                    MOB hearer)
Specified by:
canBeHeardSpeakingBy in interface CMFlagLibrary

canSenseMoving

public boolean canSenseMoving(Physical sensed,
                              MOB sensor)
Specified by:
canSenseMoving in interface CMFlagLibrary

canSenseEnteringLeaving

public boolean canSenseEnteringLeaving(Physical sensed,
                                       MOB sensor)
Specified by:
canSenseEnteringLeaving in interface CMFlagLibrary

aliveAwakeMobileUnbound

public boolean aliveAwakeMobileUnbound(MOB mob,
                                       boolean quiet)
Specified by:
aliveAwakeMobileUnbound in interface CMFlagLibrary

aliveAwakeMobile

public boolean aliveAwakeMobile(MOB mob,
                                boolean quiet)
Specified by:
aliveAwakeMobile in interface CMFlagLibrary

isStanding

public boolean isStanding(MOB mob)
Specified by:
isStanding in interface CMFlagLibrary

isBound

public boolean isBound(Physical P)
Specified by:
isBound in interface CMFlagLibrary

isBoundOrHeld

public boolean isBoundOrHeld(Physical P)
Specified by:
isBoundOrHeld in interface CMFlagLibrary

isOnFire

public boolean isOnFire(Physical seen)
Specified by:
isOnFire in interface CMFlagLibrary

getHideScore

public int getHideScore(Physical seen)
Specified by:
getHideScore in interface CMFlagLibrary

getDetectScore

public int getDetectScore(MOB seer)
Specified by:
getDetectScore in interface CMFlagLibrary

canBeSeenBy

public boolean canBeSeenBy(Environmental seen,
                           MOB seer)
Specified by:
canBeSeenBy in interface CMFlagLibrary

canBarelyBeSeenBy

public boolean canBarelyBeSeenBy(Environmental seen,
                                 MOB seer)
Specified by:
canBarelyBeSeenBy in interface CMFlagLibrary

canActAtAll

public boolean canActAtAll(Tickable affecting)
Specified by:
canActAtAll in interface CMFlagLibrary

canFreelyBehaveNormal

public boolean canFreelyBehaveNormal(Tickable affecting)
Specified by:
canFreelyBehaveNormal in interface CMFlagLibrary

colorCodes

public java.lang.StringBuffer colorCodes(Physical seen,
                                         MOB seer)
Specified by:
colorCodes in interface CMFlagLibrary

seenTheSameWay

public boolean seenTheSameWay(MOB seer,
                              Physical seen1,
                              Physical seen2)
Specified by:
seenTheSameWay in interface CMFlagLibrary

dispositionString

public java.lang.String dispositionString(Physical seen,
                                          int flag_msgType)
Specified by:
dispositionString in interface CMFlagLibrary

isWaterWorthy

public boolean isWaterWorthy(Physical P)
Specified by:
isWaterWorthy in interface CMFlagLibrary

isInFlight

public boolean isInFlight(Physical P)
Specified by:
isInFlight in interface CMFlagLibrary

isAnimalIntelligence

public boolean isAnimalIntelligence(MOB M)
Specified by:
isAnimalIntelligence in interface CMFlagLibrary

isVegetable

public boolean isVegetable(MOB M)
Specified by:
isVegetable in interface CMFlagLibrary

isMobile

public boolean isMobile(PhysicalAgent P)
Specified by:
isMobile in interface CMFlagLibrary

flaggedBehaviors

public java.util.List<Behavior> flaggedBehaviors(PhysicalAgent P,
                                                 long flag)
Specified by:
flaggedBehaviors in interface CMFlagLibrary

domainAnyAffects

public java.util.List<Ability> domainAnyAffects(Physical P,
                                                int domain)
Specified by:
domainAnyAffects in interface CMFlagLibrary

domainAffects

public java.util.List<Ability> domainAffects(Physical P,
                                             int domain)
Specified by:
domainAffects in interface CMFlagLibrary

domainAbilities

public java.util.List<Ability> domainAbilities(MOB M,
                                               int domain)
Specified by:
domainAbilities in interface CMFlagLibrary

flaggedAnyAffects

public java.util.List<Ability> flaggedAnyAffects(Physical P,
                                                 long flag)
Specified by:
flaggedAnyAffects in interface CMFlagLibrary

flaggedAffects

public java.util.List<Ability> flaggedAffects(Physical P,
                                              long flag)
Specified by:
flaggedAffects in interface CMFlagLibrary

flaggedAbilities

public java.util.List<Ability> flaggedAbilities(MOB M,
                                                long flag)
Specified by:
flaggedAbilities in interface CMFlagLibrary

canAccess

public boolean canAccess(MOB mob,
                         Area A)
Specified by:
canAccess in interface CMFlagLibrary

canAccess

public boolean canAccess(MOB mob,
                         Room R)
Specified by:
canAccess in interface CMFlagLibrary

isMetal

public boolean isMetal(Environmental E)
Specified by:
isMetal in interface CMFlagLibrary

burnStatus

public int burnStatus(Environmental E)
Specified by:
burnStatus in interface CMFlagLibrary

isInTheGame

public boolean isInTheGame(Environmental E,
                           boolean reqInhabitation)
Specified by:
isInTheGame in interface CMFlagLibrary

enchanted

public boolean enchanted(Item I)
Specified by:
enchanted in interface CMFlagLibrary

isAgingThing

public boolean isAgingThing(Physical P)

isChild

public boolean isChild(Environmental E)
Specified by:
isChild in interface CMFlagLibrary

isBaby

public boolean isBaby(Environmental E)
Specified by:
isBaby in interface CMFlagLibrary

stillAffectedBy

public boolean stillAffectedBy(Physical obj,
                               java.util.List<Ability> oneOf,
                               boolean anyTallF)
Specified by:
stillAffectedBy in interface CMFlagLibrary

dispositionList

public java.lang.String dispositionList(int disposition,
                                        boolean useVerbs)
Specified by:
dispositionList in interface CMFlagLibrary

sensesList

public java.lang.String sensesList(int disposition,
                                   boolean useVerbs)
Specified by:
sensesList in interface CMFlagLibrary

getDispositionCode

public int getDispositionCode(java.lang.String name)
Specified by:
getDispositionCode in interface CMFlagLibrary

getSensesCode

public int getSensesCode(java.lang.String name)
Specified by:
getSensesCode in interface CMFlagLibrary

getAbilityType

public java.lang.String getAbilityType(Ability A)
Specified by:
getAbilityType in interface CMFlagLibrary

getAbilityDomain

public java.lang.String getAbilityDomain(Ability A)
Specified by:
getAbilityDomain in interface CMFlagLibrary

getAbilityType

public int getAbilityType(java.lang.String name)
Specified by:
getAbilityType in interface CMFlagLibrary

getAbilityDomain

public int getAbilityDomain(java.lang.String name)
Specified by:
getAbilityDomain in interface CMFlagLibrary

isAControlledFollower

public boolean isAControlledFollower(MOB invoker,
                                     MOB mob,
                                     Ability A)
Specified by:
isAControlledFollower in interface CMFlagLibrary

hasAControlledFollower

public boolean hasAControlledFollower(MOB invoker,
                                      Ability A)
Specified by:
hasAControlledFollower in interface CMFlagLibrary

describeDisposition

public java.lang.String describeDisposition(MOB mob)
Specified by:
describeDisposition in interface CMFlagLibrary

describeSenses

public java.lang.String describeSenses(MOB mob)
Specified by:
describeSenses in interface CMFlagLibrary