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>, java.lang.Runnable

public class CMCatalog
extends StdLibrary
implements CatalogLibrary, java.lang.Runnable


Nested Class Summary
static class CMCatalog.CataDataImpl
           
static class CMCatalog.RoomContentImpl
           
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CatalogLibrary
CatalogLibrary.CataData, CatalogLibrary.RoomContent
 
Field Summary
 DVector icatalog
           
 DVector mcatalog
           
 
Constructor Summary
CMCatalog()
           
 
Method Summary
 boolean activate()
           
 void addCatalog(Physical PA)
           
protected  void addCatalogReplace(DVector DV, Physical P)
           
 void bumpDeathPickup(Physical P)
           
 void changeCatalogFlag(Physical P, boolean truefalse)
           
 void changeCatalogUsage(Physical P, boolean toCataloged)
           
 java.lang.StringBuffer checkCatalogIntegrity(Physical P)
           
 void delCatalog(Physical P)
           
 void forceTick()
           
 CatalogLibrary.CataData getCatalogData(Physical P)
           
 Item getCatalogItem(java.lang.String called)
           
 CatalogLibrary.CataData getCatalogItemData(java.lang.String called)
           
 java.lang.String[] getCatalogItemNames()
           
 Item[] getCatalogItems()
           
 MOB getCatalogMob(java.lang.String called)
           
 CatalogLibrary.CataData getCatalogMobData(java.lang.String called)
           
 java.lang.String[] getCatalogMobNames()
           
 MOB[] getCatalogMobs()
           
 Physical getCatalogObj(Physical P)
           
protected  java.lang.Object getCatalogObject(DVector list, java.lang.String name, int dim)
           
 Item getDropItem(MOB M, boolean live)
           
 ThreadEngine.SupportThread getSupportThread()
           
 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)
           
 java.lang.String[] makeCatalogNames(java.util.Vector<Environmental> catalog)
           
 void newInstance(Physical P)
           
protected  void propogateShopChange(ShopKeeper SK, java.util.Set<Physical> ignored, Physical cataP)
           
 java.util.Vector<CatalogLibrary.RoomContent> roomContent(Room R)
           
 void run()
           
 CatalogLibrary.CataData sampleCataData(java.lang.String xml)
           
 boolean shutdown()
           
 void submitToCatalog(Physical P)
           
 void updateCatalog(Physical modelP)
           
 void updateCatalogIntegrity(Physical P)
           
 void updateRoomContent(java.lang.String roomID, java.util.Vector<CatalogLibrary.RoomContent> content)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
compareTo, copyOf, initializeClass, newInstance, propertiesLoaded
 
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
propertiesLoaded
 
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

getSupportThread

public ThreadEngine.SupportThread getSupportThread()
Specified by:
getSupportThread in interface CMLibrary
Overrides:
getSupportThread in class StdLibrary

changeCatalogFlag

public void changeCatalogFlag(Physical P,
                              boolean truefalse)

getCatalogObject

protected java.lang.Object getCatalogObject(DVector list,
                                            java.lang.String name,
                                            int dim)

addCatalogReplace

protected void addCatalogReplace(DVector DV,
                                 Physical P)

makeCatalogNames

public java.lang.String[] makeCatalogNames(java.util.Vector<Environmental> catalog)

getCatalogItemNames

public java.lang.String[] getCatalogItemNames()
Specified by:
getCatalogItemNames in interface CatalogLibrary

getCatalogMobNames

public java.lang.String[] getCatalogMobNames()
Specified by:
getCatalogMobNames in interface CatalogLibrary

getCatalogItems

public Item[] getCatalogItems()
Specified by:
getCatalogItems in interface CatalogLibrary

getCatalogMobs

public MOB[] 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

getCatalogItem

public Item getCatalogItem(java.lang.String called)
Specified by:
getCatalogItem in interface CatalogLibrary

getCatalogMob

public MOB getCatalogMob(java.lang.String called)
Specified by:
getCatalogMob in interface CatalogLibrary

getCatalogItemData

public CatalogLibrary.CataData getCatalogItemData(java.lang.String called)
Specified by:
getCatalogItemData in interface CatalogLibrary

getCatalogMobData

public CatalogLibrary.CataData getCatalogMobData(java.lang.String called)
Specified by:
getCatalogMobData in interface CatalogLibrary

roomContent

public java.util.Vector<CatalogLibrary.RoomContent> roomContent(Room R)
Specified by:
roomContent in interface CatalogLibrary

updateRoomContent

public void updateRoomContent(java.lang.String roomID,
                              java.util.Vector<CatalogLibrary.RoomContent> content)
Specified by:
updateRoomContent in interface CatalogLibrary

addCatalog

public void addCatalog(Physical PA)
Specified by:
addCatalog in interface CatalogLibrary

submitToCatalog

public void submitToCatalog(Physical P)
Specified by:
submitToCatalog in interface CatalogLibrary

delCatalog

public void delCatalog(Physical P)
Specified by:
delCatalog in interface CatalogLibrary

updateCatalog

public void updateCatalog(Physical modelP)
Specified by:
updateCatalog in interface CatalogLibrary

newInstance

public void newInstance(Physical P)
Specified by:
newInstance in interface CatalogLibrary

bumpDeathPickup

public void bumpDeathPickup(Physical P)
Specified by:
bumpDeathPickup in interface CatalogLibrary

changeCatalogUsage

public void changeCatalogUsage(Physical P,
                               boolean toCataloged)
Specified by:
changeCatalogUsage in interface CatalogLibrary

propogateShopChange

protected void propogateShopChange(ShopKeeper SK,
                                   java.util.Set<Physical> ignored,
                                   Physical cataP)

getCatalogData

public CatalogLibrary.CataData getCatalogData(Physical P)
Specified by:
getCatalogData in interface CatalogLibrary

getCatalogObj

public Physical getCatalogObj(Physical P)
Specified by:
getCatalogObj in interface CatalogLibrary

updateCatalogIntegrity

public void updateCatalogIntegrity(Physical P)
Specified by:
updateCatalogIntegrity in interface CatalogLibrary

checkCatalogIntegrity

public java.lang.StringBuffer checkCatalogIntegrity(Physical P)
Specified by:
checkCatalogIntegrity in interface CatalogLibrary

getDropItem

public Item getDropItem(MOB M,
                        boolean live)
Specified by:
getDropItem in interface CatalogLibrary

sampleCataData

public CatalogLibrary.CataData sampleCataData(java.lang.String xml)
Specified by:
sampleCataData in interface CatalogLibrary

activate

public boolean activate()
Specified by:
activate in interface CMLibrary
Overrides:
activate in class StdLibrary

shutdown

public boolean shutdown()
Specified by:
shutdown in interface CMLibrary
Overrides:
shutdown in class StdLibrary

forceTick

public void forceTick()

run

public void run()
Specified by:
run in interface java.lang.Runnable