com.planet_ink.coffee_mud.Libraries
Class CMCatalog

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CatalogLibrary
CatalogLibrary.CataData
 
Field Summary
 DVector icatalog
           
 DVector mcatalog
           
 
Constructor Summary
CMCatalog()
           
 
Method Summary
 void addCatalog(Environmental E)
           
 void addCatalogReplace(DVector DV, Environmental E)
           
 void addCatalogReplace(Environmental E)
           
 void changeCatalogUsage(Environmental E, boolean add)
           
 void delCatalog(Environmental E)
           
 Item getCatalogItem(int index)
           
 CatalogLibrary.CataData getCatalogItemData(int index)
           
 int getCatalogItemIndex(java.lang.String called)
           
 DVector getCatalogItems()
           
 int[] getCatalogItemUsage(int index)
           
 MOB getCatalogMob(int index)
           
 CatalogLibrary.CataData getCatalogMobData(int index)
           
 int getCatalogMobIndex(java.lang.String called)
           
 DVector getCatalogMobs()
           
 int[] getCatalogMobUsage(int index)
           
 Item getDropItem(MOB M, boolean live)
           
protected  int getGlobalIndex(java.util.Vector list, java.lang.String name)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 boolean isCatalogObj(Environmental E)
           
 boolean isCatalogObj(java.lang.String name)
           
 void propogateCatalogChange(Environmental thang)
           
 boolean shutdown()
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance
 
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
 
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

icatalog

public DVector icatalog

mcatalog

public DVector mcatalog
Constructor Detail

CMCatalog

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

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