com.planet_ink.coffee_mud.Libraries
Class CoffeeUtensils
java.lang.Object
com.planet_ink.coffee_mud.Libraries.StdLibrary
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
|
Method Summary |
boolean |
armorCheck(MOB mob,
int allowedArmorLevel)
|
void |
extinguish(MOB source,
Environmental target,
boolean mundane)
|
Trap |
fetchMyTrap(Environmental myThang)
|
java.util.Vector |
getDeadBodies(Environmental E)
|
java.lang.String |
getFormattedDate(Environmental E)
|
MOB |
getMobPossessingAnother(MOB mob)
|
int |
getWornCode(java.lang.String name)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of
this object. |
Item |
isRuinedLoot(DVector policies,
Item I)
|
Trap |
makeADeprecatedTrap(Environmental unlockThis)
|
double |
memoryUse(Environmental E,
int number)
|
java.lang.String |
niceCommaList(java.util.Vector V,
boolean andTOrF)
|
void |
outfit(MOB mob,
java.util.Vector items)
|
DVector |
parseLootPolicyFor(MOB mob)
|
boolean |
reachableItem(MOB mob,
Environmental E)
|
void |
recursiveDropMOB(MOB mob,
Room room,
Item thisContainer,
boolean bodyFlag)
|
void |
reloadCharClasses(CharClass oldC)
|
void |
roomAffectFully(CMMsg msg,
Room room,
int dirCode)
|
void |
setTrapped(Environmental myThang,
boolean isTrapped)
|
void |
setTrapped(Environmental myThang,
Trap theTrap,
boolean isTrapped)
|
void |
swapRaces(Race newR,
Race oldR)
|
java.lang.String |
wornList(long wornCode)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
CoffeeUtensils
public CoffeeUtensils()
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.Vector 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.Vector items)
- Specified by:
outfit in interface CMMiscUtils
makeADeprecatedTrap
public Trap makeADeprecatedTrap(Environmental unlockThis)
- Specified by:
makeADeprecatedTrap in interface CMMiscUtils
setTrapped
public void setTrapped(Environmental myThang,
boolean isTrapped)
- Specified by:
setTrapped in interface CMMiscUtils
setTrapped
public void setTrapped(Environmental myThang,
Trap theTrap,
boolean isTrapped)
- Specified by:
setTrapped in interface CMMiscUtils
fetchMyTrap
public Trap fetchMyTrap(Environmental 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,
Environmental 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
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,
int allowedArmorLevel)
- Specified by:
armorCheck in interface CMMiscUtils
wornList
public java.lang.String wornList(long wornCode)
- Specified by:
wornList in interface CMMiscUtils
getWornCode
public int getWornCode(java.lang.String name)
- Specified by:
getWornCode in interface CMMiscUtils
getDeadBodies
public java.util.Vector getDeadBodies(Environmental E)
- Specified by:
getDeadBodies in interface CMMiscUtils
parseLootPolicyFor
public DVector parseLootPolicyFor(MOB mob)
- Specified by:
parseLootPolicyFor 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