com.planet_ink.coffee_mud.Libraries
Class CMCatalog
java.lang.Object
com.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.CMCatalog
- All Implemented Interfaces:
- CMObject, CatalogLibrary, CMLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>
public class CMCatalog
- extends StdLibrary
- implements CatalogLibrary
| 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 |
icatalog
public DVector icatalog
mcatalog
public DVector mcatalog
CMCatalog
public CMCatalog()
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
getGlobalIndex
protected int getGlobalIndex(java.util.Vector list,
java.lang.String name)
addCatalogReplace
public void addCatalogReplace(DVector DV,
Environmental E)
getCatalogItems
public DVector getCatalogItems()
- Specified by:
getCatalogItems in interface CatalogLibrary
getCatalogMobs
public DVector getCatalogMobs()
- Specified by:
getCatalogMobs in interface CatalogLibrary
isCatalogObj
public boolean isCatalogObj(Environmental E)
- Specified by:
isCatalogObj in interface CatalogLibrary
isCatalogObj
public boolean isCatalogObj(java.lang.String name)
- Specified by:
isCatalogObj in interface CatalogLibrary
getCatalogItemIndex
public int getCatalogItemIndex(java.lang.String called)
- Specified by:
getCatalogItemIndex in interface CatalogLibrary
getCatalogMobIndex
public int getCatalogMobIndex(java.lang.String called)
- Specified by:
getCatalogMobIndex in interface CatalogLibrary
getCatalogItem
public Item getCatalogItem(int index)
- Specified by:
getCatalogItem in interface CatalogLibrary
getCatalogMob
public MOB getCatalogMob(int index)
- Specified by:
getCatalogMob in interface CatalogLibrary
getCatalogItemUsage
public int[] getCatalogItemUsage(int index)
- Specified by:
getCatalogItemUsage in interface CatalogLibrary
getCatalogMobUsage
public int[] getCatalogMobUsage(int index)
- Specified by:
getCatalogMobUsage in interface CatalogLibrary
getCatalogItemData
public CatalogLibrary.CataData getCatalogItemData(int index)
- Specified by:
getCatalogItemData in interface CatalogLibrary
getCatalogMobData
public CatalogLibrary.CataData getCatalogMobData(int index)
- Specified by:
getCatalogMobData in interface CatalogLibrary
delCatalog
public void delCatalog(Environmental E)
- Specified by:
delCatalog in interface CatalogLibrary
addCatalogReplace
public void addCatalogReplace(Environmental E)
- Specified by:
addCatalogReplace in interface CatalogLibrary
addCatalog
public void addCatalog(Environmental E)
- Specified by:
addCatalog in interface CatalogLibrary
shutdown
public boolean shutdown()
- Specified by:
shutdown in interface CMLibrary- Overrides:
shutdown in class StdLibrary
changeCatalogUsage
public void changeCatalogUsage(Environmental E,
boolean add)
- Specified by:
changeCatalogUsage in interface CatalogLibrary
propogateCatalogChange
public void propogateCatalogChange(Environmental thang)
- Specified by:
propogateCatalogChange in interface CatalogLibrary
getDropItem
public Item getDropItem(MOB M,
boolean live)
- Specified by:
getDropItem in interface CatalogLibrary