com.planet_ink.coffee_mud.Libraries
Class RawCMaterial
java.lang.Object
com.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.RawCMaterial
- All Implemented Interfaces:
- CMObject, CMLibrary, MaterialLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>
public class RawCMaterial
- extends StdLibrary
- implements MaterialLibrary
|
Method Summary |
void |
adjustResourceName(Item I)
|
int |
destroyResources(MOB E,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never)
|
int |
destroyResources(Room E,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never)
|
int |
destroyResources(java.util.Vector V,
Environmental addTo,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never)
|
Item |
fetchFoundOtherEncoded(MOB E,
java.lang.String otherRequired)
|
Item |
fetchFoundOtherEncoded(Room E,
java.lang.String otherRequired)
|
protected Item |
fetchFoundOtherEncoded(java.util.Vector V,
java.lang.String otherRequired)
|
Item |
findFirstResource(MOB E,
int resource)
|
Item |
findFirstResource(MOB E,
java.lang.String other)
|
Item |
findFirstResource(Room E,
int resource)
|
Item |
findFirstResource(Room E,
java.lang.String other)
|
protected Item |
findFirstResource(java.util.Vector V,
int resource)
|
Item |
findFirstResource(java.util.Vector V,
java.lang.String other)
|
Item |
findMostOfMaterial(MOB E,
int material)
|
Item |
findMostOfMaterial(MOB E,
java.lang.String other)
|
Item |
findMostOfMaterial(Room E,
int material)
|
Item |
findMostOfMaterial(Room E,
java.lang.String other)
|
protected Item |
findMostOfMaterial(java.util.Vector V,
int material)
|
protected Item |
findMostOfMaterial(java.util.Vector V,
java.lang.String other)
|
int |
findNumberOfResource(MOB E,
int resource)
|
int |
findNumberOfResource(Room E,
int resource)
|
protected int |
findNumberOfResource(java.util.Vector V,
int resource)
|
java.lang.String |
genericType(Item I)
|
protected java.util.Vector |
getAllItems(MOB M)
|
protected java.util.Vector |
getAllItems(Room R)
|
int |
getMaterialCode(java.lang.String s,
boolean exact)
|
java.lang.String |
getMaterialDesc(int MASK)
|
int |
getMaterialRelativeInt(java.lang.String s)
|
int |
getRandomResourceOfMaterial(int material)
|
int |
getResourceCode(java.lang.String s,
boolean exact)
|
java.lang.String |
getResourceDesc(int MASK)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of
this object. |
Item |
makeItemResource(int type)
|
Environmental |
makeResource(int myResource,
int localeCode,
boolean noAnimals,
java.lang.String fullName)
|
boolean |
quickDestroy(Item I)
|
boolean |
rebundle(Item item)
|
Environmental |
unbundle(Item I,
int number)
|
| 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 |
RawCMaterial
public RawCMaterial()
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
getRandomResourceOfMaterial
public int getRandomResourceOfMaterial(int material)
- Specified by:
getRandomResourceOfMaterial in interface MaterialLibrary
quickDestroy
public boolean quickDestroy(Item I)
- Specified by:
quickDestroy in interface MaterialLibrary
rebundle
public boolean rebundle(Item item)
- Specified by:
rebundle in interface MaterialLibrary
unbundle
public Environmental unbundle(Item I,
int number)
- Specified by:
unbundle in interface MaterialLibrary
getMaterialDesc
public java.lang.String getMaterialDesc(int MASK)
- Specified by:
getMaterialDesc in interface MaterialLibrary
getResourceDesc
public java.lang.String getResourceDesc(int MASK)
- Specified by:
getResourceDesc in interface MaterialLibrary
getMaterialRelativeInt
public int getMaterialRelativeInt(java.lang.String s)
- Specified by:
getMaterialRelativeInt in interface MaterialLibrary
getMaterialCode
public int getMaterialCode(java.lang.String s,
boolean exact)
- Specified by:
getMaterialCode in interface MaterialLibrary
getResourceCode
public int getResourceCode(java.lang.String s,
boolean exact)
- Specified by:
getResourceCode in interface MaterialLibrary
makeResource
public Environmental makeResource(int myResource,
int localeCode,
boolean noAnimals,
java.lang.String fullName)
- Specified by:
makeResource in interface MaterialLibrary
genericType
public java.lang.String genericType(Item I)
- Specified by:
genericType in interface MaterialLibrary
adjustResourceName
public void adjustResourceName(Item I)
- Specified by:
adjustResourceName in interface MaterialLibrary
makeItemResource
public Item makeItemResource(int type)
- Specified by:
makeItemResource in interface MaterialLibrary
destroyResources
public int destroyResources(Room E,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never)
- Specified by:
destroyResources in interface MaterialLibrary
destroyResources
public int destroyResources(MOB E,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never)
- Specified by:
destroyResources in interface MaterialLibrary
destroyResources
public int destroyResources(java.util.Vector V,
Environmental addTo,
int howMuch,
int finalMaterial,
int otherMaterial,
Item never)
findFirstResource
public Item findFirstResource(Room E,
java.lang.String other)
- Specified by:
findFirstResource in interface MaterialLibrary
findFirstResource
public Item findFirstResource(MOB E,
java.lang.String other)
- Specified by:
findFirstResource in interface MaterialLibrary
findFirstResource
public Item findFirstResource(java.util.Vector V,
java.lang.String other)
findFirstResource
public Item findFirstResource(Room E,
int resource)
- Specified by:
findFirstResource in interface MaterialLibrary
findFirstResource
public Item findFirstResource(MOB E,
int resource)
- Specified by:
findFirstResource in interface MaterialLibrary
findFirstResource
protected Item findFirstResource(java.util.Vector V,
int resource)
findMostOfMaterial
public Item findMostOfMaterial(Room E,
java.lang.String other)
- Specified by:
findMostOfMaterial in interface MaterialLibrary
findMostOfMaterial
public Item findMostOfMaterial(MOB E,
java.lang.String other)
- Specified by:
findMostOfMaterial in interface MaterialLibrary
findMostOfMaterial
protected Item findMostOfMaterial(java.util.Vector V,
java.lang.String other)
findNumberOfResource
public int findNumberOfResource(Room E,
int resource)
- Specified by:
findNumberOfResource in interface MaterialLibrary
findNumberOfResource
public int findNumberOfResource(MOB E,
int resource)
- Specified by:
findNumberOfResource in interface MaterialLibrary
findNumberOfResource
protected int findNumberOfResource(java.util.Vector V,
int resource)
findMostOfMaterial
public Item findMostOfMaterial(Room E,
int material)
- Specified by:
findMostOfMaterial in interface MaterialLibrary
findMostOfMaterial
public Item findMostOfMaterial(MOB E,
int material)
- Specified by:
findMostOfMaterial in interface MaterialLibrary
findMostOfMaterial
protected Item findMostOfMaterial(java.util.Vector V,
int material)
getAllItems
protected java.util.Vector getAllItems(Room R)
getAllItems
protected java.util.Vector getAllItems(MOB M)
fetchFoundOtherEncoded
public Item fetchFoundOtherEncoded(Room E,
java.lang.String otherRequired)
- Specified by:
fetchFoundOtherEncoded in interface MaterialLibrary
fetchFoundOtherEncoded
public Item fetchFoundOtherEncoded(MOB E,
java.lang.String otherRequired)
- Specified by:
fetchFoundOtherEncoded in interface MaterialLibrary
fetchFoundOtherEncoded
protected Item fetchFoundOtherEncoded(java.util.Vector V,
java.lang.String otherRequired)