com.planet_ink.coffee_mud.Libraries
Class CoffeeUtensils

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

public class CoffeeUtensils
extends StdLibrary
implements CMMiscUtils


Field Summary
 
Fields inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMMiscUtils
LOOTFLAG_LOSS, LOOTFLAG_RUIN, LOOTFLAG_UNWORN, LOOTFLAG_WORN
 
Constructor Summary
CoffeeUtensils()
           
 
Method Summary
 boolean armorCheck(MOB mob, int allowedArmorLevel)
           
 boolean armorCheck(MOB mob, Item I, int allowedArmorLevel)
           
 java.lang.String builtPrompt(MOB mob)
           
 void confirmWearability(MOB mob)
           
 void extinguish(MOB source, Physical target, boolean mundane)
           
 Trap fetchMyTrap(Physical myThang)
           
 java.util.List<DeadBody> getDeadBodies(Environmental E)
           
 java.lang.String getFormattedDate(Environmental E)
           
 MOB getMobPossessingAnother(MOB mob)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 Item isRuinedLoot(DVector policies, Item I)
           
 Trap makeADeprecatedTrap(Physical unlockThis)
           
 double memoryUse(Environmental E, int number)
           
 java.lang.String niceCommaList(java.util.List<?> V, boolean andTOrF)
           
 void outfit(MOB mob, java.util.List<Item> items)
           
 DVector parseLootPolicyFor(MOB mob)
           
 int processVariableEquipment(MOB mob)
           
 boolean reachableItem(MOB mob, Environmental E)
           
 void recursiveDropMOB(MOB mob, Room room, Item thisContainer, boolean bodyFlag)
           
 void reloadCharClasses(CharClass oldC)
           
 boolean resurrect(MOB tellMob, Room corpseRoom, DeadBody body, int XPLevel)
           
 void roomAffectFully(CMMsg msg, Room room, int dirCode)
           
 void setTrapped(Physical myThang, boolean isTrapped)
           
 void setTrapped(Physical myThang, Trap theTrap, boolean isTrapped)
           
 void swapRaces(Race newR, Race oldR)
           
 
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
 

Constructor Detail

CoffeeUtensils

public CoffeeUtensils()
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

niceCommaList

public java.lang.String niceCommaList(java.util.List<?> V,
                                      boolean andTOrF)
Specified by:
niceCommaList in interface CMMiscUtils

getFormattedDate

public java.lang.String getFormattedDate(Environmental E)
Specified by:
getFormattedDate in interface CMMiscUtils

outfit

public void outfit(MOB mob,
                   java.util.List<Item> items)
Specified by:
outfit in interface CMMiscUtils

makeADeprecatedTrap

public Trap makeADeprecatedTrap(Physical unlockThis)
Specified by:
makeADeprecatedTrap in interface CMMiscUtils

setTrapped

public void setTrapped(Physical myThang,
                       boolean isTrapped)
Specified by:
setTrapped in interface CMMiscUtils

setTrapped

public void setTrapped(Physical myThang,
                       Trap theTrap,
                       boolean isTrapped)
Specified by:
setTrapped in interface CMMiscUtils

fetchMyTrap

public Trap fetchMyTrap(Physical myThang)
Specified by:
fetchMyTrap in interface CMMiscUtils

reachableItem

public boolean reachableItem(MOB mob,
                             Environmental E)
Specified by:
reachableItem in interface CMMiscUtils

memoryUse

public double memoryUse(Environmental E,
                        int number)
Specified by:
memoryUse in interface CMMiscUtils

extinguish

public void extinguish(MOB source,
                       Physical target,
                       boolean mundane)
Specified by:
extinguish in interface CMMiscUtils

roomAffectFully

public void roomAffectFully(CMMsg msg,
                            Room room,
                            int dirCode)
Specified by:
roomAffectFully in interface CMMiscUtils

processVariableEquipment

public int processVariableEquipment(MOB mob)
Specified by:
processVariableEquipment in interface CMMiscUtils

recursiveDropMOB

public void recursiveDropMOB(MOB mob,
                             Room room,
                             Item thisContainer,
                             boolean bodyFlag)
Specified by:
recursiveDropMOB in interface CMMiscUtils

getMobPossessingAnother

public MOB getMobPossessingAnother(MOB mob)
Specified by:
getMobPossessingAnother in interface CMMiscUtils

armorCheck

public boolean armorCheck(MOB mob,
                          Item I,
                          int allowedArmorLevel)
Specified by:
armorCheck in interface CMMiscUtils

armorCheck

public boolean armorCheck(MOB mob,
                          int allowedArmorLevel)
Specified by:
armorCheck in interface CMMiscUtils

getDeadBodies

public java.util.List<DeadBody> getDeadBodies(Environmental E)
Specified by:
getDeadBodies in interface CMMiscUtils

parseLootPolicyFor

public DVector parseLootPolicyFor(MOB mob)
Specified by:
parseLootPolicyFor in interface CMMiscUtils

confirmWearability

public void confirmWearability(MOB mob)
Specified by:
confirmWearability in interface CMMiscUtils

isRuinedLoot

public Item isRuinedLoot(DVector policies,
                         Item I)
Specified by:
isRuinedLoot in interface CMMiscUtils

reloadCharClasses

public void reloadCharClasses(CharClass oldC)
Specified by:
reloadCharClasses in interface CMMiscUtils

swapRaces

public void swapRaces(Race newR,
                      Race oldR)
Specified by:
swapRaces in interface CMMiscUtils

resurrect

public boolean resurrect(MOB tellMob,
                         Room corpseRoom,
                         DeadBody body,
                         int XPLevel)
Specified by:
resurrect in interface CMMiscUtils

builtPrompt

public java.lang.String builtPrompt(MOB mob)
Specified by:
builtPrompt in interface CMMiscUtils